OpenVPN client doesn't work on my notebook:
OpenVPN version: OpenVPN 2.6.12 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO]
Problem: The tunnel always gets deactivated right after activation. Excerpt of syslog (trying to connect to vpnbook):
Running OpenVPN from the cli delivers (excerpt):
The behavior is the same with other VPN servers (except the warning). I tried to get more information increasing the verbose level of both, OpenVPN and NetworkManager, but I can't figure out, why the tun device is closed right after activation. Does anybody have an idea what I could further do in order to get more information on what's going on or, even better, get the problem solved?
Static hostname: Yoga
Icon name: computer-convertible
Chassis: convertible
Machine ID: 1896c90c79d1450789f088c09c43a31f
Boot ID: b00e8d844976450bb0de29758d79de2b
Operating System: Ubuntu 24.04.2 LTS
Kernel: Linux 6.8.0-57-generic
Architecture: x86-64
Hardware Vendor: Lenovo
Hardware Model: ThinkPad X1 Yoga 3rd
Firmware Version: N25ET69W (1.55 )
Firmware Date: Thu 2024-11-21
Firmware Age: 4month 3w
Chassis: convertible
Machine ID: 1896c90c79d1450789f088c09c43a31f
Boot ID: b00e8d844976450bb0de29758d79de2b
Operating System: Ubuntu 24.04.2 LTS
Kernel: Linux 6.8.0-57-generic
Architecture: x86-64
Hardware Vendor: Lenovo
Hardware Model: ThinkPad X1 Yoga 3rd
Firmware Version: N25ET69W (1.55 )
Firmware Date: Thu 2024-11-21
Firmware Age: 4month 3w
OpenVPN version: OpenVPN 2.6.12 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO]
Problem: The tunnel always gets deactivated right after activation. Excerpt of syslog (trying to connect to vpnbook):
2025-04-12T21:52:59.473014+02:00 Yoga NetworkManager[1792]: <info> [1744487579.4729] device (tun1): Activation: successful, device activated.
2025-04-12T21:52:59.584891+02:00 Yoga sh[171437]: Configuring interface:
2025-04-12T21:52:59.585207+02:00 Yoga sh[171594]: Warning: Executing wildcard deletion to stay compatible with old scripts.
2025-04-12T21:52:59.585272+02:00 Yoga sh[171594]: Explicitly specify the prefix length (10.9.0.42/32) to avoid this warning.
2025-04-12T21:52:59.585322+02:00 Yoga sh[171594]: This special behaviour is likely to disappear in further releases,
2025-04-12T21:52:59.585352+02:00 Yoga sh[171594]: fix your scripts!
2025-04-12T21:52:59.593519+02:00 Yoga NetworkManager[1792]: <info> [1744487579.5932] device (tun1): state change: activated -> unmanaged (reason 'connection-assumed', sys-iface-state: 'external')
2025-04-12T21:52:59.596237+02:00 Yoga sh[171437]: tun1.
2025-04-12T21:52:59.605147+02:00 Yoga netscript[171436]: Stopping interface: tun1.
2025-04-12T21:52:59.605854+02:00 Yoga systemd[1]: netscript@tun1.service: Deactivated successfully.
2025-04-12T21:52:59.584891+02:00 Yoga sh[171437]: Configuring interface:
2025-04-12T21:52:59.585207+02:00 Yoga sh[171594]: Warning: Executing wildcard deletion to stay compatible with old scripts.
2025-04-12T21:52:59.585272+02:00 Yoga sh[171594]: Explicitly specify the prefix length (10.9.0.42/32) to avoid this warning.
2025-04-12T21:52:59.585322+02:00 Yoga sh[171594]: This special behaviour is likely to disappear in further releases,
2025-04-12T21:52:59.585352+02:00 Yoga sh[171594]: fix your scripts!
2025-04-12T21:52:59.593519+02:00 Yoga NetworkManager[1792]: <info> [1744487579.5932] device (tun1): state change: activated -> unmanaged (reason 'connection-assumed', sys-iface-state: 'external')
2025-04-12T21:52:59.596237+02:00 Yoga sh[171437]: tun1.
2025-04-12T21:52:59.605147+02:00 Yoga netscript[171436]: Stopping interface: tun1.
2025-04-12T21:52:59.605854+02:00 Yoga systemd[1]: netscript@tun1.service: Deactivated successfully.
Running OpenVPN from the cli delivers (excerpt):
2025-04-13 16:54:47 ROUTE_GATEWAY 192.168.10.1/255.255.255.0 IFACE=enx0050b6af14fa HWADDR=00:50:b6:af:14:fa
2025-04-13 16:54:47 TUN/TAP device tun1 opened
2025-04-13 16:54:47 net_iface_mtu_set: mtu 1500 for tun1
2025-04-13 16:54:47 net_iface_up: set tun1 up
2025-04-13 16:54:47 net_addr_ptp_v4_add: 10.9.0.26 peer 10.9.0.25 dev tun1
2025-04-13 16:54:47 Data Channel: cipher 'AES-256-GCM', peer-id: 0, compression: 'lzo'
2025-04-13 16:54:47 Timers: ping 5, ping-restart 30
2025-04-13 16:54:50 net_route_v4_add: 51.75.145.20/32 via 192.168.10.1 dev [NULL] table 0 metric -1
2025-04-13 16:54:50 net_route_v4_add: 0.0.0.0/1 via 10.9.0.25 dev [NULL] table 0 metric -1
2025-04-13 16:54:50 sitnl_send: rtnl: generic error (-101): Network is unreachable
2025-04-13 16:54:47 TUN/TAP device tun1 opened
2025-04-13 16:54:47 net_iface_mtu_set: mtu 1500 for tun1
2025-04-13 16:54:47 net_iface_up: set tun1 up
2025-04-13 16:54:47 net_addr_ptp_v4_add: 10.9.0.26 peer 10.9.0.25 dev tun1
2025-04-13 16:54:47 Data Channel: cipher 'AES-256-GCM', peer-id: 0, compression: 'lzo'
2025-04-13 16:54:47 Timers: ping 5, ping-restart 30
2025-04-13 16:54:50 net_route_v4_add: 51.75.145.20/32 via 192.168.10.1 dev [NULL] table 0 metric -1
2025-04-13 16:54:50 net_route_v4_add: 0.0.0.0/1 via 10.9.0.25 dev [NULL] table 0 metric -1
2025-04-13 16:54:50 sitnl_send: rtnl: generic error (-101): Network is unreachable
The behavior is the same with other VPN servers (except the warning). I tried to get more information increasing the verbose level of both, OpenVPN and NetworkManager, but I can't figure out, why the tun device is closed right after activation. Does anybody have an idea what I could further do in order to get more information on what's going on or, even better, get the problem solved?