use_pty:FALSE /usr/share/restraint/plugins/run_task_plugins bash ./runtest.sh /etc/pki/ca-trust/source/anchors /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func --2023-02-05 02:32:02-- https://password.corp.redhat.com/legacy.crt Resolving password.corp.redhat.com (password.corp.redhat.com)... 10.2.111.154 Connecting to password.corp.redhat.com (password.corp.redhat.com)|10.2.111.154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1338 (1.3K) Saving to: ‘legacy.crt.1’ 0K . 100% 35.9M=0s 2023-02-05 02:32:03 (35.9 MB/s) - ‘legacy.crt.1’ saved [1338/1338] --2023-02-05 02:32:03-- https://password.corp.redhat.com/RH-IT-Root-CA.crt Resolving password.corp.redhat.com (password.corp.redhat.com)... 10.2.111.154 Connecting to password.corp.redhat.com (password.corp.redhat.com)|10.2.111.154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1517 (1.5K) Saving to: ‘RH-IT-Root-CA.crt.1’ 0K . 100% 11.5M=0s 2023-02-05 02:32:03 (11.5 MB/s) - ‘RH-IT-Root-CA.crt.1’ saved [1517/1517] /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Setup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 02:32:05 ] :: [ BEGIN ] :: Running 'nl_fib_lookup_install' Last metadata expiration check: 1:14:58 ago on Sun 05 Feb 2023 01:17:09 AM EST. Package libnl3-3.7.0-3.fc38.x86_64 is already installed. Package libnl3-devel-3.7.0-3.fc38.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 :: [ 02:32:09 ] :: [ PASS ] :: Command 'nl_fib_lookup_install' (Expected 0, got 0) :: [ 02:32:09 ] :: [ LOG ] :: test_items:route_prefix_test route_selector_test route_options_test route_addr_test rule_test :: [ 02:32:09 ] :: [ LOG ] :: test_topo:default :: [ 02:32:09 ] :: [ LOG ] :: test_type:netns :: [ 02:32:09 ] :: [ LOG ] :: route_mode:forward :: [ 02:32:09 ] :: [ BEGIN ] :: Running 'default_forward_setup' net.ipv4.conf.all.forwarding = 1 net.ipv6.conf.all.forwarding = 1 net.ipv4.conf.all.forwarding = 1 net.ipv6.conf.all.forwarding = 1 net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.eth0r0.rp_filter = 0 net.ipv4.conf.eth1r0.rp_filter = 0 net.ipv4.conf.veth0_r.rp_filter = 0 net.ipv4.ip_forward_use_pmtu = 1 net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.eth0r0_r.rp_filter = 0 net.ipv4.conf.eth1r0_r.rp_filter = 0 net.ipv4.conf.veth2_r.rp_filter = 0 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.167 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.077 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.043 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.059 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.097 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4113ms rtt min/avg/max/mdev = 0.043/0.088/0.167/0.043 ms PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.161 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.052 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.082 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.105 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.068 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4089ms rtt min/avg/max/mdev = 0.052/0.093/0.161/0.037 ms :: [ 02:32:18 ] :: [ PASS ] :: Command 'default_forward_setup' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 13s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Setup) ** Setup PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Prefix netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 02:32:18 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Selector netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 02:32:19 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Options netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 02:32:19 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route Addr netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [02:32:19][root]# echo 'nohup tcpdump -U -i eth0r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 02:32:19 ] :: [ 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 :: [ 02:32:21 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:32:21 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:32:21][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.062 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.039 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.083 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.064 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.066 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4074ms rtt min/avg/max/mdev = 0.039/0.062/0.083/0.014 ms :: [ 02:32:25 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:32:25 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 02:32:28 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 02:32:28 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:32:28][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 14 packets captured 14 packets received by filter 0 packets dropped by kernel :: [ 02:32:28 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 02:32:28 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 02:32:30 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:32:30 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' 02:32:21.385097 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 45976, seq 1, length 64 02:32:22.386926 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 45976, seq 2, length 64 02:32:23.410942 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 45976, seq 3, length 64 02:32:24.434911 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 45976, seq 4, length 64 02:32:25.458911 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 45976, seq 5, length 64 :: [ 02:32:30 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 02:32:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' [02:32:30][root]# echo 'ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 02:32:30 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 02:32:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' [02:32:31][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 :: [ 02:32:31 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0-255, got 2) :: [ 02:32:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route list' [02:32:31][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 :: [ 02:32:31 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route list' (Expected 0, got 0) :: [ 02:32:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1' [02:32:31][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 :: [ 02:32:31 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1' (Expected 0, got 0) [02:32:31][root]# echo 'nohup tcpdump -U -i eth1r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 02:32:31 ] :: [ 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 :: [ 02:32:33 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:32:33 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:32:33][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.120 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.065 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.083 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.063 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.100 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4117ms rtt min/avg/max/mdev = 0.063/0.086/0.120/0.021 ms :: [ 02:32:37 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:32:37 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 02:32:40 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 02:32:40 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:32:40][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 02:32:40 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 02:32:40 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 02:32:42 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:32:42 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' 02:32:33.374421 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 47276, seq 1, length 64 02:32:34.418928 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 47276, seq 2, length 64 02:32:35.442925 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 47276, seq 3, length 64 02:32:36.466910 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 47276, seq 4, length 64 02:32:37.490927 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 47276, seq 5, length 64 :: [ 02:32:42 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 02:32:42 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' [02:32:42][root]# echo 'ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 02:32:42 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 02:32:43 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' [02:32:43][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 :: [ 02:32:43 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0-255, got 2) [02:32:43][root]# echo 'nohup tcpdump -U -i eth0r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 02:32:43 ] :: [ 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 :: [ 02:32:45 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:32:45 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:32:45][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.099 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.088 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.092 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.117 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.075 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4094ms rtt min/avg/max/mdev = 0.075/0.094/0.117/0.013 ms :: [ 02:32:49 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:32:49 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 02:32:52 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 02:32:52 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:32:52][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 10 packets captured 10 packets received by filter 0 packets dropped by kernel :: [ 02:32:52 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 02:32:52 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 02:32:54 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:32:54 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' 02:32:45.236707 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11029, seq 1, length 64 02:32:46.258926 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11029, seq 2, length 64 02:32:47.282946 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11029, seq 3, length 64 02:32:48.306959 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11029, seq 4, length 64 02:32:49.330929 8a:19:7a:14:8d:41 > 12:20:0b:4e:cd:96, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 11029, seq 5, length 64 :: [ 02:32:54 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' (Expected 0, got 0) :: [ 02:32:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' [02:32:54][root]# echo 'ip -6 route add 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 02:32:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 02:32:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' [02:32:54][root]# echo 'ip -6 route add 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 02:32:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' (Expected 0-255, got 2) :: [ 02:32:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route list' [02:32:54][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 :: [ 02:32:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route list' (Expected 0, got 0) :: [ 02:32:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1' [02:32:55][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 :: [ 02:32:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1' (Expected 0, got 0) [02:32:55][root]# echo 'nohup tcpdump -U -i eth1r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 02:32:55 ] :: [ 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 :: [ 02:32:57 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:32:57 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:32:57][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.117 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.117 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.110 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.073 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.073 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4122ms rtt min/avg/max/mdev = 0.073/0.098/0.117/0.020 ms :: [ 02:33:01 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:33:01 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 02:33:04 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 02:33:04 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:33:04][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 9 packets captured 9 packets received by filter 0 packets dropped by kernel :: [ 02:33:04 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 02:33:04 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 02:33:06 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:33:06 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' 02:32:57.240989 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 1911, seq 1, length 64 02:32:58.290949 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 1911, seq 2, length 64 02:32:59.314937 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 1911, seq 3, length 64 02:33:00.338907 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 1911, seq 4, length 64 02:33:01.362911 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 1911, seq 5, length 64 :: [ 02:33:06 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' (Expected 0, got 0) :: [ 02:33:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' [02:33:06][root]# echo 'ip -6 route del 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 02:33:06 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 02:33:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' [02:33:06][root]# echo 'ip -6 route del 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash RTNETLINK answers: No such process :: [ 02:33:06 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' (Expected 0-255, got 2) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 48s :: 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 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 02:33:07 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "0:.*from all.*lookup local"' 0: from all lookup local :: [ 02:33:07 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "0:.*from all.*lookup local"' (Expected 0, got 0) :: [ 02:33:07 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32766:.*from all.*lookup main"' 32766: from all lookup main :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32766:.*from all.*lookup main"' (Expected 0, got 0) :: [ 02:33:08 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 100' [02:33:08][root]# echo 'ip -4 rule add to 192.168.1.1 goto 100' | ip netns exec route0 bash Error: Backward goto not supported. :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 100' (Expected 2,254, got 2) :: [ 02:33:08 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table -5' [02:33:08][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 :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 02:33:08 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' [02:33:08][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 :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 02:33:08 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' [02:33:08][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 :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 02:33:08 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table local' [02:33:08][root]# echo 'ip -4 rule add to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table local' (Expected 0, got 0) :: [ 02:33:08 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table local' [02:33:08][root]# echo 'ip -4 rule add to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table local' (Expected 0-255, got 0) :: [ 02:33:08 ] :: [ 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 :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup local"' (Expected 0, got 0) :: [ 02:33:08 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [02:33:08][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 02:33:08 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [02:33:08][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:08 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:09 ] :: [ 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 :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 02:33:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table local' [02:33:09][root]# echo 'ip -4 rule del to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table local' (Expected 0, got 0) :: [ 02:33:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table local' [02:33:09][root]# echo 'ip -4 rule del to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table local' (Expected 0-255, got 0) :: [ 02:33:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [02:33:09][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 02:33:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [02:33:09][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table main' [02:33:09][root]# echo 'ip -4 rule add to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table main' (Expected 0, got 0) :: [ 02:33:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table main' [02:33:09][root]# echo 'ip -4 rule add to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table main' (Expected 0-255, got 0) :: [ 02:33:09 ] :: [ 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 :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup main"' (Expected 0, got 0) :: [ 02:33:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [02:33:09][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 02:33:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [02:33:09][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:10 ] :: [ 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 :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 02:33:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table main' [02:33:10][root]# echo 'ip -4 rule del to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table main' (Expected 0, got 0) :: [ 02:33:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table main' [02:33:10][root]# echo 'ip -4 rule del to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table main' (Expected 0-255, got 0) :: [ 02:33:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [02:33:10][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 02:33:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [02:33:10][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' [02:33:10][root]# echo 'ip -4 rule add to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' (Expected 0, got 0) :: [ 02:33:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' [02:33:10][root]# echo 'ip -4 rule add to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' (Expected 0-255, got 0) :: [ 02:33:10 ] :: [ 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 :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup 200"' (Expected 0, got 0) :: [ 02:33:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [02:33:10][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:10 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 02:33:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [02:33:11][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:11 ] :: [ 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 :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 02:33:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' [02:33:11][root]# echo 'ip -4 rule del to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' (Expected 0, got 0) :: [ 02:33:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' [02:33:11][root]# echo 'ip -4 rule del to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' (Expected 0-255, got 0) :: [ 02:33:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [02:33:11][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 02:33:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [02:33:11][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' [02:33:11][root]# echo 'ip -4 rule add to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' (Expected 0, got 0) :: [ 02:33:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' [02:33:11][root]# echo 'ip -4 rule add to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' (Expected 0-255, got 0) :: [ 02:33:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' [02:33:11][root]# echo 'ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 02:33:11 ] :: [ 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 :: [ 02:33:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 | grep eth1r0' (Expected 0, got 0) :: [ 02:33:12 ] :: [ 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 :: [ 02:33:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' (Expected 0, got 0) :: [ 02:33:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' :: [ 02:33:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' (Expected 1, got 1) [02:33:12][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 :: [ 02:33:17 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 1' [02:33:17][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.119 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.119/0.119/0.119/0.000 ms :: [ 02:33:17 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 1' (Expected 0, got 0) :: [ 02:33:17 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 02:33:19 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:33:19 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:33:19][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 1 packet captured 1 packet received by filter 0 packets dropped by kernel :: [ 02:33:19 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:33:24 ] :: [ 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 02:33:17.206261 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 58077, seq 1, length 64 :: [ 02:33:24 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 02:33:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' [02:33:24][root]# echo 'ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 02:33:24 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 02:33:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' [02:33:24][root]# echo 'ip -4 rule del to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 02:33:24 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' (Expected 0, got 0) :: [ 02:33:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' [02:33:24][root]# echo 'ip -4 rule del to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 02:33:24 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' (Expected 0-255, got 0) :: [ 02:33:24 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:33:24][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.113 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.066 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.081 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.098 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.062 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4085ms rtt min/avg/max/mdev = 0.062/0.084/0.113/0.019 ms :: [ 02:33:28 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "0:.*from all.*lookup local"' 0: from all lookup local :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "0:.*from all.*lookup local"' (Expected 0, got 0) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32766:.*from all.*lookup main"' 32766: from all lookup main :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32766:.*from all.*lookup main"' (Expected 0, got 0) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 100' [02:33:29][root]# echo 'ip -6 rule add to 2001::1 goto 100' | ip netns exec route0 bash Error: Backward goto not supported. :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 100' (Expected 2,254, got 2) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table -5' [02:33:29][root]# echo 'ip -6 rule add to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table -5' (Expected 0-255, got 255) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table -5' [02:33:29][root]# echo 'ip -6 rule del to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table -5' (Expected 0-255, got 255) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table -5' [02:33:29][root]# echo 'ip -6 rule del to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table -5' (Expected 0-255, got 255) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table local' [02:33:29][root]# echo 'ip -6 rule add to 2001::1 table local' | ip netns exec route0 bash :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table local' (Expected 0, got 0) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table local' [02:33:29][root]# echo 'ip -6 rule add to 2001::1 table local' | ip netns exec route0 bash :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table local' (Expected 0-255, got 0) :: [ 02:33:29 ] :: [ 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 :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup local"' (Expected 0, got 0) :: [ 02:33:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [02:33:29][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 02:33:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [02:33:30][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:30 ] :: [ 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 :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 02:33:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table local' [02:33:30][root]# echo 'ip -6 rule del to 2001::1 table local' | ip netns exec route0 bash :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table local' (Expected 0, got 0) :: [ 02:33:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table local' [02:33:30][root]# echo 'ip -6 rule del to 2001::1 table local' | ip netns exec route0 bash :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table local' (Expected 0-255, got 0) :: [ 02:33:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [02:33:30][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 02:33:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [02:33:30][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table main' [02:33:30][root]# echo 'ip -6 rule add to 2001::1 table main' | ip netns exec route0 bash :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table main' (Expected 0, got 0) :: [ 02:33:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table main' [02:33:30][root]# echo 'ip -6 rule add to 2001::1 table main' | ip netns exec route0 bash :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table main' (Expected 0-255, got 0) :: [ 02:33:30 ] :: [ 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 :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup main"' (Expected 0, got 0) :: [ 02:33:30 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [02:33:30][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:30 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 02:33:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [02:33:31][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:31 ] :: [ 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 :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 02:33:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table main' [02:33:31][root]# echo 'ip -6 rule del to 2001::1 table main' | ip netns exec route0 bash :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table main' (Expected 0, got 0) :: [ 02:33:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table main' [02:33:31][root]# echo 'ip -6 rule del to 2001::1 table main' | ip netns exec route0 bash :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table main' (Expected 0-255, got 0) :: [ 02:33:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [02:33:31][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 02:33:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [02:33:31][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 200' [02:33:31][root]# echo 'ip -6 rule add to 2001::1 table 200' | ip netns exec route0 bash :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 200' (Expected 0, got 0) :: [ 02:33:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 200' [02:33:31][root]# echo 'ip -6 rule add to 2001::1 table 200' | ip netns exec route0 bash :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 200' (Expected 0-255, got 0) :: [ 02:33:31 ] :: [ 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 :: [ 02:33:31 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup 200"' (Expected 0, got 0) :: [ 02:33:31 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [02:33:31][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 02:33:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [02:33:32][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:32 ] :: [ 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 :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 02:33:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 200' [02:33:32][root]# echo 'ip -6 rule del to 2001::1 table 200' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 200' (Expected 0, got 0) :: [ 02:33:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 200' [02:33:32][root]# echo 'ip -6 rule del to 2001::1 table 200' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 200' (Expected 0-255, got 0) :: [ 02:33:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [02:33:32][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 02:33:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [02:33:32][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 02:33:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 300' [02:33:32][root]# echo 'ip -6 rule add to 2001::1 table 300' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 300' (Expected 0, got 0) :: [ 02:33:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 300' [02:33:32][root]# echo 'ip -6 rule add to 2001::1 table 300' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 300' (Expected 0-255, got 0) :: [ 02:33:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add table 300 default dev eth1r0 via 4002::2' [02:33:32][root]# echo 'ip -6 route add table 300 default dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 02:33:32 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add table 300 default dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 02:33:33 ] :: [ 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 :: [ 02:33:33 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 | grep eth1r0' (Expected 0, got 0) :: [ 02:33:33 ] :: [ 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 :: [ 02:33:33 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' (Expected 0, got 0) :: [ 02:33:33 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' :: [ 02:33:33 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' (Expected 1, got 1) [02:33:33][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 :: [ 02:33:38 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 1' [02:33:38][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.115 ms --- 2001::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.115/0.115/0.115/0.000 ms :: [ 02:33:38 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 1' (Expected 0, got 0) :: [ 02:33:38 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 02:33:40 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 02:33:40 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:33:40][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 1 packet captured 1 packet received by filter 0 packets dropped by kernel :: [ 02:33:40 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:33:45 ] :: [ 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 02:33:38.296456 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 5380, seq 1, length 64 :: [ 02:33:45 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 02:33:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del table 300 default dev eth1r0 via 4002::2' [02:33:45][root]# echo 'ip -6 route del table 300 default dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 02:33:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del table 300 default dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 02:33:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 300' [02:33:45][root]# echo 'ip -6 rule del to 2001::1 table 300' | ip netns exec route0 bash :: [ 02:33:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 300' (Expected 0, got 0) :: [ 02:33:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 300' [02:33:45][root]# echo 'ip -6 rule del to 2001::1 table 300' | ip netns exec route0 bash :: [ 02:33:45 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 300' (Expected 0-255, got 0) :: [ 02:33:45 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:33:45][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.095 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.082 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.100 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.111 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.070 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4128ms rtt min/avg/max/mdev = 0.070/0.091/0.111/0.014 ms :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' [02:33:50][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 :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' (Expected 2,254, got 2) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 172.145.11.1 table unspec' [02:33:50][root]# echo 'ip -4 rule add to 172.145.11.1 table unspec' | ip netns exec route0 bash :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 172.145.11.1 table unspec' (Expected 0, got 0) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep 172.145.11.1' 32765: from all to 172.145.11.1 lookup 1 :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep 172.145.11.1' (Expected 0, got 0) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' [02:33:50][root]# echo 'ip -4 rule del to 172.145.11.1 table unspec' | ip netns exec route0 bash :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' (Expected 0, got 0) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep 172.145.11.1' :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep 172.145.11.1' (Expected 1, got 1) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 4543:1111::1 table unspec' [02:33:50][root]# echo 'ip -6 rule del to 4543:1111::1 table unspec' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 4543:1111::1 table unspec' (Expected 2,254, got 2) :: [ 02:33:50 ] :: [ 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 :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 | grep 10.0.0.2' (Expected 0, got 0) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' [02:33:50][root]# echo 'ip -4 rule add from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' (Expected 0, got 0) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' [02:33:50][root]# echo 'ip -4 rule add from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' (Expected 0-255, got 0) :: [ 02:33:50 ] :: [ 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 :: [ 02:33:50 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' (Expected 0, got 0) :: [ 02:33:50 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [02:33:50][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 02:33:51 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [02:33: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 :: [ 02:33:53 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:33:53][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.088 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.042 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.057 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.070 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.111 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4084ms rtt min/avg/max/mdev = 0.042/0.073/0.111/0.024 ms :: [ 02:33:57 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:33:59 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:33:59][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 9 packets captured 9 packets received by filter 0 packets dropped by kernel :: [ 02:33:59 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:34:04 ] :: [ 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 02:33:53.087219 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 1260, seq 1, length 64 02:33:54.098918 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 1260, seq 2, length 64 02:33:55.122903 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 1260, seq 3, length 64 02:33:56.146911 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 1260, seq 4, length 64 02:33:57.170958 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 1260, seq 5, length 64 :: [ 02:34:04 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 02:34:04 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [02:34:04][root]# echo 'ip -4 rule del from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 02:34:04 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0, got 0) :: [ 02:34:04 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [02:34:04][root]# echo 'ip -4 rule del from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 02:34:04 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0-255, got 0) :: [ 02:34:04 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' :: [ 02:34:04 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' (Expected 1, got 1) :: [ 02:34:04 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [02:34:04][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 :: [ 02:34:04 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0-255, got 2) :: [ 02:34:04 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [02:34:04][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 02:34:04 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [02:34:04][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 :: [ 02:34:06 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:34:06][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.081 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.056 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.097 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.063 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.066 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4080ms rtt min/avg/max/mdev = 0.056/0.072/0.097/0.014 ms :: [ 02:34:11 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:34:13 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:34:13][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 02:34:13 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:34:18 ] :: [ 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 :: [ 02:34:18 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 02:34:18 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' [02:34:18][root]# echo 'ip -4 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 02:34:18 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 02:34:18 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' [02:34:18][root]# echo 'ip -4 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 02:34:18 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 02:34:18 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [02:34:18][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 02:34:18 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [02:34:18][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 :: [ 02:34:20 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:34:20][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.086 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.079 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.055 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.108 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.107 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4121ms rtt min/avg/max/mdev = 0.055/0.087/0.108/0.019 ms :: [ 02:34:24 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:34:26 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:34:26][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 02:34:26 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:34:31 ] :: [ 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 02:34:20.698182 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 55595, seq 1, length 64 02:34:21.746924 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 55595, seq 2, length 64 02:34:22.770940 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 55595, seq 3, length 64 02:34:23.794941 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 55595, seq 4, length 64 02:34:24.818932 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 55595, seq 5, length 64 :: [ 02:34:32 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 02:34:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [02:34:32][root]# echo 'ip -4 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 02:34:32 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 02:34:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [02:34:32][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 :: [ 02:34:32 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 02:34:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [02:34:32][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 :: [ 02:34:32 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 02:34:32 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [02:34:32][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 02:34:32 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [02:34: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 :: [ 02:34:34 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:34:34][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.084 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.051 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.062 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.106 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.062 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4112ms rtt min/avg/max/mdev = 0.051/0.073/0.106/0.019 ms :: [ 02:34:38 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:34:40 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:34:40][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 02:34:40 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:34:45 ] :: [ 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 :: [ 02:34:45 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 02:34:45 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' [02:34:45][root]# echo 'ip -4 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 02:34:45 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 02:34:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' [02:34:46][root]# echo 'ip -4 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 02:34:46 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 02:34:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [02:34:46][root]# echo 'ip -4 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 02:34:46 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 02:34:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [02:34:46][root]# echo 'ip -4 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 02:34:46 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 02:34:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [02:34:46][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 :: [ 02:34:46 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 2) :: [ 02:34:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [02:34:46][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 :: [ 02:34:46 ] :: [ 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) :: [ 02:34:46 ] :: [ 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 :: [ 02:34:46 ] :: [ 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) :: [ 02:34:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [02:34:46][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 :: [ 02:34:46 ] :: [ 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) :: [ 02:34:46 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [02:34:46][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 02:34:46 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [02:34:46][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 :: [ 02:34:48 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:34:48][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.105 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.056 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.055 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.117 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.079 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4108ms rtt min/avg/max/mdev = 0.055/0.082/0.117/0.025 ms :: [ 02:34:52 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:34:55 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:34:55][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 02:34:55 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:35:00 ] :: [ 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 02:34:48.870788 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28006, seq 1, length 64 02:34:49.906915 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28006, seq 2, length 64 02:34:50.930919 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28006, seq 3, length 64 02:34:51.954932 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28006, seq 4, length 64 02:34:52.978968 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 28006, seq 5, length 64 :: [ 02:35:00 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 02:35:00 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [02:35:00][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 :: [ 02:35:00 ] :: [ 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) :: [ 02:35:00 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [02:35:00][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 :: [ 02:35:00 ] :: [ 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) :: [ 02:35:00 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [02:35:00][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 :: [ 02:35:00 ] :: [ 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) :: [ 02:35:00 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [02:35:00][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 02:35:00 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [02:35:00][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 :: [ 02:35:02 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [02:35:02][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.141 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.069 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.080 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.100 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.062 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4121ms rtt min/avg/max/mdev = 0.062/0.090/0.141/0.028 ms :: [ 02:35:06 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 02:35:08 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:35:08][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 02:35:08 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:35:13 ] :: [ 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 :: [ 02:35:14 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 02:35:14 ] :: [ 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 :: [ 02:35:14 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 | grep 4001::2' (Expected 0, got 0) :: [ 02:35:14 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add from 2000::1 table 11' [02:35:14][root]# echo 'ip -6 rule add from 2000::1 table 11' | ip netns exec route0 bash :: [ 02:35:14 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add from 2000::1 table 11' (Expected 0, got 0) :: [ 02:35:14 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add from 2000::1 table 11' [02:35:14][root]# echo 'ip -6 rule add from 2000::1 table 11' | ip netns exec route0 bash :: [ 02:35:14 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add from 2000::1 table 11' (Expected 0-255, got 0) :: [ 02:35:14 ] :: [ 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 :: [ 02:35:14 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' (Expected 0, got 0) :: [ 02:35:14 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [02:35:14][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 02:35:14 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [02:35:14][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 :: [ 02:35:16 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:35:16][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.100 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.060 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.093 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.076 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.076 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4095ms rtt min/avg/max/mdev = 0.060/0.081/0.100/0.014 ms :: [ 02:35:20 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:35:22 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:35:22][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 02:35:22 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:35:27 ] :: [ 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 02:35:16.596297 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 55394, seq 1, length 64 02:35:17.618920 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 55394, seq 2, length 64 02:35:18.642947 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 55394, seq 3, length 64 02:35:19.666916 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 55394, seq 4, length 64 02:35:20.690930 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 55394, seq 5, length 64 :: [ 02:35:27 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 02:35:27 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [02:35:27][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash :: [ 02:35:27 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0, got 0) :: [ 02:35:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [02:35:28][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash :: [ 02:35:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0-255, got 0) :: [ 02:35:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' :: [ 02:35:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' (Expected 1, got 1) :: [ 02:35:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [02:35:28][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 02:35:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0-255, got 2) :: [ 02:35:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [02:35:28][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 02:35:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [02:35:28][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 :: [ 02:35:30 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:35:30][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.085 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.111 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.110 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 4094ms rtt min/avg/max/mdev = 0.069/0.094/0.111/0.015 ms :: [ 02:35:34 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:35:36 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:35:36][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 02:35:36 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:35:41 ] :: [ 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 :: [ 02:35:41 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :: [ 02:35:41 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' [02:35:41][root]# echo 'ip -6 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 02:35:41 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 02:35:41 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' [02:35:41][root]# echo 'ip -6 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 02:35:42 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 02:35:42 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [02:35:42][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 02:35:42 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [02:35:42][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 :: [ 02:35:44 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:35:44][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.096 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.080 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.076 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.076 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4096ms rtt min/avg/max/mdev = 0.076/0.087/0.107/0.012 ms :: [ 02:35:48 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:35:50 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:35:50][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 02:35:50 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:35:55 ] :: [ 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 02:35:44.178732 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 62522, seq 1, length 64 02:35:45.202907 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 62522, seq 2, length 64 02:35:46.226978 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 62522, seq 3, length 64 02:35:47.250928 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 62522, seq 4, length 64 02:35:48.274924 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 62522, seq 5, length 64 :: [ 02:35:55 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 02:35:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [02:35:55][root]# echo 'ip -6 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 02:35:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 02:35:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [02:35:55][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 :: [ 02:35:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 02:35:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [02:35:55][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 :: [ 02:35:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 02:35:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [02:35:55][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 02:35:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [02:35:55][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 :: [ 02:35:57 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:35:57][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.091 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.042 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.056 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.081 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.072 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4124ms rtt min/avg/max/mdev = 0.042/0.068/0.091/0.017 ms :: [ 02:36:02 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:36:04 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:36:04][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 02:36:04 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:36:09 ] :: [ 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 :: [ 02:36:09 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :: [ 02:36:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' [02:36:09][root]# echo 'ip -6 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 02:36:09 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 02:36:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' [02:36:09][root]# echo 'ip -6 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 02:36:09 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 02:36:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [02:36:09][root]# echo 'ip -6 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 02:36:09 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 02:36:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [02:36:09][root]# echo 'ip -6 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 02:36:09 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 02:36:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [02:36:09][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 :: [ 02:36:09 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 2) :: [ 02:36:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' [02:36:09][root]# echo 'ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash :: [ 02:36:09 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0, got 0) :: [ 02:36:10 ] :: [ 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 :: [ 02:36:10 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "100:.*not from 2001::1 to 2000::1.*lookup 11"' (Expected 0, got 0) :: [ 02:36:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' [02:36:10][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 :: [ 02:36:10 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 02:36:10 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [02:36:10][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 02:36:10 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [02:36:10][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 :: [ 02:36:12 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:36:12][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.129 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.090 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.062 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.118 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.076 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4133ms rtt min/avg/max/mdev = 0.062/0.095/0.129/0.025 ms :: [ 02:36:16 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:36:18 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:36:18][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 02:36:18 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:36:23 ] :: [ 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 02:36:12.365782 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 18800, seq 1, length 64 02:36:13.426925 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 18800, seq 2, length 64 02:36:14.450917 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 18800, seq 3, length 64 02:36:15.474936 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 18800, seq 4, length 64 02:36:16.498913 62:f4:ea:8f:c3:63 > 82:1d:a4:91:e0:5a, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 18800, seq 5, length 64 :: [ 02:36:23 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 02:36:23 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [02:36:23][root]# echo 'ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash :: [ 02:36:23 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0, got 0) :: [ 02:36:23 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [02:36:23][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 :: [ 02:36:23 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 02:36:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [02:36:24][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 :: [ 02:36:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 02:36:24 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [02:36:24][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 02:36:24 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [02:36: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 :: [ 02:36:26 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [02:36: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.083 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.082 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.101 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.107 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4097ms rtt min/avg/max/mdev = 0.070/0.088/0.107/0.013 ms :: [ 02:36:30 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 02:36:32 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [02:36:32][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 02:36:32 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 02:36:37 ] :: [ 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 :: [ 02:36:37 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 210s :: 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 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 02:36:38 ] :: [ BEGIN ] :: Running 'default_forward_cleanup' :: [ 02:36:38 ] :: [ 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 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 02:36:39 ] :: [ LOG ] :: Phases fingerprint: 3TFH3dbq :: [ 02:36:39 ] :: [ LOG ] :: Asserts fingerprint: KsBVtXcw Uploading journal.xml .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 274s :: Phases: 4 good, 0 bad :: OVERALL RESULT: PASS (networking/route/route_func)