use_pty:FALSE /usr/share/restraint/plugins/run_task_plugins bash ./runtest.sh :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Setup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 06:43:26 ] :: [ BEGIN ] :: Running 'nl_fib_lookup_install' Last metadata expiration check: 0:23:46 ago on Wed 28 Sep 2022 06:19:41 AM EDT. Package libnl3-3.7.0-2.fc37.x86_64 is already installed. Package libnl3-devel-3.7.0-2.fc37.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func/tools /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func :: [ 06:43:29 ] :: [ PASS ] :: Command 'nl_fib_lookup_install' (Expected 0, got 0) :: [ 06:43:29 ] :: [ LOG ] :: test_items:route_prefix_test route_selector_test route_options_test route_addr_test rule_test :: [ 06:43:29 ] :: [ LOG ] :: test_topo:default :: [ 06:43:29 ] :: [ LOG ] :: test_type:netns :: [ 06:43:29 ] :: [ LOG ] :: route_mode:forward :: [ 06:43:29 ] :: [ BEGIN ] :: Running 'default_forward_setup' /proc/sys/net/ipv4/conf/all/forwarding = 1 /proc/sys/net/ipv6/conf/all/forwarding = 1 /proc/sys/net/ipv4/conf/all/forwarding = 1 /proc/sys/net/ipv6/conf/all/forwarding = 1 /proc/sys/net/ipv4/conf/all/rp_filter = 0 /proc/sys/net/ipv4/conf/default/rp_filter = 0 /proc/sys/net/ipv4/conf/eth0r0/rp_filter = 0 /proc/sys/net/ipv4/conf/eth1r0/rp_filter = 0 /proc/sys/net/ipv4/conf/veth0_r/rp_filter = 0 /proc/sys/net/ipv4/ip_forward_use_pmtu = 1 /proc/sys/net/ipv4/conf/all/rp_filter = 0 /proc/sys/net/ipv4/conf/default/rp_filter = 0 /proc/sys/net/ipv4/conf/eth0r0_r/rp_filter = 0 /proc/sys/net/ipv4/conf/eth1r0_r/rp_filter = 0 /proc/sys/net/ipv4/conf/veth2_r/rp_filter = 0 /proc/sys/net/ipv4/ip_forward_use_pmtu = 1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.075 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.061 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.047 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.066 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.064 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4110ms rtt min/avg/max/mdev = 0.047/0.062/0.075/0.009 ms PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.146 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.104 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.098 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.093 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.069 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4091ms rtt min/avg/max/mdev = 0.069/0.102/0.146/0.025 ms :: [ 06:43:37 ] :: [ PASS ] :: Command 'default_forward_setup' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 11s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Setup) ** Setup PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Prefix netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 06:43:38 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Selector netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 06:43:38 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Options netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 06:43:38 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route Addr netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [06:43:38][root]# echo 'nohup tcpdump -U -i eth0r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 06:43:38 ] :: [ BEGIN ] :: Running 'sleep 2' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:43:40 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:43:40 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:43:40][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.047 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.097 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.082 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.097 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.101 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4096ms rtt min/avg/max/mdev = 0.047/0.084/0.101/0.020 ms :: [ 06:43:44 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:43:44 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 06:43:47 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 06:43:47 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:43:47][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 14 packets captured 14 packets received by filter 0 packets dropped by kernel :: [ 06:43:47 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 06:43:47 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 06:43:49 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:43:49 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' 06:43:40.552864 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28170, seq 1, length 64 06:43:41.576872 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28170, seq 2, length 64 06:43:42.600862 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28170, seq 3, length 64 06:43:43.624896 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28170, seq 4, length 64 06:43:44.648876 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28170, seq 5, length 64 :: [ 06:43:49 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 06:43:49 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' [06:43:49][root]# echo 'ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 06:43:49 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 06:43:49 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' [06:43:49][root]# echo 'ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 06:43:49 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0-255, got 2) :: [ 06:43:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route list' [06:43:50][root]# echo 'ip -4 route list' | ip netns exec route0 bash default via 10.0.0.2 dev eth0r0 10.0.0.0/24 dev eth0r0 proto kernel scope link src 10.0.0.1 10.1.1.0/24 dev eth1r0 proto kernel scope link src 10.1.1.1 192.168.0.0/24 dev veth0_r proto kernel scope link src 192.168.0.254 192.168.1.1 via 10.1.1.2 dev eth1r0 :: [ 06:43:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route list' (Expected 0, got 0) :: [ 06:43:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1' [06:43:50][root]# echo 'ip -4 route get 192.168.1.1' | ip netns exec route0 bash 192.168.1.1 via 10.1.1.2 dev eth1r0 src 10.1.1.1 uid 0 cache :: [ 06:43:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1' (Expected 0, got 0) [06:43:50][root]# echo 'nohup tcpdump -U -i eth1r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 06:43:50 ] :: [ BEGIN ] :: Running 'sleep 2' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:43:52 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:43:52 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:43:52][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.071 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.094 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.108 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.081 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.158 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4072ms rtt min/avg/max/mdev = 0.071/0.102/0.158/0.030 ms :: [ 06:43:56 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:43:56 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 06:43:59 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 06:43:59 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:43:59][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 06:43:59 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 06:43:59 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 06:44:01 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:44:01 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' 06:43:52.160708 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 48053, seq 1, length 64 06:43:53.160882 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 48053, seq 2, length 64 06:43:54.184891 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 48053, seq 3, length 64 06:43:55.208868 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 48053, seq 4, length 64 06:43:56.233043 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 48053, seq 5, length 64 :: [ 06:44:01 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 06:44:01 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' [06:44:01][root]# echo 'ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 06:44:01 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 06:44:01 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' [06:44:01][root]# echo 'ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash RTNETLINK answers: No such process :: [ 06:44:01 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0-255, got 2) [06:44:01][root]# echo 'nohup tcpdump -U -i eth0r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 06:44:01 ] :: [ BEGIN ] :: Running 'sleep 2' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:44:03 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:44:03 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:44:03][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.073 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.115 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.054 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.083 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.066 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4110ms rtt min/avg/max/mdev = 0.054/0.078/0.115/0.020 ms :: [ 06:44:07 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:44:07 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 06:44:10 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 06:44:10 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:44:10][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 12 packets captured 12 packets received by filter 0 packets dropped by kernel :: [ 06:44:10 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 06:44:10 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 06:44:12 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:44:12 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' 06:44:03.642900 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 13114, seq 1, length 64 06:44:04.680926 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 13114, seq 2, length 64 06:44:05.704873 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 13114, seq 3, length 64 06:44:06.728875 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 13114, seq 4, length 64 06:44:07.752862 e2:72:d9:6b:db:33 > ea:f0:54:9c:ce:b6, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 13114, seq 5, length 64 :: [ 06:44:12 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' (Expected 0, got 0) :: [ 06:44:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' [06:44:13][root]# echo 'ip -6 route add 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 06:44:13 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 06:44:13 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' [06:44:13][root]# echo 'ip -6 route add 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 06:44:13 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' (Expected 0-255, got 2) :: [ 06:44:13 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route list' [06:44:13][root]# echo 'ip -6 route list' | ip netns exec route0 bash 2000::/64 dev veth0_r proto kernel metric 256 pref medium 2001::1 via 4002::2 dev eth1r0 metric 1024 pref medium 4001::/64 dev eth0r0 proto kernel metric 256 pref medium 4002::/64 dev eth1r0 proto kernel metric 256 pref medium fe80::/64 dev eth0r0 proto kernel metric 256 pref medium fe80::/64 dev eth1r0 proto kernel metric 256 pref medium fe80::/64 dev veth0_r proto kernel metric 256 pref medium default via 4001::2 dev eth0r0 metric 1024 pref medium :: [ 06:44:13 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route list' (Expected 0, got 0) :: [ 06:44:13 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1' [06:44:13][root]# echo 'ip -6 route get 2001::1' | ip netns exec route0 bash 2001::1 from :: via 4002::2 dev eth1r0 src 4002::1 metric 1024 pref medium :: [ 06:44:13 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1' (Expected 0, got 0) [06:44:13][root]# echo 'nohup tcpdump -U -i eth1r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 06:44:13 ] :: [ BEGIN ] :: Running 'sleep 2' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:44:15 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:44:15 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:44:15][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.119 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.094 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.107 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.109 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.096 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4132ms rtt min/avg/max/mdev = 0.094/0.105/0.119/0.009 ms :: [ 06:44:19 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:44:19 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 06:44:22 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 06:44:22 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:44:22][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 9 packets captured 9 packets received by filter 0 packets dropped by kernel :: [ 06:44:22 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 06:44:22 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 06:44:24 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:44:24 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' 06:44:15.268817 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11475, seq 1, length 64 06:44:16.328875 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11475, seq 2, length 64 06:44:17.352892 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11475, seq 3, length 64 06:44:18.376896 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11475, seq 4, length 64 06:44:19.400897 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11475, seq 5, length 64 :: [ 06:44:24 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' (Expected 0, got 0) :: [ 06:44:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' [06:44:24][root]# echo 'ip -6 route del 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 06:44:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 06:44:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' [06:44:24][root]# echo 'ip -6 route del 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash RTNETLINK answers: No such process :: [ 06:44:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' (Expected 0-255, got 2) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 46s :: Assertions: 36 good, 0 bad :: RESULT: PASS (Route Addr netns default forward) ** Route-Addr-netns-default-forward PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Rule Test netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "0:.*from all.*lookup local"' 0: from all lookup local :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "0:.*from all.*lookup local"' (Expected 0, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32766:.*from all.*lookup main"' 32766: from all lookup main :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32766:.*from all.*lookup main"' (Expected 0, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 100' [06:44:25][root]# echo 'ip -4 rule add to 192.168.1.1 goto 100' | ip netns exec route0 bash Error: Backward goto not supported. :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 100' (Expected 2,254, got 2) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table -5' [06:44:25][root]# echo 'ip -4 rule add to 192.168.1.1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' [06:44:25][root]# echo 'ip -4 rule del to 192.168.1.1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' [06:44:25][root]# echo 'ip -4 rule del to 192.168.1.1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table local' [06:44:25][root]# echo 'ip -4 rule add to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table local' (Expected 0, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table local' [06:44:25][root]# echo 'ip -4 rule add to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table local' (Expected 0-255, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup local"' 32765: from all to 192.168.1.1 lookup local :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup local"' (Expected 0, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [06:44:25][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [06:44:25][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' 32762: from all to 192.168.1.1 goto 32765 32763: from all to 192.168.1.1 goto 32765 :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table local' [06:44:25][root]# echo 'ip -4 rule del to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table local' (Expected 0, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table local' [06:44:25][root]# echo 'ip -4 rule del to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 06:44:25 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table local' (Expected 0-255, got 0) :: [ 06:44:25 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [06:44:26][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [06:44:26][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table main' [06:44:26][root]# echo 'ip -4 rule add to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table main' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table main' [06:44:26][root]# echo 'ip -4 rule add to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table main' (Expected 0-255, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup main"' 32765: from all to 192.168.1.1 lookup main :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup main"' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [06:44:26][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [06:44:26][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' 32762: from all to 192.168.1.1 goto 32765 32763: from all to 192.168.1.1 goto 32765 :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table main' [06:44:26][root]# echo 'ip -4 rule del to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table main' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table main' [06:44:26][root]# echo 'ip -4 rule del to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table main' (Expected 0-255, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [06:44:26][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [06:44:26][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' [06:44:26][root]# echo 'ip -4 rule add to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' [06:44:26][root]# echo 'ip -4 rule add to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' (Expected 0-255, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup 200"' 32765: from all to 192.168.1.1 lookup 200 :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup 200"' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [06:44:26][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [06:44:26][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' 32762: from all to 192.168.1.1 goto 32765 32763: from all to 192.168.1.1 goto 32765 :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 06:44:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' [06:44:26][root]# echo 'ip -4 rule del to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 06:44:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' (Expected 0, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' [06:44:27][root]# echo 'ip -4 rule del to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' (Expected 0-255, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [06:44:27][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [06:44:27][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' [06:44:27][root]# echo 'ip -4 rule add to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' (Expected 0, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' [06:44:27][root]# echo 'ip -4 rule add to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' (Expected 0-255, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' [06:44:27][root]# echo 'ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 | grep eth1r0' 192.168.1.1 via 10.1.1.2 dev eth1r0 table 300 src 10.1.1.1 uid 0 :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 | grep eth1r0' (Expected 0, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' 192.168.1.1 via 10.1.1.2 dev eth1r0 table 300 src 10.1.1.1 uid 0 :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' (Expected 0, got 0) :: [ 06:44:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' :: [ 06:44:27 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' (Expected 1, got 1) [06:44:27][root]# echo 'nohup tcpdump -U -i eth1r0 -p -w route_second.pcap &' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:44:32 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 1' [06:44:32][root]# echo 'ping 192.168.1.1 -c 1' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.081 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.081/0.081/0.081/0.000 ms :: [ 06:44:32 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 1' (Expected 0, got 0) :: [ 06:44:32 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 06:44:34 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:44:34 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:44:34][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 1 packet captured 1 packet received by filter 0 packets dropped by kernel :: [ 06:44:34 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:44:39 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 192.168.1.1"' reading from file route_second.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 06:44:32.513348 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 38924, seq 1, length 64 :: [ 06:44:39 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 06:44:39 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' [06:44:39][root]# echo 'ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 06:44:39 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 06:44:39 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' [06:44:39][root]# echo 'ip -4 rule del to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 06:44:39 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' (Expected 0, got 0) :: [ 06:44:39 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' [06:44:39][root]# echo 'ip -4 rule del to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 06:44:39 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' (Expected 0-255, got 0) :: [ 06:44:39 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:44:39][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.045 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.083 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.059 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.060 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.088 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4114ms rtt min/avg/max/mdev = 0.045/0.067/0.088/0.016 ms :: [ 06:44:43 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "0:.*from all.*lookup local"' 0: from all lookup local :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "0:.*from all.*lookup local"' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32766:.*from all.*lookup main"' 32766: from all lookup main :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32766:.*from all.*lookup main"' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 100' [06:44:44][root]# echo 'ip -6 rule add to 2001::1 goto 100' | ip netns exec route0 bash Error: Backward goto not supported. :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 100' (Expected 2,254, got 2) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table -5' [06:44:44][root]# echo 'ip -6 rule add to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table -5' (Expected 0-255, got 255) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table -5' [06:44:44][root]# echo 'ip -6 rule del to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table -5' (Expected 0-255, got 255) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table -5' [06:44:44][root]# echo 'ip -6 rule del to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table -5' (Expected 0-255, got 255) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table local' [06:44:44][root]# echo 'ip -6 rule add to 2001::1 table local' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table local' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table local' [06:44:44][root]# echo 'ip -6 rule add to 2001::1 table local' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table local' (Expected 0-255, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup local"' 32765: from all to 2001::1 lookup local :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup local"' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [06:44:44][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [06:44:44][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' 32762: from all to 2001::1 goto 32765 32763: from all to 2001::1 goto 32765 :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table local' [06:44:44][root]# echo 'ip -6 rule del to 2001::1 table local' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table local' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table local' [06:44:44][root]# echo 'ip -6 rule del to 2001::1 table local' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table local' (Expected 0-255, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [06:44:44][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [06:44:44][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table main' [06:44:44][root]# echo 'ip -6 rule add to 2001::1 table main' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table main' (Expected 0, got 0) :: [ 06:44:44 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table main' [06:44:44][root]# echo 'ip -6 rule add to 2001::1 table main' | ip netns exec route0 bash :: [ 06:44:44 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table main' (Expected 0-255, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup main"' 32765: from all to 2001::1 lookup main :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup main"' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [06:44:45][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [06:44:45][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' 32762: from all to 2001::1 goto 32765 32763: from all to 2001::1 goto 32765 :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table main' [06:44:45][root]# echo 'ip -6 rule del to 2001::1 table main' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table main' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table main' [06:44:45][root]# echo 'ip -6 rule del to 2001::1 table main' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table main' (Expected 0-255, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [06:44:45][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [06:44:45][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 200' [06:44:45][root]# echo 'ip -6 rule add to 2001::1 table 200' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 200' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 200' [06:44:45][root]# echo 'ip -6 rule add to 2001::1 table 200' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 200' (Expected 0-255, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup 200"' 32765: from all to 2001::1 lookup 200 :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup 200"' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [06:44:45][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [06:44:45][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' 32762: from all to 2001::1 goto 32765 32763: from all to 2001::1 goto 32765 :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 200' [06:44:45][root]# echo 'ip -6 rule del to 2001::1 table 200' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 200' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 200' [06:44:45][root]# echo 'ip -6 rule del to 2001::1 table 200' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 200' (Expected 0-255, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [06:44:45][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 06:44:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [06:44:45][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 06:44:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 06:44:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 300' [06:44:46][root]# echo 'ip -6 rule add to 2001::1 table 300' | ip netns exec route0 bash :: [ 06:44:46 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 300' (Expected 0, got 0) :: [ 06:44:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 300' [06:44:46][root]# echo 'ip -6 rule add to 2001::1 table 300' | ip netns exec route0 bash :: [ 06:44:46 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 300' (Expected 0-255, got 0) :: [ 06:44:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add table 300 default dev eth1r0 via 4002::2' [06:44:46][root]# echo 'ip -6 route add table 300 default dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 06:44:46 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add table 300 default dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 06:44:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 | grep eth1r0' 2001::1 from :: via 4002::2 dev eth1r0 table 300 src 4002::1 metric 1024 pref medium :: [ 06:44:46 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 | grep eth1r0' (Expected 0, got 0) :: [ 06:44:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' 2001::1 from :: via 4002::2 dev eth1r0 table 300 src 4002::1 metric 1024 pref medium :: [ 06:44:46 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' (Expected 0, got 0) :: [ 06:44:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' :: [ 06:44:46 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' (Expected 1, got 1) [06:44:46][root]# echo 'nohup tcpdump -U -i eth1r0 -p -w route_second.pcap &' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:44:51 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 1' [06:44:51][root]# echo 'ping6 2001::1 -c 1' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.073 ms --- 2001::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.073/0.073/0.073/0.000 ms :: [ 06:44:51 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 1' (Expected 0, got 0) :: [ 06:44:51 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 06:44:53 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 06:44:53 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:44:53][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 1 packet captured 1 packet received by filter 0 packets dropped by kernel :: [ 06:44:53 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:44:58 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 2001::1"' reading from file route_second.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 06:44:51.349797 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 7101, seq 1, length 64 :: [ 06:44:58 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 06:44:58 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del table 300 default dev eth1r0 via 4002::2' [06:44:58][root]# echo 'ip -6 route del table 300 default dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 06:44:58 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del table 300 default dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 06:44:58 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 300' [06:44:58][root]# echo 'ip -6 rule del to 2001::1 table 300' | ip netns exec route0 bash :: [ 06:44:58 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 300' (Expected 0, got 0) :: [ 06:44:58 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 300' [06:44:58][root]# echo 'ip -6 rule del to 2001::1 table 300' | ip netns exec route0 bash :: [ 06:44:58 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 300' (Expected 0-255, got 0) :: [ 06:44:58 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:44:58][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.087 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.091 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.102 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.097 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.095 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4134ms rtt min/avg/max/mdev = 0.087/0.094/0.102/0.005 ms :: [ 06:45:02 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:45:02 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' [06:45:02][root]# echo 'ip -4 rule del to 172.145.11.1 table unspec' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:45:02 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' (Expected 2,254, got 2) :: [ 06:45:02 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 172.145.11.1 table unspec' [06:45:02][root]# echo 'ip -4 rule add to 172.145.11.1 table unspec' | ip netns exec route0 bash :: [ 06:45:02 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 172.145.11.1 table unspec' (Expected 0, got 0) :: [ 06:45:02 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep 172.145.11.1' 32765: from all to 172.145.11.1 lookup 1 :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep 172.145.11.1' (Expected 0, got 0) :: [ 06:45:03 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' [06:45:03][root]# echo 'ip -4 rule del to 172.145.11.1 table unspec' | ip netns exec route0 bash :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' (Expected 0, got 0) :: [ 06:45:03 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep 172.145.11.1' :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep 172.145.11.1' (Expected 1, got 1) :: [ 06:45:03 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 4543:1111::1 table unspec' [06:45:03][root]# echo 'ip -6 rule del to 4543:1111::1 table unspec' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 4543:1111::1 table unspec' (Expected 2,254, got 2) :: [ 06:45:03 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 | grep 10.0.0.2' 192.168.1.1 via 10.0.0.2 dev eth0r0 src 10.0.0.1 uid 0 :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 | grep 10.0.0.2' (Expected 0, got 0) :: [ 06:45:03 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' [06:45:03][root]# echo 'ip -4 rule add from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' (Expected 0, got 0) :: [ 06:45:03 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' [06:45:03][root]# echo 'ip -4 rule add from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' (Expected 0-255, got 0) :: [ 06:45:03 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' 32764: from 192.168.0.1 lookup 11 32765: from 192.168.0.1 lookup 11 :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' (Expected 0, got 0) :: [ 06:45:03 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [06:45:03][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 06:45:03 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [06:45:03][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:45:05 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:45:05][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.089 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.055 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.101 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.140 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.128 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4104ms rtt min/avg/max/mdev = 0.055/0.102/0.140/0.030 ms :: [ 06:45:09 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:45:11 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:45:11][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 9 packets received by filter 0 packets dropped by kernel :: [ 06:45:11 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:45:16 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 06:45:05.472498 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 27793, seq 1, length 64 06:45:06.504863 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 27793, seq 2, length 64 06:45:07.528873 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 27793, seq 3, length 64 06:45:08.552920 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 27793, seq 4, length 64 06:45:09.576905 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 27793, seq 5, length 64 :: [ 06:45:16 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 06:45:16 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [06:45:16][root]# echo 'ip -4 rule del from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 06:45:16 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0, got 0) :: [ 06:45:16 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [06:45:16][root]# echo 'ip -4 rule del from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 06:45:16 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0-255, got 0) :: [ 06:45:16 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' :: [ 06:45:16 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' (Expected 1, got 1) :: [ 06:45:16 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [06:45:16][root]# echo 'ip -4 rule del from 192.168.0.1 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:45:16 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0-255, got 2) :: [ 06:45:16 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [06:45:16][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 06:45:17 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [06:45:17][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:45:19 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:45:19][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.068 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.128 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.051 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.103 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.063 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4088ms rtt min/avg/max/mdev = 0.051/0.082/0.128/0.028 ms :: [ 06:45:23 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:45:25 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:45:25][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 06:45:25 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:45:30 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 06:45:30 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 06:45:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' [06:45:30][root]# echo 'ip -4 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 06:45:30 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 06:45:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' [06:45:30][root]# echo 'ip -4 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 06:45:30 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 06:45:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [06:45:30][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 06:45:30 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [06:45:30][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:45:32 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:45:32][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.066 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.087 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.059 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.091 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.093 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4081ms rtt min/avg/max/mdev = 0.059/0.079/0.093/0.013 ms :: [ 06:45:36 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:45:38 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:45:38][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 06:45:38 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:45:43 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 06:45:32.504183 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 11945, seq 1, length 64 06:45:33.512881 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 11945, seq 2, length 64 06:45:34.536848 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 11945, seq 3, length 64 06:45:35.560873 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 11945, seq 4, length 64 06:45:36.584882 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 11945, seq 5, length 64 :: [ 06:45:43 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 06:45:43 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [06:45:43][root]# echo 'ip -4 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 06:45:43 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 06:45:43 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [06:45:43][root]# echo 'ip -4 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:45:43 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 06:45:43 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [06:45:43][root]# echo 'ip -4 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:45:43 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 06:45:43 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [06:45:43][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 06:45:43 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [06:45:43][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:45:45 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:45:45][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.077 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.090 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.052 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.048 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.082 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4083ms rtt min/avg/max/mdev = 0.048/0.069/0.090/0.016 ms :: [ 06:45:50 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:45:52 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:45:52][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 06:45:52 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' [06:45:57][root]# echo 'ip -4 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' [06:45:57][root]# echo 'ip -4 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [06:45:57][root]# echo 'ip -4 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [06:45:57][root]# echo 'ip -4 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [06:45:57][root]# echo 'ip -4 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 2) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [06:45:57][root]# echo 'ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0, got 0) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "100:.*not from 192.168.1.1 to 192.168.0.1.*lookup 11"' 100: not from 192.168.1.1 to 192.168.0.1 lookup 11 :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "100:.*not from 192.168.1.1 to 192.168.0.1.*lookup 11"' (Expected 0, got 0) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [06:45:57][root]# echo 'ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0-255, got 2) :: [ 06:45:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [06:45:57][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 06:45:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [06:45:57][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:45:59 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:45:59][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.106 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.112 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.045 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.062 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.082 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4107ms rtt min/avg/max/mdev = 0.045/0.081/0.112/0.025 ms :: [ 06:46:03 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:46:05 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:46:05][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 06:46:05 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:46:11 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 06:45:59.805906 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 50615, seq 1, length 64 06:46:00.840889 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 50615, seq 2, length 64 06:46:01.864855 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 50615, seq 3, length 64 06:46:02.888857 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 50615, seq 4, length 64 06:46:03.912865 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 50615, seq 5, length 64 :: [ 06:46:11 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 06:46:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [06:46:11][root]# echo 'ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash :: [ 06:46:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0, got 0) :: [ 06:46:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [06:46:11][root]# echo 'ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:46:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0-255, got 2) :: [ 06:46:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [06:46:11][root]# echo 'ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:46:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0-255, got 2) :: [ 06:46:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [06:46:11][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 06:46:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [06:46:11][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:46:13 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [06:46:13][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.074 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.081 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.044 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.076 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.042 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4074ms rtt min/avg/max/mdev = 0.042/0.063/0.081/0.016 ms :: [ 06:46:17 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 06:46:19 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:46:19][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 06:46:19 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:46:24 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 06:46:24 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 06:46:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 | grep 4001::2' 2001::1 from :: via 4001::2 dev eth0r0 src 4001::1 metric 1024 pref medium :: [ 06:46:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 | grep 4001::2' (Expected 0, got 0) :: [ 06:46:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add from 2000::1 table 11' [06:46:24][root]# echo 'ip -6 rule add from 2000::1 table 11' | ip netns exec route0 bash :: [ 06:46:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add from 2000::1 table 11' (Expected 0, got 0) :: [ 06:46:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add from 2000::1 table 11' [06:46:24][root]# echo 'ip -6 rule add from 2000::1 table 11' | ip netns exec route0 bash :: [ 06:46:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add from 2000::1 table 11' (Expected 0-255, got 0) :: [ 06:46:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' 32764: from 2000::1 lookup 11 32765: from 2000::1 lookup 11 :: [ 06:46:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' (Expected 0, got 0) :: [ 06:46:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [06:46:24][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 06:46:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [06:46:24][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:46:26 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:46:26][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.092 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.126 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.089 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.047 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.058 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4110ms rtt min/avg/max/mdev = 0.047/0.082/0.126/0.027 ms :: [ 06:46:30 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:46:33 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:46:33][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 06:46:33 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:46:38 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 06:46:26.874618 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 26712, seq 1, length 64 06:46:27.912904 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 26712, seq 2, length 64 06:46:28.936866 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 26712, seq 3, length 64 06:46:29.960853 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 26712, seq 4, length 64 06:46:30.984857 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 26712, seq 5, length 64 :: [ 06:46:38 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 06:46:38 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [06:46:38][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash :: [ 06:46:38 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0, got 0) :: [ 06:46:38 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [06:46:38][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash :: [ 06:46:38 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0-255, got 0) :: [ 06:46:38 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' :: [ 06:46:38 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' (Expected 1, got 1) :: [ 06:46:38 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [06:46:38][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:46:38 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0-255, got 2) :: [ 06:46:38 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [06:46:38][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 06:46:38 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [06:46:38][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:46:40 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:46:40][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.062 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.031 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.032 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.033 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.098 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4092ms rtt min/avg/max/mdev = 0.031/0.051/0.098/0.026 ms :: [ 06:46:44 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:46:46 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:46:46][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 06:46:46 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:46:51 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 06:46:51 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :: [ 06:46:51 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' [06:46:51][root]# echo 'ip -6 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 06:46:51 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 06:46:51 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' [06:46:51][root]# echo 'ip -6 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 06:46:51 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 06:46:51 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [06:46:51][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 06:46:51 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [06:46:51][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:46:53 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:46:53][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.054 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.098 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.088 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.053 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.056 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4085ms rtt min/avg/max/mdev = 0.053/0.069/0.098/0.019 ms :: [ 06:46:58 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:47:00 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:47:00][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 06:47:00 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:47:05 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 06:46:53.908353 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 59970, seq 1, length 64 06:46:54.920882 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 59970, seq 2, length 64 06:46:55.944871 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 59970, seq 3, length 64 06:46:56.968856 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 59970, seq 4, length 64 06:46:57.992872 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 59970, seq 5, length 64 :: [ 06:47:05 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 06:47:05 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [06:47:05][root]# echo 'ip -6 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 06:47:05 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 06:47:05 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [06:47:05][root]# echo 'ip -6 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:47:05 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 06:47:05 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [06:47:05][root]# echo 'ip -6 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:47:05 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 06:47:05 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [06:47:05][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 06:47:05 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [06:47:05][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:47:07 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:47:07][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.098 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.053 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.105 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.070 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.120 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4131ms rtt min/avg/max/mdev = 0.053/0.089/0.120/0.024 ms :: [ 06:47:11 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:47:13 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:47:13][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 06:47:13 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:47:18 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 06:47:18 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :: [ 06:47:18 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' [06:47:18][root]# echo 'ip -6 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 06:47:18 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 06:47:18 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' [06:47:18][root]# echo 'ip -6 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 06:47:18 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 06:47:18 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [06:47:18][root]# echo 'ip -6 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 06:47:18 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 06:47:18 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [06:47:18][root]# echo 'ip -6 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 06:47:18 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 06:47:19 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [06:47:19][root]# echo 'ip -6 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:47:19 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 2) :: [ 06:47:19 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' [06:47:19][root]# echo 'ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash :: [ 06:47:19 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0, got 0) :: [ 06:47:19 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "100:.*not from 2001::1 to 2000::1.*lookup 11"' 100: not from 2001::1 to 2000::1 lookup 11 :: [ 06:47:19 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "100:.*not from 2001::1 to 2000::1.*lookup 11"' (Expected 0, got 0) :: [ 06:47:19 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' [06:47:19][root]# echo 'ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 06:47:19 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 06:47:19 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [06:47:19][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 06:47:19 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [06:47:19][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:47:21 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:47:21][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.059 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.097 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.048 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.083 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.081 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4079ms rtt min/avg/max/mdev = 0.048/0.073/0.097/0.017 ms :: [ 06:47:25 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:47:27 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:47:27][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 06:47:27 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:47:32 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 06:47:21.305674 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 432, seq 1, length 64 06:47:22.312885 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 432, seq 2, length 64 06:47:23.336854 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 432, seq 3, length 64 06:47:24.360863 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 432, seq 4, length 64 06:47:25.384859 12:c4:6b:19:c3:12 > ee:f3:77:b2:46:74, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 432, seq 5, length 64 :: [ 06:47:32 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 06:47:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [06:47:32][root]# echo 'ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash :: [ 06:47:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0, got 0) :: [ 06:47:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [06:47:32][root]# echo 'ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:47:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 06:47:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [06:47:32][root]# echo 'ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 06:47:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 06:47:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [06:47:32][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 06:47:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [06:47:32][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 06:47:34 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [06:47:34][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.057 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.087 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.052 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.051 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.050 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4119ms rtt min/avg/max/mdev = 0.050/0.059/0.087/0.014 ms :: [ 06:47:38 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 06:47:40 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [06:47:40][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 06:47:41 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 06:47:46 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 06:47:46 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 201s :: Assertions: 202 good, 0 bad :: RESULT: PASS (Rule Test netns default forward) ** Rule-Test-netns-default-forward PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cleanup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 06:47:46 ] :: [ BEGIN ] :: Running 'default_forward_cleanup' :: [ 06:47:46 ] :: [ PASS ] :: Command 'default_forward_cleanup' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 1 good, 0 bad :: RESULT: PASS (Cleanup) ** Cleanup PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: networking/route/route_func :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 06:47:47 ] :: [ LOG ] :: Phases fingerprint: 3TFH3dbq :: [ 06:47:47 ] :: [ LOG ] :: Asserts fingerprint: KsBVtXcw Uploading journal.xml .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 261s :: Phases: 4 good, 0 bad :: OVERALL RESULT: PASS (networking/route/route_func)