< TEST_PROGS=test-tcp.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/srv/vmksft/testing/wt-5/tools/testing/selftests' make[1]: Entering directory '/srv/vmksft/testing/wt-5/tools/testing/selftests/net/ovpn' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/srv/vmksft/testing/wt-5/tools/testing/selftests/net/ovpn' make[1]: Entering directory '/srv/vmksft/testing/wt-5/tools/testing/selftests/net/ovpn' TAP version 13 1..1 # timeout set to 45 # selftests: net/ovpn: test-tcp.sh # Deleting interface tun1 ifindex 4 # Deleting interface tun2 ifindex 4 # Deleting interface tun3 ifindex 4 # Creating interface tun0 with mode 1 # Creating interface tun1 with mode 0 # Creating interface tun2 with mode 0 # Creating interface tun3 with mode 0 # Creating interface tun4 with mode 0 # Creating interface tun5 with mode 0 # Creating interface tun6 with mode 0 # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # Sent 1002 bytes over TCP socket # PING 5.5.5.2 (5.5.5.2) 56(84) bytes of data. # # --- 5.5.5.2 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 4ms # rtt min/avg/max/mdev = 0.005/0.007/0.105/0.005 ms, ipg/ewma 0.007/0.005 ms # PING 5.5.5.2 (5.5.5.2) 3000(3028) bytes of data. # # --- 5.5.5.2 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 29ms # rtt min/avg/max/mdev = 0.054/0.055/0.124/0.003 ms, ipg/ewma 0.058/0.056 ms # PING 5.5.5.3 (5.5.5.3) 56(84) bytes of data. # # --- 5.5.5.3 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 6ms # rtt min/avg/max/mdev = 0.005/0.010/2.539/0.113 ms, ipg/ewma 0.011/0.006 ms # PING 5.5.5.3 (5.5.5.3) 3000(3028) bytes of data. # # --- 5.5.5.3 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 30ms # rtt min/avg/max/mdev = 0.054/0.058/0.100/0.005 ms, ipg/ewma 0.060/0.069 ms # PING 5.5.5.4 (5.5.5.4) 56(84) bytes of data. # # --- 5.5.5.4 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 5ms # rtt min/avg/max/mdev = 0.007/0.009/0.080/0.004 ms, ipg/ewma 0.010/0.008 ms # PING 5.5.5.4 (5.5.5.4) 3000(3028) bytes of data. # # --- 5.5.5.4 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 29ms # rtt min/avg/max/mdev = 0.055/0.056/0.188/0.006 ms, ipg/ewma 0.058/0.055 ms # PING 5.5.5.5 (5.5.5.5) 56(84) bytes of data. # # --- 5.5.5.5 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 7ms # rtt min/avg/max/mdev = 0.006/0.012/2.696/0.120 ms, ipg/ewma 0.013/0.007 ms # PING 5.5.5.5 (5.5.5.5) 3000(3028) bytes of data. # # --- 5.5.5.5 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 30ms # rtt min/avg/max/mdev = 0.056/0.057/0.095/0.002 ms, ipg/ewma 0.060/0.058 ms # PING 5.5.5.6 (5.5.5.6) 56(84) bytes of data. # # --- 5.5.5.6 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 4ms # rtt min/avg/max/mdev = 0.006/0.007/0.065/0.003 ms, ipg/ewma 0.007/0.007 ms # PING 5.5.5.6 (5.5.5.6) 3000(3028) bytes of data. # # --- 5.5.5.6 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 30ms # rtt min/avg/max/mdev = 0.057/0.059/0.208/0.007 ms, ipg/ewma 0.061/0.058 ms # PING 5.5.5.7 (5.5.5.7) 56(84) bytes of data. # # --- 5.5.5.7 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 6ms # rtt min/avg/max/mdev = 0.005/0.011/2.556/0.113 ms, ipg/ewma 0.012/0.006 ms # PING 5.5.5.7 (5.5.5.7) 3000(3028) bytes of data. # # --- 5.5.5.7 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 30ms # rtt min/avg/max/mdev = 0.056/0.057/0.094/0.002 ms, ipg/ewma 0.059/0.057 ms # PING 11.11.11.11 (11.11.11.11) 56(84) bytes of data. # # --- 11.11.11.11 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 6ms # rtt min/avg/max/mdev = 0.006/0.011/2.907/0.129 ms, ipg/ewma 0.012/0.006 ms # ----------------------------------------------------------- # Server listening on 5201 (test #1) # ----------------------------------------------------------- # Connecting to host 5.5.5.1, port 5201 # Accepted connection from 5.5.5.2, port 51306 # [ 7] local 5.5.5.2 port 51320 connected to 5.5.5.1 port 5201 # [ 7] local 5.5.5.1 port 5201 connected to 5.5.5.2 port 51320 # [ ID] Interval Transfer Bitrate # [ 7] 0.00-1.00 sec 107 MBytes 896 Mbits/sec # [ ID] Interval Transfer Bitrate Retr Cwnd # [ 7] 0.00-1.00 sec 111 MBytes 928 Mbits/sec 1 182 KBytes # [ 7] 1.00-2.00 sec 81.5 MBytes 684 Mbits/sec # [ 7] 1.00-2.00 sec 78.4 MBytes 657 Mbits/sec 22 362 KBytes # [ 7] 2.00-3.00 sec 74.1 MBytes 622 Mbits/sec # [ 7] 3.00-3.04 sec 4.62 MBytes 979 Mbits/sec # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate # [ 7] 0.00-3.04 sec 267 MBytes 737 Mbits/sec receiver # [ 7] 2.00-3.00 sec 75.2 MBytes 631 Mbits/sec 20 472 KBytes # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate Retr # [ 7] 0.00-3.00 sec 267 MBytes 747 Mbits/sec 43 sender # [ 7] 0.00-3.04 sec 267 MBytes 737 Mbits/sec receiver # # iperf Done. # Adding secondary key and then swap: # Querying all peers: # List of peers connected to: tun0 # * Peer 4 # TX peer ID 13 # VPN IPv4: 5.5.5.5 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624072 # LINK TX bytes: 1624000 # LINK RX packets: 2001 # LINK TX packets: 2000 # * Peer 3 # TX peer ID 12 # VPN IPv4: 5.5.5.4 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # * Peer 5 # TX peer ID 14 # VPN IPv4: 5.5.5.6 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # * Peer 1 # TX peer ID 10 # VPN IPv4: 5.5.5.2 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 292594178 # VPN TX bytes: 1855789 # VPN RX packets: 209810 # VPN TX packets: 7061 # LINK RX bytes: 297629762 # LINK TX bytes: 2025253 # LINK RX packets: 209812 # LINK TX packets: 7061 # * Peer 6 # TX peer ID 15 # VPN IPv4: 5.5.5.7 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # * Peer 2 # TX peer ID 11 # VPN IPv4: 5.5.5.3 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # List of peers connected to: tun1 # * Peer 10 # TX peer ID 1 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1855789 # VPN TX bytes: 292625426 # VPN RX packets: 7061 # VPN TX packets: 209834 # LINK RX bytes: 2025253 # LINK TX bytes: 297661442 # LINK RX packets: 7061 # LINK TX packets: 209834 # Querying peer 1: # * Peer 1 # TX peer ID 10 # VPN IPv4: 5.5.5.2 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 292594178 # VPN TX bytes: 1855789 # VPN RX packets: 209810 # VPN TX packets: 7061 # LINK RX bytes: 297629762 # LINK TX bytes: 2025253 # LINK RX packets: 209812 # LINK TX packets: 7061 # Querying non-existent peer 20: # kernel error: ovpn: cannot find peer with id 20 # netlink reports error (-12): Object not found # failed to send netlink message: No such file or directory (-2) # Cannot execute command: No such file or directory (-2) # Deleting peer 1: # Querying keys: # * Peer 11 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 11 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 12 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 12 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 13 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 13 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 14 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 14 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 15 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 15 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # Deleting peer while sending traffic: # PING 5.5.5.1 (5.5.5.1) 56(84) bytes of data. # Deleting keys: # Setting timeout to 3s MP: # # --- 5.5.5.1 ping statistics --- # 284959 packets transmitted, 284777 received, 0.0638688% packet loss, time 3990ms # rtt min/avg/max/mdev = 0.005/0.006/0.183/0.000 ms, ipg/ewma 0.014/0.006 ms # Setting timeout to 3s P2P: # Checking notifications for peer 0... OK # Checking notifications for peer 1... OK # Checking notifications for peer 2... OK # Checking notifications for peer 3... OK # Checking notifications for peer 4... OK # Checking notifications for peer 5... OK # Checking notifications for peer 6... OK # Deleting interface tun1 ifindex 4 # Deleting interface tun2 ifindex 4 # Deleting interface tun3 ifindex 4 # Deleting interface tun4 ifindex 4 # Deleting interface tun5 ifindex 4 # Deleting interface tun6 ifindex 4 ok 1 selftests: net/ovpn: test-tcp.sh make[1]: Leaving directory '/srv/vmksft/testing/wt-5/tools/testing/selftests/net/ovpn' make: Leaving directory '/srv/vmksft/testing/wt-5/tools/testing/selftests' xx__-> echo $? 0 xx__->