/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
east #
 /testing/x509/import.sh real/mainca/east.all.p12
ipsec pk12util -w nss-pw -i real/mainca/east.all.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
ipsec certutil -M -n mainca -t CT,,
east #
 # check
east #
 ipsec certutil -L
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
east                                                         u,u,u
mainca                                                       CT,, 
east #
 cp policies/* /etc/ipsec.d/policies/
east #
 echo "192.1.2.0/24" >> /etc/ipsec.d/policies/clear-or-private
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 # give OE policies time to load
east #
 ../../guestbin/wait-for.sh --match 'loaded 10,' -- ipsec auto --status
Total IPsec connections: loaded 10, active 0
east #
 echo "initdone"
initdone
east #
 ../../guestbin/ipsec-kernel-state.sh
east #
 ../../guestbin/ipsec-kernel-policy.sh
src 127.0.0.1/32 dst 192.1.2.23/32
	dir fwd priority PRIORITY ptype main
src 127.0.0.1/32 dst 192.1.2.23/32
	dir in priority PRIORITY ptype main
src 192.1.2.23/32 dst 127.0.0.1/32
	dir out priority PRIORITY ptype main
src 192.1.2.23/32 dst 192.1.2.253/32
	dir out priority PRIORITY ptype main
src 192.1.2.23/32 dst 192.1.2.254/32
	dir out priority PRIORITY ptype main
src 192.1.2.23/32 dst 192.1.3.253/32
	dir out priority PRIORITY ptype main
src 192.1.2.253/32 dst 192.1.2.23/32
	dir fwd priority PRIORITY ptype main
src 192.1.2.253/32 dst 192.1.2.23/32
	dir in priority PRIORITY ptype main
src 192.1.2.254/32 dst 192.1.2.23/32
	dir fwd priority PRIORITY ptype main
src 192.1.2.254/32 dst 192.1.2.23/32
	dir in priority PRIORITY ptype main
src 192.1.3.253/32 dst 192.1.2.23/32
	dir fwd priority PRIORITY ptype main
src 192.1.3.253/32 dst 192.1.2.23/32
	dir in priority PRIORITY ptype main
east #
 
