Beryl AX OpenVPN client is unable to connect

Hello GL iNet Support,

My new router is unable to establish OpenVPN connection to my home OpenVPN server. The same client config works on Android phone and Raspberry Pi.

Log:

Wed Aug 7 21:06:23 2024 daemon.notice netifd: Interface 'ovpnclient' is setting up now
Wed Aug 7 21:06:24 2024 daemon.notice ovpnclient[2557]: OpenVPN 2.5.3 aarch64-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Wed Aug 7 21:06:24 2024 daemon.notice ovpnclient[2557]: library versions: OpenSSL 1.1.1q 5 Jul 2022, LZO 2.10
Wed Aug 7 21:06:24 2024 daemon.warn ovpnclient[2557]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Wed Aug 7 21:06:24 2024 daemon.warn ovpnclient[2557]: Could not determine IPv4/IPv6 protocol. Using AF_INET
Wed Aug 7 21:06:24 2024 daemon.notice ovpnclient[2557]: UDPv4 link local (bound): [AF_INET][undef]:0
Wed Aug 7 21:06:24 2024 daemon.notice ovpnclient[2557]: UDPv4 link remote: [AF_UNSPEC]

Config (certs and keys are skipped):

dev tun
persist-tun
persist-key
data-ciphers AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305
data-ciphers-fallback AES-256-GCM
auth SHA3-512
tls-client
client
resolv-retry infinite
remote abc.xyz 1234 udp4
lport 0
verify-x509-name "abc.xyz" name
auth-user-pass
remote-cert-tls server
explicit-exit-notify

May I know what is the network topology of the Home OpenVPN Server -> Beryl AX?

Is it: Home OVPN server <-> ISP Modem <-> Internet <-> another ISP modem/cellular hotspot/etc. <-> Beryl AX OVPN Client?

Or: the home server and Beryl AX under the SAME LAN?

Hello Bruce,

It is a first option, with Internet in between sites. The ISP modem in front of the OVPN server is transparent - OVPN server (pfSence) has public IP on its WAN interface.

Side note. I managed to make WireGuard tunnel works between these devices after Beryl firmware reset. This reset didn't help with OVPN.

The WG tunnel works? So please try to check if the ISP is blocked the OVPN traffic? Like change the port, use the 51820 in the OVPN, or others.

I can connect to my OVPN from other devices from the same remote network - this is not a FW issue. In the Beryl's log, there is no even record about server name and its IP.
Also, on the server, I do not even see attempts to connect from my Beryl :frowning_face:

Try remove the two lines and test.

Hi Alzhao,

Same result - OVPN client doesn't connect.

Sat Aug 10 17:11:40 2024 daemon.info glc: (ovpnclient.c:1659) ===>cmd = cp -a '/tmp/etc/openvpn/profiles/99838/cert' '/tmp/etc/openvpn/profiles/99838/auth' '/etc/openvpn/profiles/99838'
Sat Aug 10 17:11:46 2024 daemon.notice netifd: Interface 'ovpnclient' is setting up now
Sat Aug 10 17:11:46 2024 daemon.notice ovpnclient[20150]: OpenVPN 2.5.3 aarch64-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Sat Aug 10 17:11:46 2024 daemon.notice ovpnclient[20150]: library versions: OpenSSL 1.1.1q 5 Jul 2022, LZO 2.10
Sat Aug 10 17:11:46 2024 daemon.warn ovpnclient[20150]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Aug 10 17:11:46 2024 daemon.warn ovpnclient[20150]: Could not determine IPv4/IPv6 protocol. Using AF_INET
Sat Aug 10 17:11:46 2024 daemon.notice ovpnclient[20150]: UDPv4 link local (bound): [AF_INET][undef]:1194
Sat Aug 10 17:11:46 2024 daemon.notice ovpnclient[20150]: UDPv4 link remote: [AF_UNSPEC]

May you try to remove the udp4 entry here?

Maybe you can send me a complete config file and credential to test.

How can I do this securely?

Send to me via private message is ok.