iptables -t nat -F
nic #
 iptables -F
nic #
 ../../guestbin/ipsec-kernel-state.sh
nic #
 ../../guestbin/ipsec-kernel-policy.sh
nic #
 hostname | grep nic > /dev/null || ipsec whack --trafficstatus
nic #
 # A tunnel should have established
nic #
 grep "^[^|].* established Child SA" /tmp/pluto.log
grep: /tmp/pluto.log: No such file or directory
nic #
 # you should see both RSA and NULL
nic #
 grep -e 'auth method: ' -e 'hash algorithm identifier' -e "^[^|].* established IKE SA" /tmp/pluto.log
grep: /tmp/pluto.log: No such file or directory
nic #
 
