/testing/guestbin/swan-prep
road #
 cp policies/* /etc/ipsec.d/policies/
road #
 ip addr add 192.1.3.210/24 dev eth0
road #
 ipsec start
Redirecting to: systemctl start ipsec.service
road #
 /testing/pluto/bin/wait-until-pluto-started
road #
 # give OE policies time to load
road #
 sleep 5
road #
 echo "initdone"
initdone
road #
 # ping my own ips
road #
 ping -n -c 1 -I 192.1.3.209 192.1.3.209
PING 192.1.3.209 (192.1.3.209) from 192.1.3.209 : 56(84) bytes of data.
64 bytes from 192.1.3.209: icmp_seq=1 ttl=64 time=0.XXX ms
--- 192.1.3.209 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
road #
 sleep 3
road #
 ping -n -c 1 -I 192.1.3.209 192.1.3.210
PING 192.1.3.210 (192.1.3.210) from 192.1.3.209 : 56(84) bytes of data.
64 bytes from 192.1.3.210: icmp_seq=1 ttl=64 time=0.XXX ms
--- 192.1.3.210 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
road #
 sleep 3
road #
 ping -n -c 1 -I 127.0.0.1 127.0.0.1
PING 127.0.0.1 (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.XXX ms
--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
road #
 sleep 3
road #
 ipsec whack --shuntstatus
000 Bare Shunt list:
000  
road #
 echo done
done
road #
 ipsec look
road NOW
XFRM state:
XFRM policy:
src 192.1.3.209/32 dst 192.1.3.0/24 
	dir out priority 2088 ptype main 
	tmpl src 0.0.0.0 dst 0.0.0.0
		proto esp reqid REQID mode transport
src 192.1.3.209/32 dst 192.1.2.0/24 
	dir out priority 2088 ptype main 
	tmpl src 0.0.0.0 dst 0.0.0.0
		proto esp reqid REQID mode transport
src 192.1.3.254/32 dst 192.1.3.209/32 
	dir fwd priority 1568 ptype main 
src 192.1.3.254/32 dst 192.1.3.209/32 
	dir in priority 1568 ptype main 
src 192.1.3.209/32 dst 192.1.3.254/32 
	dir out priority 1568 ptype main 
src 192.1.3.253/32 dst 192.1.3.209/32 
	dir fwd priority 1568 ptype main 
src 192.1.3.253/32 dst 192.1.3.209/32 
	dir in priority 1568 ptype main 
src 192.1.3.209/32 dst 192.1.3.253/32 
	dir out priority 1568 ptype main 
src 192.1.2.254/32 dst 192.1.3.209/32 
	dir fwd priority 1568 ptype main 
src 192.1.2.254/32 dst 192.1.3.209/32 
	dir in priority 1568 ptype main 
src 192.1.3.209/32 dst 192.1.2.254/32 
	dir out priority 1568 ptype main 
src 192.1.2.253/32 dst 192.1.3.209/32 
	dir fwd priority 1568 ptype main 
src 192.1.2.253/32 dst 192.1.3.209/32 
	dir in priority 1568 ptype main 
src 192.1.3.209/32 dst 192.1.2.253/32 
	dir out priority 1568 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket out priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket in priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket out priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket in priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket out priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket in priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket out priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket in priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket out priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket in priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket out priority 0 ptype main 
src 0.0.0.0/0 dst 0.0.0.0/0 
	socket in priority 0 ptype main 
XFRM done
IPSEC mangle TABLES
NEW_IPSEC_CONN mangle TABLES
ROUTING TABLES
default via 192.1.3.254 dev eth0 
192.1.3.0/24 dev eth0  proto kernel  scope link  src 192.1.3.209 
NSS_CERTIFICATES
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
road #
road #
 if [ -n "`ls /tmp/core* 2>/dev/null`" ]; then echo CORE FOUND; mv /tmp/core* OUTPUT/; fi
road #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

