testing/pluto/ikev2-tcp-01-listen-tcp-no-udp-no/westinit.sh
raw| 1 | /testing/guestbin/swan-prep --nokeys |
| 2 | |
| 3 | # ensure that clear text does not get through |
| 4 | iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP |
| 5 | iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT |
| 6 | iptables -I INPUT -i eth1 -p tcp -j ACCEPT |
| 7 | # confirm clear text does not get through |
| 8 | ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254 |
| 9 | |
| 10 | ipsec start |
| 11 | ../../guestbin/wait-until-pluto-started |
| 12 | ipsec whack --impair revival |
| 13 | ipsec add tcp |
| 14 | ipsec add udp |
| 15 | echo "initdone" |