#!/bin/sh kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-redirect-01-global\[root@nic ikev2-redirect-01-global]# iptables -t nat -F kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-redirect-01-global\[root@nic ikev2-redirect-01-global]# # Display the table, so we know it is correct. kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-redirect-01-global\[root@nic ikev2-redirect-01-global]# 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-redirect-01-global\[root@nic ikev2-redirect-01-global]# 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-redirect-01-global\[root@nic ikev2-redirect-01-global]# echo done. done. kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-redirect-01-global\[root@nic ikev2-redirect-01-global]# : ==== end ==== kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-redirect-01-global\[root@nic ikev2-redirect-01-global]# ../../pluto/bin/ipsec-look.sh kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-redirect-01-global\[root@nic ikev2-redirect-01-global]# # confirm east is in unrouted state again kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-redirect-01-global\[root@nic ikev2-redirect-01-global]# hostname | grep east > /dev/null && ipsec status |grep "eroute owner" kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-redirect-01-global\[root@nic ikev2-redirect-01-global 1]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'hostname | grep east > /dev/null && ipsec status |grep "eroute owner"' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec auto --status' <<<<<<<<<