Lines Matching +full:up +full:-
2 # SPDX-License-Identifier: BSD-2-Clause
56 jexec one ifconfig ${epair_sync}a 192.0.2.1/24 up
57 jexec one ifconfig ${epair_one}a 198.51.100.1/24 up
62 up
63 jexec two ifconfig ${epair_two}a 198.51.100.2/24 up
64 jexec two ifconfig ${epair_sync}b 192.0.2.2/24 up
69 up
72 jexec one pfctl -e
76 jexec two pfctl -e
81 hostid_one=$(jexec one pfctl -si -v | awk '/Hostid:/ { gsub(/0x/, "", $2); printf($2); }')
83 ifconfig ${epair_one}b 198.51.100.254/24 up
85 ping -c 1 -S 198.51.100.254 198.51.100.1
90 if ! jexec two pfctl -s states | grep icmp | grep 198.51.100.1 | \
95 if ! jexec two pfctl -sc | grep ""${hostid_one}"";
97 jexec two pfctl -sc
142 jexec alcatraz ifconfig ${epair_sync}a 192.0.2.1/24 up
143 jexec alcatraz ifconfig ${epair_out}a 198.51.100.1/24 up
144 jexec alcatraz ifconfig ${epair_in}a 203.0.113.1/24 up
145 jexec alcatraz arp -s 203.0.113.2 00:01:02:03:04:05
155 up
157 ifconfig ${epair_sync}b 192.0.2.2/24 up
158 ifconfig ${epair_out}b 198.51.100.2/24 up
159 ifconfig ${epair_in}b up
160 route add -net 203.0.113.0/24 198.51.100.1
164 jexec alcatraz pfctl -e
169 atf_check -s exit:0 env PYTHONPATH=${common_dir} \
171 --syncdev ${epair_sync}b \
172 --indev ${epair_in}b \
173 --outdev ${epair_out}b
176 jexec alcatraz ifconfig pfsync0 -defer
183 atf_check -s exit:3 env PYTHONPATH=${common_dir} \
185 --syncdev ${epair_sync}b \
186 --indev ${epair_in}b \
187 --outdev ${epair_out}b
214 jexec one ifconfig ${epair_sync}a 192.0.2.1/24 up
215 jexec one ifconfig ${epair_one}a 198.51.100.1/24 up
219 up
220 jexec two ifconfig ${epair_two}a 198.51.100.2/24 up
221 jexec two ifconfig ${epair_sync}b 192.0.2.2/24 up
224 jexec one pfctl -e
228 jexec two pfctl -e
233 ifconfig ${epair_one}b 198.51.100.254/24 up
235 # Create state prior to setting up pfsync
236 ping -c 1 -S 198.51.100.254 198.51.100.1
238 # Wait before setting up pfsync on two, so we don't accidentally catch
242 # Now set up pfsync in jail two
245 up
250 jexec two pfctl -s states
251 if ! jexec two pfctl -s states | grep icmp | grep 198.51.100.1 | \
333 if ! kldstat -q -m carp
360 ifconfig ${bridge0} up
361 ifconfig ${epair_client_bridge0}b up
362 ifconfig ${epair_gw_route_to_master_bridge0}b up
363 ifconfig ${epair_gw_route_to_backup_bridge0}b up
369 ifconfig ${bridge1} up
370 ifconfig ${epair_gw_route_to_master_bridge1}b up
371 ifconfig ${epair_gw_route_to_backup_bridge1}b up
372 ifconfig ${epair_gw_reply_to_master_bridge1}b up
373 ifconfig ${epair_gw_reply_to_backup_bridge1}b up
380 ifconfig ${bridge2} up
381 ifconfig ${epair_gw_reply_to_master_bridge2}b up
382 ifconfig ${epair_gw_reply_to_backup_bridge2}b up
383 ifconfig ${epair_server_bridge2}b up
414 jexec client ifconfig ${epair_client_bridge0}a inet 198.18.0.1/24 up
418 inet 198.19.10.1/24 up
420 inet 198.18.0.8/24 up
424 inet 198.18.1.8/24 up
438 up
443 "pass quick on if_pfsync proto pfsync keep state (no-sync)" \
444 "pass quick on { if_br0 if_br1 } proto carp keep state (no-sync)" \
447 …"pass in quick log on if_br0 route-to (if_br1 198.18.1.20) proto { icmp udp tcp } from 198.18.0.0/…
448 jexec gw_route_to_master pfctl -e
451 inet 198.19.10.2/24 up
453 inet 198.18.0.9/24 up
457 inet 198.18.1.9/24 up
470 up
475 "pass quick on if_pfsync proto pfsync keep state (no-sync)" \
476 "pass quick on { if_br0 if_br1 } proto carp keep state (no-sync)" \
479 …"pass in quick log on if_br0 route-to (if_br1 198.18.1.20) proto { icmp udp tcp } from 198.18.0.0/…
480 jexec gw_route_to_backup pfctl -e
483 inet 198.19.20.1/24 up
485 inet 198.18.1.18/24 up
489 inet 198.18.2.18/24 up
503 up
507 "pass quick on if_pfsync proto pfsync keep state (no-sync)" \
508 "pass quick on { if_br1 if_br2 } proto carp keep state (no-sync)" \
510 "pass out quick on if_br2 reply-to (if_br1 198.18.1.10) tagged auth_packet_reply_to keep state" \
512 jexec gw_reply_to_master pfctl -e
515 inet 198.19.20.2/24 up
517 inet 198.18.1.19/24 up
521 inet 198.18.2.19/24 up
534 up
538 "pass quick on if_pfsync proto pfsync keep state (no-sync)" \
539 "pass quick on { if_br1 if_br2 } proto carp keep state (no-sync)" \
541 "pass out quick on if_br2 reply-to (if_br1 198.18.1.10) tagged auth_packet_reply_to keep state" \
543 jexec gw_reply_to_backup pfctl -e
545 jexec server ifconfig ${epair_server_bridge2}a inet 198.18.2.1/24 up
557 while ! jexec client ping -c 10 198.18.2.1 | grep ', 0.0% packet loss'
563 …ute_to_master_checksum=$(jexec gw_route_to_master pfctl -si -v | grep 'Checksum:' | cut -d ' ' -f …
564 …ute_to_backup_checksum=$(jexec gw_route_to_backup pfctl -si -v | grep 'Checksum:' | cut -d ' ' -f …
565 …ply_to_master_checksum=$(jexec gw_reply_to_master pfctl -si -v | grep 'Checksum:' | cut -d ' ' -f …
566 …ply_to_backup_checksum=$(jexec gw_reply_to_backup pfctl -si -v | grep 'Checksum:' | cut -d ' ' -f …
577 (jexec client ping -c 10 198.18.2.1 >ping.stdout) &
587 while ! grep -q -e 'packet loss' ping.stdout
592 atf_check -s exit:0 -e ignore -o ignore grep ', 0.0% packet loss' ping.stdout
609 if ! sysctl -q kern.features.ipsec >/dev/null ; then
613 # Run the common test, to set up pfsync
621 jexec one pfctl -Fs
622 jexec two pfctl -Fs
627 spdadd 192.0.2.1/32 192.0.2.2/32 any -P out ipsec esp/transport//require;
628 spdadd 192.0.2.2/32 192.0.2.1/32 any -P in ipsec esp/transport//require;
629 add 192.0.2.1 192.0.2.2 esp 0x1000 -E aes-gcm-16 \"12345678901234567890\";
630 add 192.0.2.2 192.0.2.1 esp 0x1001 -E aes-gcm-16 \"12345678901234567890\";" \
631 | jexec one setkey -c
635 spdadd 192.0.2.2/32 192.0.2.1/32 any -P out ipsec esp/transport//require;
636 spdadd 192.0.2.1/32 192.0.2.2/32 any -P in ipsec esp/transport//require;
637 add 192.0.2.1 192.0.2.2 esp 0x1000 -E aes-gcm-16 \"12345678901234567891\";
638 add 192.0.2.2 192.0.2.1 esp 0x1001 -E aes-gcm-16 \"12345678901234567891\";" \
639 | jexec two setkey -c
642 ping -c 1 -S 198.51.100.254 198.51.100.1
647 if jexec two pfctl -s states | grep icmp | grep 198.51.100.1 | \
653 jexec one pfctl -Fs
654 jexec two pfctl -Fs
659 spdadd 192.0.2.2/32 192.0.2.1/32 any -P out ipsec esp/transport//require;
660 spdadd 192.0.2.1/32 192.0.2.2/32 any -P in ipsec esp/transport//require;
661 add 192.0.2.1 192.0.2.2 esp 0x1000 -E aes-gcm-16 \"12345678901234567890\";
662 add 192.0.2.2 192.0.2.1 esp 0x1001 -E aes-gcm-16 \"12345678901234567890\";" \
663 | jexec two setkey -c
665 ping -c 1 -S 198.51.100.254 198.51.100.1
670 if ! jexec two pfctl -s states | grep icmp | grep 198.51.100.1 | \
694 jexec one ifconfig lo0 127.0.0.1/8 up
695 jexec one ifconfig lo0 inet6 ::1/128 up
699 jexec one pfctl -e
700 jexec one ifconfig pfsync0 defer up
702 jexec one ping -c 1 ::1
703 jexec one ping -c 1 127.0.0.1
733 jexec one ifconfig ${epair_sync}a inet6 fd2c::1/64 no_dad up
734 jexec one ifconfig ${epair_one}a inet6 fd2b::1/64 no_dad up
739 up
740 jexec two ifconfig ${epair_two}a inet6 fd2b::2/64 no_dad up
741 jexec two ifconfig ${epair_sync}b inet6 fd2c::2/64 no_dad up
746 up
749 jexec one pfctl -e
753 jexec two pfctl -e
758 ifconfig ${epair_one}b inet6 fd2b::f0/64 no_dad up
760 ping6 -c 1 -S fd2b::f0 fd2b::1
765 if ! jexec two pfctl -s states | grep icmp | grep fd2b::1 | \
795 jexec one ifconfig ${epair_sync}a inet6 fd2c::1/64 no_dad up
796 jexec one ifconfig ${epair_one}a inet6 fd2b::1/64 no_dad up
801 up
802 jexec two ifconfig ${epair_two}a inet6 fd2b::2/64 no_dad up
803 jexec two ifconfig ${epair_sync}b inet6 fd2c::2/64 no_dad up
808 up
811 jexec one pfctl -e
815 jexec two pfctl -e
820 ifconfig ${epair_one}b inet6 fd2b::f0/64 no_dad up
822 ping6 -c 1 -S fd2b::f0 fd2b::1
827 if ! jexec two pfctl -s states | grep icmp | grep fd2b::1 | \
841 atf_set descr 'Test route-to with default rule'
860 jexec one ifconfig ${epair_sync}a 192.0.2.1/24 up
861 jexec one ifconfig ${epair_one}a 198.51.100.1/24 up
862 jexec one ifconfig ${epair_out_one}a 203.0.113.1/24 up
865 jexec one arp -s 203.0.113.254 00:01:02:03:04:05
869 up
871 jexec two ifconfig ${epair_sync}b 192.0.2.2/24 up
872 jexec two ifconfig ${epair_two}a 198.51.100.2/24 up
873 jexec two ifconfig ${epair_out_two}a 203.0.113.2/24 up
876 jexec two arp -s 203.0.113.254 00:01:02:03:04:05
880 up
883 jexec one pfctl -e
886 "pass out route-to (outif 203.0.113.254)"
887 jexec two pfctl -e
893 "pass out route-to (outif 203.0.113.254)" \
896 ifconfig ${epair_one}b 198.51.100.254/24 up
897 ifconfig ${epair_two}b 198.51.100.253/24 up
898 route add -net 203.0.113.0/24 198.51.100.1
899 ifconfig ${epair_two}b up
900 ifconfig ${epair_out_one}b up
901 ifconfig ${epair_out_two}b up
903 atf_check -s exit:0 env PYTHONPATH=${common_dir} \
905 --sendif ${epair_one}b \
906 --fromaddr 198.51.100.254 \
907 --to 203.0.113.254 \
908 --recvif ${epair_out_one}b
911 ifconfig ${epair_one}b inet 198.51.100.254 -alias
912 route del -net 203.0.113.0/24 198.51.100.1
913 route add -net 203.0.113.0/24 198.51.100.2
920 --sendif ${epair_two}b \
921 --fromaddr 198.51.100.254 \
922 --to 203.0.113.254 \
923 --recvif ${epair_out_two}b