Lines Matching +full:route +full:- +full:up
10 if ! sysctl -q kern.features.ipsec >/dev/null ; then
20 ifconfig ${epair_LAN_A}a up
22 ifconfig ${epair_PUB_A}a up
24 ifconfig ${epair_LAN_B}a up
26 ifconfig ${epair_PUB_B}a up
37 jexec hostA ifconfig ${epair_LAN_A}a 192.0.2.1/30 up
38 jexec ipsecA ifconfig ${epair_LAN_A}b 192.0.2.2/30 up
39 jexec ipsecA ifconfig ${epair_PUB_A}a 198.51.100.2/30 up
40 jexec router ifconfig ${epair_PUB_A}b 198.51.100.1/30 up
41 jexec router ifconfig ${epair_PUB_B}b 198.51.100.5/30 up
42 jexec ipsecB ifconfig ${epair_PUB_B}a 198.51.100.6/30 up
43 jexec ipsecB ifconfig ${epair_LAN_B}b 203.0.113.2/30 up
44 jexec hostB ifconfig ${epair_LAN_B}a 203.0.113.1/30 up
48 jexec hostA route add default 192.0.2.2
49 jexec ipsecA route add default 198.51.100.1
50 jexec ipsecB route add default 198.51.100.5
51 jexec hostB route add default 203.0.113.2
56 jexec hostA ifconfig ${epair_LAN_A}a inet6 2001:db8:1::1/64 up no_dad
57 jexec ipsecA ifconfig ${epair_LAN_A}b inet6 2001:db8:1::2/64 up no_dad
58 jexec ipsecA ifconfig ${epair_PUB_A}a inet6 2001:db8:23::2/64 up no_dad
59 jexec router ifconfig ${epair_PUB_A}b inet6 2001:db8:23::3/64 up no_dad
60 jexec router ifconfig ${epair_PUB_B}b inet6 2001:db8:34::3/64 up no_dad
61 jexec ipsecB ifconfig ${epair_PUB_B}a inet6 2001:db8:34::2/64 up no_dad
62 jexec ipsecB ifconfig ${epair_LAN_B}b inet6 2001:db8:45::2/64 up no_dad
63 jexec hostB ifconfig ${epair_LAN_B}a inet6 2001:db8:45::1/64 up no_dad
67 jexec hostA route -6 add default 2001:db8:1::2
68 jexec ipsecA route -6 add default 2001:db8:23::3
69 jexec ipsecB route -6 add default 2001:db8:34::3
70 jexec hostB route -6 add default 2001:db8:45::2
89 if [ ${afnet} -eq 4 ]; then
100 printf "spdadd ${SRC_LAN} ${DST_LAN} any -P "
102 printf " ipsec esp/tunnel/${SRC_GW}-${DST_GW}/require;\n"
103 printf "spdadd ${DST_LAN} ${SRC_LAN} any -P "
105 printf " ipsec esp/tunnel/${DST_GW}-${SRC_GW}/require;\n"
106 printf "add ${SRC_GW} ${DST_GW} esp 0x1000 -E ${enc_algo} \"${enc_key}\""
107 [ -n "${auth_algo}" ] && printf " -A ${auth_algo} \"${auth_key}\";\n" || printf ";\n"
108 printf "add ${DST_GW} ${SRC_GW} esp 0x1001 -E ${enc_algo} \"${enc_key}\""
109 [ -n "$auth_algo" ] && printf " -A ${auth_algo} \"${auth_key}\";\n" || printf ";\n"
117 [ $1 -eq 4 ] && ist_v4_setup || ist_v6_setup
119 atf_check -s exit:0 -o ignore jexec ipsecA setkey -f ${TMPDIR}/ipsec.ipsecA.conf
121 atf_check -s exit:0 -o ignore jexec ipsecB setkey -f ${TMPDIR}/ipsec.ipsecB.conf
123 if [ $1 -eq 4 ]; then
124 atf_check -s exit:0 -o ignore jexec hostA ping -c 1 203.0.113.1
126 atf_check -s exit:0 -o ignore jexec hostA ping -6 -c 1 2001:db8:45::1