#!/bin/sh kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid]# iptables -t nat -F kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid]# # Display the table, so we know it is correct. kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid]# iptables -t nat -L -n Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain INPUT (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid]# iptables -L -n Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid]# echo done. done. kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid]# : ==== end ==== kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid]# # should not match anything kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid]# grep "already in use" /tmp/pluto.log kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-27-uniqueid\[root@nic ikev2-27-uniqueid 1]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'grep "already in use" /tmp/pluto.log' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh '# should only show 1 connection' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec whack --trafficstatus' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec auto --status' <<<<<<<<<