Lines Matching +full:0 +full:- +full:64

2 # SPDX-License-Identifier: BSD-2-Clause
36 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
37 route -6 add default 2001:db8::1
40 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
48 atf_check -s exit:0 -o ignore \
49 ping6 -c 1 2001:db8::1
50 atf_check -s exit:0 -o ignore \
51 jexec dst ping -c 1 192.0.2.1
53 jexec rtr pfctl -e
61 "set state-policy if-bound" \
62 "pass in on ${epair}b inet6 from any to 64:ff9b::/96 af-to inet from (${epair_link}a)"
69 # AF translation happens post-routing, traffic must be directed
71 # jexec rtr ifconfig ${epair_link}a inet6 2001:db8:2::1/64 up no_dad
72 jexec rtr route add -inet6 64:ff9b::/96 -iface ${epair_link}a;
75 "set state-policy if-bound" \
76 "pass quick inet6 proto icmp6 icmp6-type { neighbrsol, neighbradv }" \
77 "pass in quick on ${epair}b from any to 64:ff9b::/96" \
78 "pass out quick on ${epair_link}a from any to 64:ff9b::/96 af-to inet from (${epair_link}a)" \
94 atf_check -s exit:0 -o ignore \
95 ping6 -c 1 64:ff9b::192.0.2.2
98 atf_check -s exit:0 \
99 -o match:'5 packets transmitted, 5 packets received, 0.0% packet loss' \
100 ping6 -c 5 64:ff9b::192.0.2.2
120 atf_check -s exit:0 -o ignore \
121 ping6 -c 1 64:ff9b::192.0.2.2
124 atf_check -s exit:0 \
125 -o match:'5 packets transmitted, 5 packets received, 0.0% packet loss' \
126 ping6 -c 5 64:ff9b::192.0.2.2
145 atf_check -s exit:0 -o ignore \
146 ping6 -c 1 -s 1280 64:ff9b::192.0.2.2
148 atf_check -s exit:0 \
149 -o match:'3 packets transmitted, 3 packets received, 0.0% packet loss' \
150 ping6 -c 3 -s 2000 64:ff9b::192.0.2.2
151 atf_check -s exit:0 \
152 -o match:'3 packets transmitted, 3 packets received, 0.0% packet loss' \
153 ping6 -c 3 -s 10000 -b 20000 64:ff9b::192.0.2.2
172 atf_check -s exit:0 -o ignore \
173 ping6 -c 1 -s 1280 64:ff9b::192.0.2.2
175 atf_check -s exit:0 \
176 -o match:'3 packets transmitted, 3 packets received, 0.0% packet loss' \
177 ping6 -c 3 -s 2000 64:ff9b::192.0.2.2
178 atf_check -s exit:0 \
179 -o match:'3 packets transmitted, 3 packets received, 0.0% packet loss' \
180 ping6 -c 3 -s 10000 -b 20000 64:ff9b::192.0.2.2
199 echo "foo" | jexec dst nc -l 1234 &
202 atf_check -s exit:0 -o ignore \
203 ping6 -c 1 64:ff9b::192.0.2.2
205 rcv=$(nc -w 3 -6 64:ff9b::c000:202 1234)
229 echo "foo" | jexec dst nc -l 1234 &
232 atf_check -s exit:0 -o ignore \
233 ping6 -c 1 64:ff9b::192.0.2.2
235 rcv=$(nc -w 3 -6 64:ff9b::c000:202 1234)
259 echo "foo" | jexec dst nc -u -l 1234 &
262 atf_check -s exit:0 -o ignore \
263 ping6 -c 1 64:ff9b::192.0.2.2
265 rcv=$(echo bar | nc -w 3 -6 -u 64:ff9b::c000:202 1234)
289 echo "foo" | jexec dst nc -u -l 1234 &
292 atf_check -s exit:0 -o ignore \
293 ping6 -c 1 64:ff9b::192.0.2.2
295 rcv=$(echo bar | nc -w 3 -6 -u 64:ff9b::c000:202 1234)
318 if ! kldstat -q -m sctp; then
322 echo "foo" | jexec dst nc --sctp -N -l 1234 &
325 atf_check -s exit:0 -o ignore \
326 ping6 -c 1 64:ff9b::192.0.2.2
328 rcv=$(echo bar | nc --sctp -w 3 -6 64:ff9b::c000:202 1234)
351 if ! kldstat -q -m sctp; then
355 echo "foo" | jexec dst nc --sctp -N -l 1234 &
358 atf_check -s exit:0 -o ignore \
359 ping6 -c 1 64:ff9b::192.0.2.2
361 rcv=$(echo bar | nc --sctp -w 3 -6 64:ff9b::c000:202 1234)
386 jexec dst pfctl -e
391 atf_check -s exit:0 -o ignore \
392 ping6 -c 1 -z 4 64:ff9b::192.0.2.2
393 atf_check -s exit:2 -o ignore \
394 ping6 -c 1 -z 8 64:ff9b::192.0.2.2
395 atf_check -s exit:0 -o ignore \
396 ping6 -c 1 -z 16 64:ff9b::192.0.2.2
398 jexec dst pfctl -sr -vv
420 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
421 route -6 add default 2001:db8::1
424 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
431 atf_check -s exit:0 -o ignore \
432 ping6 -c 1 2001:db8::1
434 jexec rtr pfctl -e
436 "pass in on ${epair}b inet6 from any to 64:ff9b::/96 af-to inet from (${epair_link}a)"
438 atf_check -s exit:2 -o ignore \
439 ping6 -c 3 64:ff9b::192.0.2.2
461 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
462 route -6 add default 2001:db8::1
465 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
474 atf_check -s exit:0 -o ignore \
475 jexec rtr ping -c 1 192.0.2.254
476 atf_check -s exit:0 -o ignore \
477 ping6 -c 1 2001:db8::1
478 atf_check -s exit:0 -o ignore \
479 jexec dst ping -c 1 192.0.2.2
480 atf_check -s exit:0 -o ignore \
481 jexec dst ping -c 1 192.0.2.3
483 jexec rtr pfctl -e
486 "set state-policy if-bound" \
487 "pass in on ${epair}b inet6 from any to 64:ff9b::/96 af-to inet from 192.0.2.2/31 round-robin"
490 jexec dst pfctl -e
494 atf_check -s exit:0 -o ignore \
495 ping6 -c 1 64:ff9b::192.0.2.254
496 atf_check -s exit:0 -o ignore \
497 ping6 -c 1 64:ff9b::192.0.2.254
500 atf_check -s exit:0 -o match:".*192.0.2.2.*" \
501 jexec dst pfctl -ss
502 atf_check -s exit:0 -o match:".*192.0.2.3.*" \
503 jexec dst pfctl -ss
525 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
526 route -6 add default 2001:db8::1
529 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
539 atf_check -s exit:0 -o ignore \
540 ping6 -c 1 2001:db8::1
541 atf_check -s exit:0 -o ignore \
542 jexec dst ping -c 1 192.0.2.1
544 jexec rtr pfctl -e
547 "set state-policy if-bound" \
548 …"pass in on ${epair}b inet6 from any to 64:ff9b::/96 af-to inet from { 192.0.2.1, 192.0.2.3, 192.0…
551 jexec dst pfctl -e
555 atf_check -s exit:0 -o ignore \
556 ping6 -c 1 64:ff9b::192.0.2.2
557 atf_check -s exit:0 -o ignore \
558 ping6 -c 1 64:ff9b::192.0.2.2
559 atf_check -s exit:0 -o ignore \
560 ping6 -c 1 64:ff9b::192.0.2.2
563 atf_check -s exit:0 -o match:".*192.0.2.1.*" \
564 jexec dst pfctl -ss
565 atf_check -s exit:0 -o match:".*192.0.2.3.*" \
566 jexec dst pfctl -ss
567 atf_check -s exit:0 -o match:".*192.0.2.4.*" \
568 jexec dst pfctl -ss
588 # Round-robin and random are allowed
589 echo "pass in on epair inet6 from any to 64:ff9b::/96 af-to inet from <wanaddr> round-robin" | \
590 atf_check -s exit:0 \
591 pfctl -f -
592 echo "pass in on epair inet6 from any to 64:ff9b::/96 af-to inet from <wanaddr> random" | \
593 atf_check -s exit:0 \
594 pfctl -f -
597 echo "pass in on epair inet6 from any to 64:ff9b::/96 af-to inet from <wanaddr> bitmask" | \
598 atf_check -s exit:1 \
599 -e match:"tables are not supported by pool type" \
600 pfctl -f -
622 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
623 route -6 add default 2001:db8::1
626 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
635 atf_check -s exit:0 -o ignore \
636 ping6 -c 1 2001:db8::1
637 atf_check -s exit:0 -o ignore \
638 jexec dst ping -c 1 192.0.2.2
640 jexec rtr pfctl -e
643 "set state-policy if-bound" \
645 "pass in on ${epair}b inet6 from any to 64:ff9b::/96 af-to inet from <wanaddrs> round-robin"
648 jexec dst pfctl -e
652 atf_check -s exit:0 -o ignore \
653 ping6 -c 1 64:ff9b::192.0.2.254
654 atf_check -s exit:0 -o ignore \
655 ping6 -c 1 64:ff9b::192.0.2.254
658 atf_check -s exit:0 -o match:".*192.0.2.2.*" \
659 jexec dst pfctl -ss
660 atf_check -s exit:0 -o match:".*192.0.2.3.*" \
661 jexec dst pfctl -ss
678 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
679 route -6 add default 2001:db8::1
682 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
692 atf_check -s exit:0 -o ignore \
693 ping6 -c 1 2001:db8::1
694 atf_check -s exit:0 -o ignore \
695 jexec dst ping -c 1 192.0.2.1
697 jexec rtr pfctl -e
700 "set state-policy if-bound" \
702 "pass in on ${epair}b inet6 from any to 64:ff9b::/96 af-to inet from <wanaddrs> ${pool_type}"
705 jexec dst pfctl -e
709 atf_check -s exit:0 -o ignore \
710 ping6 -c 1 64:ff9b::192.0.2.2
711 atf_check -s exit:0 -o ignore \
712 ping6 -c 1 64:ff9b::192.0.2.2
713 atf_check -s exit:0 -o ignore \
714 ping6 -c 1 64:ff9b::192.0.2.2
718 if [ "${pool_type}" == "round-robin" ];
721 atf_check -s exit:0 -o match:".*192.0.2.1.*" \
722 jexec dst pfctl -ss
723 atf_check -s exit:0 -o match:".*192.0.2.3.*" \
724 jexec dst pfctl -ss
725 atf_check -s exit:0 -o match:".*192.0.2.4.*" \
726 jexec dst pfctl -ss
733 atf_set descr 'Use a table of IPv4 addresses in round-robin mode'
739 table_common_body round-robin
767 atf_set descr 'Test dummynet on af-to rules'
779 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
780 route -6 add default 2001:db8::1
783 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
791 atf_check -s exit:0 -o ignore \
792 ping6 -c 1 2001:db8::1
793 atf_check -s exit:0 -o ignore \
794 jexec dst ping -c 1 192.0.2.1
796 jexec rtr pfctl -e
800 "set state-policy if-bound" \
801 "pass in on ${epair}b inet6 from any to 64:ff9b::/96 dnpipe 1 af-to inet from (${epair_link}a)"
805 atf_check -s exit:0 -o ignore \
806 ping6 -c 1 -t 2 64:ff9b::192.0.2.2
809 atf_check -s exit:2 -o ignore \
810 ping6 -c 1 -t 1 64:ff9b::192.0.2.2
833 ifconfig ${epair}a inet6 2001:db8:1::2/64 up no_dad
834 route -6 add default 2001:db8:1::1
837 jexec lan_rtr ifconfig ${epair}b inet6 2001:db8:1::1/64 up no_dad
838 jexec lan_rtr ifconfig ${epair_lan_link}a inet6 2001:db8::2/64 up no_dad
839 jexec lan_rtr route -6 add default 2001:db8::1
843 jexec rtr ifconfig ${epair_lan_link}b inet6 2001:db8::1/64 up no_dad
845 jexec rtr route -6 add default 2001:db8::2
852 atf_check -s exit:0 -o ignore \
853 ping6 -c 1 2001:db8:1::1
854 atf_check -s exit:0 -o ignore \
855 ping6 -c 1 2001:db8::1
856 atf_check -s exit:0 -o ignore \
857 jexec dst ping -c 1 192.0.2.1
859 jexec rtr pfctl -e
862 "set state-policy if-bound" \
863 "pass in on ${epair_lan_link}b inet6 from any to 64:ff9b::/96 af-to inet from (${epair_link}a)"
866 atf_check -s exit:0 -o ignore \
867 ping6 -c 1 64:ff9b::192.0.2.2
870 atf_check -s exit:0 \
871 -o match:'5 packets transmitted, 5 packets received, 0.0% packet loss' \
872 ping6 -c 5 64:ff9b::192.0.2.2
883 atf_set descr 'Test route-to on af-to rules'
895 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
896 route -6 add default 2001:db8::1
899 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
908 atf_check -s exit:0 -o ignore \
909 ping6 -c 1 2001:db8::1
911 jexec rtr pfctl -e
914 "set state-policy if-bound" \
915 …"pass in on ${epair}b route-to (${epair_link}a 192.0.2.2) inet6 from any to 64:ff9b::/96 af-to ine…
917 atf_check -s exit:0 -o ignore \
918 ping6 -c 3 64:ff9b::192.0.2.2
929 atf_set descr 'Test reply-to on af-to rules'
940 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad
941 route -6 add default 2001:db8::1
944 jexec rtr ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad
952 atf_check -s exit:0 -o ignore \
953 ping6 -c 1 2001:db8::1
955 jexec rtr pfctl -e
958 "set state-policy if-bound" \
959 …"pass in on ${epair}b reply-to (${epair}b 2001:db8::2) inet6 from any to 64:ff9b::/96 af-to inet f…
961 atf_check -s exit:0 -o ignore \
962 ping6 -c 3 64:ff9b::192.0.2.2
985 ifconfig ${epair_lan}a inet6 2001:db8::2/64 up no_dad
986 route -6 add default 2001:db8::1
989 jexec rtr ifconfig ${epair_lan}b inet6 2001:db8::1/64 up no_dad
991 jexec rtr ifconfig ${epair_wan_one}a inet6 -ifdisabled
992 jexec rtr route add default -inet6 fe80::1%${epair_wan_one}a
997 jexec wan_one ifconfig ${epair_wan_one}b inet6 fe80::1/64
1007 atf_check -s exit:0 -o ignore \
1008 ping6 -c 1 2001:db8::1
1009 atf_check -s exit:0 -o ignore \
1010 jexec rtr ping -c 1 192.0.2.2
1011 atf_check -s exit:0 -o ignore \
1012 jexec rtr ping -c 1 198.51.100.1
1014 jexec rtr pfctl -e
1017 "set state-policy if-bound" \
1018 "pass in on ${epair_lan}b inet6 from any to 64:ff9b::/96 af-to inet from (${epair_wan_one}a)"
1020 atf_check -s exit:0 -o ignore \
1021 ping6 -c 3 64:ff9b::192.0.2.2
1022 atf_check -s exit:0 -o ignore \
1023 ping6 -c 3 64:ff9b::198.51.100.1