[26-06-02 09:14:21] START access_openvpn scenario: cases/access_openvpn.sh header : add/remove OpenVPN and validate cipher negotiation topology: sw1(center) 192.41.0.1; | OpenVPN AES tcp/1194 | OpenVPN SM4 tcp/1194; vpn1 vpn2 topology: # Topology: topology: # - Diagram: topology: # sw1(center) 192.41.0.1 topology: # ^ ^ topology: # | OpenVPN AES tcp/1194 | OpenVPN SM4 tcp/1194 topology: # vpn1 vpn2 topology: # 10.99.0.0/24 and 10.98.0.0/24 cipher paths topology: # - Docker mgmt network: 172.252.0.0/24 topology: # sw1=172.252.0.241, vpn containers join the same mgmt network. topology: # - OpenLAN service network "example": 192.41.0.0/24 topology: # sw1 gateway=192.41.0.1. topology: # - OpenVPN overlay: topology: # tcp/1194 with subnet 10.99.0.0/24 for default cipher checks, topology: # tcp/1194 with subnet 10.98.0.0/24 for SM4 cipher checks. topology: # Validation: topology: # (see scenario assertions in this case) Started switch pause container: tests-sw-openvpn-pause Started switch frr container: tests-sw-openvpn-frr Started switch ipsec container: tests-sw-openvpn-ipsec Started switch container: tests-sw-openvpn [26-06-02 09:14:22][ASSERT#0001][expect] at cases/access_openvpn.sh:55 fn=setup_sw1 retry=30 cmd="docker logs -f tests-sw-openvpn" expect="Http.Start" 2026/06/02 09:14:23 INFO|root|Wait: ... 2026/06/02 09:14:23 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:14:23 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:14:23 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:14:23][ASSERT#0001][OK] cost=1.033s [26-06-02 09:14:23][ASSERT#0002][cmd] at cases/access_openvpn.sh:57 fn=setup_sw1 cmd="docker exec tests-sw-openvpn openlan network --name example add --address 192.41.0.1/24" [26-06-02 09:14:23][ASSERT#0002][OK] cost=0.247s [26-06-02 09:14:23][ASSERT#0003][cmd] at cases/access_openvpn.sh:58 fn=setup_sw1 cmd="docker exec tests-sw-openvpn openlan user add --name t1@example --password 123456" # total 1 username password role lease t1@example 123456 guest 2027-06-02T09 [26-06-02 09:14:23][ASSERT#0003][OK] cost=0.067s [26-06-02 09:14:23][ASSERT#0004][cmd] at cases/access_openvpn.sh:65 fn=setup_openvpn cmd="docker exec tests-sw-openvpn openlan network --name example openvpn add --listen :1194 --protocol tcp --subnet 10.99.0.0/24 --dns 8.8.8.8 --cipher AES-128-GCM:AES-256-GCM" [26-06-02 09:14:23][ASSERT#0004][OK] cost=0.111s [26-06-02 09:14:23][ASSERT#0005][cmd] at cases/access_openvpn.sh:67 fn=setup_openvpn cmd="docker exec tests-sw-openvpn test -f /var/openlan/openvpn/example/tcp1194server.conf" [26-06-02 09:14:23][ASSERT#0005][OK] cost=0.059s [26-06-02 09:14:23][ASSERT#0006][cmd] at cases/access_openvpn.sh:68 fn=setup_openvpn cmd="docker exec tests-sw-openvpn test -f /var/openlan/openvpn/example/tcp1194client.ovpn" [26-06-02 09:14:23][ASSERT#0006][OK] cost=0.060s [26-06-02 09:14:23][ASSERT#0007][cmd] at cases/access_openvpn.sh:70 fn=setup_openvpn cmd="docker exec tests-sw-openvpn openlan network --name example client add --user vpn1 --address 10.99.0.10" [26-06-02 09:14:23][ASSERT#0007][OK] cost=0.072s [26-06-02 09:14:23][ASSERT#0008][cmd] at cases/access_openvpn.sh:71 fn=setup_openvpn cmd="docker exec tests-sw-openvpn test -f /var/openlan/openvpn/example/ccd/vpn1@example" [26-06-02 09:14:23][ASSERT#0008][OK] cost=0.049s [26-06-02 09:14:23][ASSERT#0009][cmd] at cases/access_openvpn.sh:73 fn=setup_openvpn cmd="docker exec tests-sw-openvpn openlan network --name example client remove --user vpn1" [26-06-02 09:14:24][ASSERT#0009][OK] cost=0.066s [26-06-02 09:14:24][ASSERT#0010][cmd] at cases/access_openvpn.sh:74 fn=setup_openvpn cmd="docker exec tests-sw-openvpn test ! -f /var/openlan/openvpn/example/ccd/vpn1@example" [26-06-02 09:14:24][ASSERT#0010][OK] cost=0.055s Started OpenVPN client container: tests-sw-openvpn.vpn1 [26-06-02 09:14:24][ASSERT#0011][expect] at cases/access_openvpn.sh:84 fn=setup_openvpn retry=40 cmd="docker logs -f tests-sw-openvpn.vpn1" expect="Initialization Sequence Completed" 2026-06-02 09:14:24 net_addr_v4_add: 10.99.0.2/24 dev tun0 2026-06-02 09:14:24 net_route_v4_add: 10.99.0.0/24 via 10.99.0.1 dev [NULL] table 0 metric 300 2026-06-02 09:14:24 net_route_v4_add: 192.41.0.0/24 via 10.99.0.1 dev [NULL] table 0 metric 300 2026-06-02 09:14:24 Initialization Sequence Completed [26-06-02 09:14:25][ASSERT#0011][OK] cost=1.034s [26-06-02 09:14:25][ASSERT#0012][expect] at cases/access_openvpn.sh:85 fn=setup_openvpn retry=40 cmd="docker logs -f tests-sw-openvpn.vpn1" expect="Data Channel:" 2026-06-02 09:14:24 OPTIONS IMPORT: peer-id set 2026-06-02 09:14:24 OPTIONS IMPORT: adjusting link_mtu to 1626 2026-06-02 09:14:24 OPTIONS IMPORT: data channel crypto options modified 2026-06-02 09:14:24 Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key 2026-06-02 09:14:24 Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key 2026-06-02 09:14:24 net_route_v4_best_gw query: dst 0.0.0.0 2026-06-02 09:14:24 net_route_v4_best_gw result: via 172.252.0.1 dev eth0 2026-06-02 09:14:24 ROUTE_GATEWAY 172.252.0.1/255.255.255.0 IFACE=eth0 HWADDR=42:30:ba:1f:8c:a9 [26-06-02 09:14:26][ASSERT#0012][OK] cost=1.035s 2026-06-02 09:14:24 Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key 2026-06-02 09:14:24 Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key [26-06-02 09:14:26][ASSERT#0013][match] at cases/access_openvpn.sh:88 fn=setup_openvpn retry=5 cmd="docker exec tests-sw-openvpn.vpn1 ping -c 3 192.41.0.1" expect="bytes from" PING 192.41.0.1 (192.41.0.1) 56(84) bytes of data. 64 bytes from 192.41.0.1: icmp_seq=1 ttl=64 time=0.449 ms 64 bytes from 192.41.0.1: icmp_seq=2 ttl=64 time=0.779 ms 64 bytes from 192.41.0.1: icmp_seq=3 ttl=64 time=41.4 ms --- 192.41.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2049ms [26-06-02 09:14:28][ASSERT#0013][OK] cost=2.176s [26-06-02 09:14:28][ASSERT#0014][cmd] at cases/access_openvpn.sh:90 fn=setup_openvpn cmd="docker exec tests-sw-openvpn openlan network --name example openvpn remove" [26-06-02 09:14:28][ASSERT#0014][OK] cost=0.168s [26-06-02 09:14:28][ASSERT#0015][cmd_fail] at cases/access_openvpn.sh:91 fn=setup_openvpn cmd="docker exec tests-sw-openvpn openlan network --name example client add --user vpn1 --address 10.99.0.10" 2026/06/02 09:14:28 400 Bad Request VPN was disabled [26-06-02 09:14:28][ASSERT#0015][OK] cost=0.077s [26-06-02 09:14:28][ASSERT#0016][cmd_fail] at cases/access_openvpn.sh:94 fn=setup_openvpn cmd="docker exec tests-sw-openvpn openlan network --name example openvpn add --listen :1194 --protocol tcp --subnet 10.99.0.0/24 --cipher BAD-CIPHER" 2026/06/02 09:14:29 400 Bad Request unsupported openvpn cipher: BAD-CIPHER [26-06-02 09:14:29][ASSERT#0016][OK] cost=0.071s [26-06-02 09:14:29][ASSERT#0017][cmd] at cases/access_openvpn.sh:99 fn=setup_openvpn_sm4 cmd="docker exec tests-sw-openvpn openlan network --name example openvpn add --listen :1194 --protocol tcp --subnet 10.98.0.0/24 --cipher SM4-CBC" [26-06-02 09:14:29][ASSERT#0017][OK] cost=0.122s Started OpenVPN client container: tests-sw-openvpn.vpn2 [26-06-02 09:14:29][ASSERT#0018][expect] at cases/access_openvpn.sh:107 fn=setup_openvpn_sm4 retry=40 cmd="docker logs -f tests-sw-openvpn.vpn2" expect="Initialization Sequence Completed" 2026-06-02 09:14:29 net_addr_v4_add: 10.98.0.2/24 dev tun0 2026-06-02 09:14:29 net_route_v4_add: 10.98.0.0/24 via 10.98.0.1 dev [NULL] table 0 metric 300 2026-06-02 09:14:29 net_route_v4_add: 192.41.0.0/24 via 10.98.0.1 dev [NULL] table 0 metric 300 2026-06-02 09:14:29 Initialization Sequence Completed [26-06-02 09:14:30][ASSERT#0018][OK] cost=1.030s [26-06-02 09:14:30][ASSERT#0019][expect] at cases/access_openvpn.sh:108 fn=setup_openvpn_sm4 retry=40 cmd="docker logs -f tests-sw-openvpn.vpn2" expect="Data Channel:" 2026-06-02 09:14:29 OPTIONS IMPORT: peer-id set 2026-06-02 09:14:29 OPTIONS IMPORT: adjusting link_mtu to 1626 2026-06-02 09:14:29 OPTIONS IMPORT: data channel crypto options modified 2026-06-02 09:14:29 Data Channel: using negotiated cipher 'SM4-CBC' 2026-06-02 09:14:29 Outgoing Data Channel: Cipher 'SM4-CBC' initialized with 128 bit key 2026-06-02 09:14:29 Outgoing Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication 2026-06-02 09:14:29 Incoming Data Channel: Cipher 'SM4-CBC' initialized with 128 bit key 2026-06-02 09:14:29 Incoming Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication 2026-06-02 09:14:29 net_route_v4_best_gw query: dst 0.0.0.0 2026-06-02 09:14:29 net_route_v4_best_gw result: via 172.252.0.1 dev eth0 2026-06-02 09:14:29 ROUTE_GATEWAY 172.252.0.1/255.255.255.0 IFACE=eth0 HWADDR=fa:a0:9e:bb:f5:8f [26-06-02 09:14:31][ASSERT#0019][OK] cost=1.032s [26-06-02 09:14:31][ASSERT#0020][fuzzy] at cases/access_openvpn.sh:109 fn=setup_openvpn_sm4 retry=15 cmd="docker logs tests-sw-openvpn.vpn2" pattern="Data Channel:.*SM4-CBC" 2026-06-02 09:14:29 OPTIONS IMPORT: peer-id set 2026-06-02 09:14:29 OPTIONS IMPORT: adjusting link_mtu to 1626 2026-06-02 09:14:29 OPTIONS IMPORT: data channel crypto options modified 2026-06-02 09:14:29 Data Channel: using negotiated cipher 'SM4-CBC' 2026-06-02 09:14:29 Outgoing Data Channel: Cipher 'SM4-CBC' initialized with 128 bit key 2026-06-02 09:14:29 Outgoing Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication 2026-06-02 09:14:29 Incoming Data Channel: Cipher 'SM4-CBC' initialized with 128 bit key 2026-06-02 09:14:29 Incoming Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication 2026-06-02 09:14:29 net_route_v4_best_gw query: dst 0.0.0.0 2026-06-02 09:14:29 net_route_v4_best_gw result: via 172.252.0.1 dev eth0 [26-06-02 09:14:31][ASSERT#0020][OK] cost=0.027s [26-06-02 09:14:31][ASSERT#0021][fuzzy] at cases/access_openvpn.sh:110 fn=setup_openvpn_sm4 retry=15 cmd="docker logs tests-sw-openvpn.vpn2" pattern="Outgoing Data Channel:.*SM4-CBC.*initialized" 2026-06-02 09:14:29 OPTIONS IMPORT: adjusting link_mtu to 1626 2026-06-02 09:14:29 OPTIONS IMPORT: data channel crypto options modified 2026-06-02 09:14:29 Data Channel: using negotiated cipher 'SM4-CBC' 2026-06-02 09:14:29 Outgoing Data Channel: Cipher 'SM4-CBC' initialized with 128 bit key 2026-06-02 09:14:29 Outgoing Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication 2026-06-02 09:14:29 Incoming Data Channel: Cipher 'SM4-CBC' initialized with 128 bit key 2026-06-02 09:14:29 Incoming Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication [26-06-02 09:14:31][ASSERT#0021][OK] cost=0.026s [26-06-02 09:14:31][ASSERT#0022][fuzzy] at cases/access_openvpn.sh:111 fn=setup_openvpn_sm4 retry=15 cmd="docker logs tests-sw-openvpn.vpn2" pattern="Incoming Data Channel:.*SM4-CBC.*initialized" 2026-06-02 09:14:29 Data Channel: using negotiated cipher 'SM4-CBC' 2026-06-02 09:14:29 Outgoing Data Channel: Cipher 'SM4-CBC' initialized with 128 bit key 2026-06-02 09:14:29 Outgoing Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication 2026-06-02 09:14:29 Incoming Data Channel: Cipher 'SM4-CBC' initialized with 128 bit key 2026-06-02 09:14:29 Incoming Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication 2026-06-02 09:14:29 net_route_v4_best_gw query: dst 0.0.0.0 2026-06-02 09:14:29 net_route_v4_best_gw result: via 172.252.0.1 dev eth0 [26-06-02 09:14:31][ASSERT#0022][OK] cost=0.026s [26-06-02 09:14:31][ASSERT#0023][cmd] at cases/access_openvpn.sh:113 fn=setup_openvpn_sm4 cmd="docker exec tests-sw-openvpn openlan network --name example openvpn remove" [26-06-02 09:14:31][ASSERT#0023][OK] cost=0.160s SM4 cipher negotiation check passed. [26-06-02 09:14:32] END access_openvpn status=PASS cost=11.060s