NivekTheSizable
Occasional Visitor
The OpenVPN server fails to start at all on 386.1_2 on the RT-AX88U. This is using the same config that works fine on 386.1.
To attempt to troubleshoot, I tried to enable OVPN server 2, which I don't use, in its default configuration to see if that worked, but it also failed to start with the same errors in the logs.
Here's the error log (same errors for ovpn-server1):
Overwriting the firmware to 386.1 solves the issue with no changes to the config. Here's the logs for the successful startup by comparison:
Anyone know if this is this a compilation issue in 386.1_2 or something I can fix myself without waiting for a new release?
To attempt to troubleshoot, I tried to enable OVPN server 2, which I don't use, in its default configuration to see if that worked, but it also failed to start with the same errors in the logs.
Here's the error log (same errors for ovpn-server1):
Code:
Feb 26 11:14:17 ovpn-server2[12157]: --cipher is not set. Previous OpenVPN version defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
Feb 26 11:14:17 ovpn-server2[12157]: Options error: --dh fails with 'dh.pem': No such file or directory (errno=2)
Feb 26 11:14:17 ovpn-server2[12157]: Options error: Please correct these errors.
Feb 26 11:14:17 ovpn-server2[12157]: Use --help for more information.
Feb 26 11:14:17 openvpn: Starting OpenVPN server 2 failed!
Overwriting the firmware to 386.1 solves the issue with no changes to the config. Here's the logs for the successful startup by comparison:
Code:
Feb 26 12:26:35 ovpn-server1[2432]: --cipher is not set. Previous OpenVPN version defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
Feb 26 12:26:35 ovpn-server1[2432]: OpenVPN 2.5.0 arm-buildroot-linux-gnueabi [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jan 30 2021
Feb 26 12:26:35 ovpn-server1[2432]: library versions: OpenSSL 1.1.1i 8 Dec 2020, LZO 2.08
Feb 26 12:26:36 ovpn-server1[2444]: NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Feb 26 12:26:36 ovpn-server1[2444]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Feb 26 12:26:36 ovpn-server1[2444]: Diffie-Hellman initialized with 2048 bit key
Feb 26 12:26:36 ovpn-server1[2444]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Feb 26 12:26:36 ovpn-server1[2444]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Feb 26 12:26:36 ovpn-server1[2444]: TUN/TAP device tun21 opened
Feb 26 12:26:36 ovpn-server1[2444]: TUN/TAP TX queue length set to 1000
Feb 26 12:26:36 ovpn-server1[2444]: /usr/sbin/ip link set dev tun21 up mtu 1500
Feb 26 12:26:36 ovpn-server1[2444]: /usr/sbin/ip link set dev tun21 up
Feb 26 12:26:36 ovpn-server1[2444]: /usr/sbin/ip addr add dev tun21 10.8.0.1/24
Feb 26 12:26:36 ovpn-server1[2444]: ovpn-up 1 server tun21 1500 1621 10.8.0.1 255.255.255.0 init
Feb 26 12:26:36 ovpn-server1[2444]: /usr/sbin/ip route add 10.8.0.0/24 via 10.8.0.2
Feb 26 12:26:36 ovpn-server1[2444]: ERROR: Linux route add command failed: external program exited with error status: 2
Feb 26 12:26:36 ovpn-server1[2444]: Could not determine IPv4/IPv6 protocol. Using AF_INET
Feb 26 12:26:36 ovpn-server1[2444]: Socket Buffers: R=[524288->524288] S=[524288->524288]
Feb 26 12:26:36 ovpn-server1[2444]: UDPv4 link local (bound): [AF_INET][undef]:61194
Feb 26 12:26:36 ovpn-server1[2444]: UDPv4 link remote: [AF_UNSPEC]
Feb 26 12:26:36 ovpn-server1[2444]: MULTI: multi_init called, r=256 v=256
Feb 26 12:26:36 ovpn-server1[2444]: IFCONFIG POOL IPv4: base=10.8.0.2 size=252
Feb 26 12:26:36 ovpn-server1[2444]: Initialization Sequence Completed
Anyone know if this is this a compilation issue in 386.1_2 or something I can fix myself without waiting for a new release?