IPSEC from the guest does not work when the Guest is behind a NAT Interface of VBox 3.0.4.
A tcpdump of the interface of the guest shows that 11 packets are transmitted to the VPN Gateway having the 217.XXX.XXX.XXX address when the connection is initialized.
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
09:32:30.119518 arp who-has 10.0.2.2 tell 10.0.2.15
09:32:30.120196 arp reply 10.0.2.2 is-at 52:54:00:12:35:02
09:32:31.714162 IP 10.0.2.15.500 > 217.XXX.XXX.XXX.500: isakmp: phase 1 I ident
09:32:31.767945 IP 217.XXX.XXX.XXX.500 > 10.0.2.15.500: isakmp: phase 1 R ident
09:32:31.799922 IP 10.0.2.15.500 > 217.XXX.XXX.XXX.500: isakmp: phase 1 I ident
09:32:31.905178 IP 217.XXX.XXX.XXX.500 > 10.0.2.15.500: isakmp: phase 1 R ident
09:32:31.935712 IP 10.0.2.15.4500 > 217.XXX.XXX.XXX.4500: NONESP-encap: isakmp: phase 1 I ident[E]
09:32:31.935821 IP 10.0.2.15 > 217.XXX.XXX.XXX: udp
09:32:41.907620 IP 217.XXX.XXX.XXX.500 > 10.0.2.15.500: isakmp: phase 1 R ident
09:32:41.941562 IP 10.0.2.15.4500 > 217.XXX.XXX.XXX.4500: NONESP-encap: isakmp: phase 1 I ident[E]
09:32:41.941620 IP 10.0.2.15 > 217.XXX.XXX.XXX: udp
^C
11 packets captured
11 packets received by filter
0 packets dropped by kernel
On the interface of the host there are only 6 packets to the VPN gateway seen in the same time.
tcpdump -n -i eth0 host 217.XXX.XXX.XXX
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
09:32:24.257707 IP 217.XXX.XXX.XXX.500 > 192.168.0.22.40258: isakmp: phase 1 ? ident
09:32:30.842839 IP 192.168.0.22.40258 > 217.XXX.XXX.XXX.500: isakmp: phase 1 I ident
09:32:30.895337 IP 217.XXX.XXX.XXX.500 > 192.168.0.22.40258: isakmp: phase 1 R ident
09:32:30.928742 IP 192.168.0.22.40258 > 217.XXX.XXX.XXX.500: isakmp: phase 1 I ident
09:32:31.031873 IP 217.XXX.XXX.XXX.500 > 192.168.0.22.40258: isakmp: phase 1 R ident
09:32:41.029828 IP 217.XXX.XXX.XXX.500 > 192.168.0.22.40258: isakmp: phase 1 R ident
^C
6 packets captured
6 packets received by filter
0 packets dropped by kernel
As it could be seen that the request to the IPSEC-GW on 4500/udp
is not visible on the host interface.
The IPSEC-Connection works properly when the guest interface is running in bridged mode.
The only message regarding NAT is that ipv6 is not supported.