aes192-md5-modp1024,aes256-md5-modp1024,aes128-sha1-modp1024,aes192-sha1-modp1024,aes256-sha1-modp1024,3des-md5-modp1024,3des-sha1-modp1024,aes128-md5-modp1536,aes192-md5-modp1536,aes256-md5-modp1536,aes128-sha1-modp1536,aes192-sha1-modp1536,aes256-sha1-modp1536,3des-md5-modp1536,3des-sha1-modp1536,aes128-md5-modp2048,aes192-md5-modp2048,aes256-md5-modp2048,aes128-sha1-modp2048,aes192-sha1-modp2048,aes256-sha1-modp2048,3des-md5-modp2048,3des-sha1-modp2048
esp=aes128-md5,aes192-md5,aes256-md5,aes128-sha1,aes192-sha1,aes256-sha1,3des-md5,3des-sha1
root <at> ng:~# cat /etc/ipsec.secrets
10.103.7.133 ddnstest : PSK "adminadmin"
root <at> ng:~#
root <at> ng:~#
root <at> ng:~# ipsec whack --name test --encrypt --tunnel --pfs --dpddelay 15 --dpdtimeout 60 --dpdaction restart --psk --host 10.
103.7.133 --nexthop 10.103.6.1 --client
10.1.2.0/24 --to --host ddnstest --client
10.1.1.0/24
002 added connection description "test"
root <at> ng:~#
root <at> ng:~# ipsec whack --initiate --name test
002 "test" #11: initiating Main Mode
104 "test" #11: STATE_MAIN_I1: initiate
003 "test" #11: ignoring unknown Vendor ID payload [4f45557d6068416e77737478]
003 "test" #11: received Vendor ID payload [Dead Peer Detection]
003 "test" #11: received Vendor ID payload [RFC 3947] method set to=109
002 "test" #11: enabling possible NAT-traversal with method 4
002 "test" #11: transition from state STATE_MAIN_I1 to state STATE_MAIN_I2
106 "test" #11: STATE_MAIN_I2: sent MI2, expecting MR2
003 "test" #11: NAT-Traversal: Result using RFC 3947 (NAT-Traversal): no NAT detected
002 "test" #11: transition from state STATE_MAIN_I2 to state STATE_MAIN_I3
108 "test" #11: STATE_MAIN_I3: sent MI3, expecting MR3
003 "test" #11: received Vendor ID payload [CAN-IKEv2]
002 "test" #11: Main mode peer ID is ID_IPV4_ADDR: '10.103.6.70'
002 "test" #11: transition from state STATE_MAIN_I3 to state STATE_MAIN_I4
004 "test" #11: STATE_MAIN_I4: ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=aes_128 prf=oakley_sha group=modp2048}
002 "test" #11: Dead Peer Detection (RFC 3706): enabled
002 "test"
#12: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP {using isakmp#11
msgid:faa36d7a proposal=defaults pfsgroup=OAKLEY_GROUP_MODP2048}
117 "test" #12: STATE_QUICK_I1: initiate
002 "test" #12: Dead Peer Detection (RFC 3706): enabled
002 "test" #12: transition from state STATE_QUICK_I1 to state STATE_QUICK_I2
004
"test" #12: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode
{ESP=>0x81cd918c <0xf4534088 xfrm=AES_128-HMAC_SHA1 NATOA=none
NATD=none DPD=enabled}
root <at> ng:~#
root <at> ng:~#
root <at> ng:~# vi /etc/hosts
127.0.0.1 localhost.
10.103.6.71 ddnstest
LOGS from /var/log/messages...
Dec 4 17:35:31 ng authpriv.warn pluto[11096]: added connection description "test"
Dec 4 17:35:42 ng authpriv.warn pluto[11096]: "test" #11: initiating Main Mode
Dec 4 17:35:42 ng authpriv.warn pluto[11096]: "test" #11: ignoring unknown Vendor ID payload [4f45557d6068416e77737478]
Dec 4 17:35:42 ng authpriv.warn pluto[11096]: "test" #11: received Vendor ID payload [Dead Peer Detection]
Dec 4 17:35:42 ng authpriv.warn pluto[11096]: "test" #11: received Vendor ID payload [RFC 3947] method set to=109
Dec 4 17:35:42 ng authpriv.warn pluto[11096]: "test" #11: enabling possible NAT-traversal with method 4
Dec 4 17:35:42 ng authpriv.warn pluto[11096]: "test" #11: transition from state STATE_MAIN_I1 to state STATE_MAIN_I2
Dec 4 17:35:42 ng authpriv.warn pluto[11096]: "test" #11: STATE_MAIN_I2: sent MI2, expecting MR2
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #11: NAT-Traversal: Result using RFC 3947 (NAT-Traversal): no NAT detected
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #11: transition from state STATE_MAIN_I2 to state STATE_MAIN_I3
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #11: STATE_MAIN_I3: sent MI3, expecting MR3
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #11: received Vendor ID payload [CAN-IKEv2]
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #11: Main mode peer ID is ID_IPV4_ADDR: '10.103.6.70'
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #11: transition from state STATE_MAIN_I3 to state STATE_MAIN_I4
Dec
4 17:35:43 ng authpriv.warn pluto[11096]: "test" #11: STATE_MAIN_I4:
ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=aes_128
prf=oakley_sha group=modp2048}
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #11: Dead Peer Detection (RFC 3706): enabled
Dec
4 17:35:43 ng authpriv.warn pluto[11096]: "test" #12: initiating Quick
Mode PSK+ENCRYPT+TUNNEL+PFS+UP {using isakmp#11 msgid:faa36d7a
proposal=defaults pfsgroup=OAKLEY_GROUP_MODP2048}
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #12: Dead Peer Detection (RFC 3706): enabled
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #12: transition from state STATE_QUICK_I1 to state STATE_QUICK_I2
Dec 4 17:35:43 ng authpriv.warn pluto[11096]: "test" #12:
STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode
{ESP=>0x81cd918c <0xf4534088 xfrm=AES_128-HMAC_SHA1 NATOA=none
NATD=none DPD=enabled}
Dec 4 17:36:16 ng authpriv.warn pluto[11096]: ERROR:
asynchronous network error report on eth2.2 (sport=500) for message to
10.103.6.70 port 500, complainant
10.103.6.71: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:36:31 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.6.71: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:36:46 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.7.133: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:37:01 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.7.133: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:37:13 ng authpriv.warn pluto[11096]: "test" #11: DPD: No response from peer - declaring peer dead
Dec 4 17:37:13 ng authpriv.warn pluto[11096]: "test" #11: DPD: Restarting Connection
Dec 4 17:37:13 ng authpriv.warn pluto[11096]: "test" #12: rekeying state (STATE_QUICK_I2)
Dec 4 17:37:13 ng authpriv.warn pluto[11096]: "test" #12: rekeying state (STATE_QUICK_I2)
Dec 4 17:37:13 ng authpriv.warn pluto[11096]: "test" #12: ERROR: netlink response for Del SA
esp.81cd918c <at> 10.103.6.70 included errno 3: No such process
Dec 4 17:37:13 ng authpriv.warn pluto[11096]: "test" #12: ERROR: netlink response for Del SA
esp.f4534088 <at> 10.103.7.133 included errno 3: No such process
Dec 4 17:37:13 ng authpriv.warn pluto[11096]: "test" #13: initiating Main Mode to replace #11
Dec 4 17:37:16 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.7.133: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:37:16 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.7.133: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:37:26 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.7.133: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:37:46 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.7.133: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:38:26 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.7.133: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]
Dec 4 17:39:06 ng authpriv.warn pluto[11096]: ERROR: asynchronous
network error report on eth2.2 (sport=500) for message to 10.103.6.70
port 500, complainant
10.103.7.133: No route to host [errno 148, origin ICMP type 3 code 1 (not authenticated)]