przemekwawa
Regular Contributor
Hi,
For many releases I have problem with OpenVPN server that does not start properly after router restart. If I set it to disabled-> save settings-> enabled-> save settings, everything is fine in just a moment
After restart it is in state "starting" with information like in screenshot. It stays so without end (week for sure
After last upgrade, I made hard reset, everything was reconfigured manually and still same problem. I have same situation on 3 routers - all RT-AC68U.
In logs I found only this:
"
Jun 17 20:11:14 ovpn-server1[12679]: event_wait : Interrupted system call (code=4)
Jun 17 20:11:15 ovpn-server1[12679]: Closing TUN/TAP interface
Jun 17 20:11:15 ovpn-server1[12679]: /sbin/ifconfig tun21 0.0.0.0
Jun 17 20:11:15 lldpd[313]: removal request for address of 10.8.0.1%12, but no knowledge of it
Jun 17 20:11:15 ovpn-server1[12679]: updown.sh tun21 1500 1621 10.8.0.1 255.255.255.0 init
Jun 17 20:11:20 ovpn-server1[12679]: SIGTERM[hard,] received, process exiting
"
And after manual restart of open vpn (disable/enable/save)
"
Jun 17 20:22:39 ovpn-server1[7305]: OpenVPN 2.4.9 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 25 2020
Jun 17 20:22:39 ovpn-server1[7305]: library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.08
Jun 17 20:22:39 ovpn-server1[7306]: WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want
Jun 17 20:22:39 ovpn-server1[7306]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jun 17 20:22:42 ovpn-server1[7306]: Diffie-Hellman initialized with 2048 bit key
Jun 17 20:22:42 ovpn-server1[7306]: Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Jun 17 20:22:42 ovpn-server1[7306]: Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Jun 17 20:22:42 ovpn-server1[7306]: TUN/TAP device tun21 opened
Jun 17 20:22:42 ovpn-server1[7306]: TUN/TAP TX queue length set to 1000
Jun 17 20:22:42 ovpn-server1[7306]: /sbin/ifconfig tun21 10.8.0.1 netmask 255.255.255.0 mtu 1500 broadcast 10.8.0.255
Jun 17 20:22:42 kernel: ADDRCONF(NETDEV_CHANGE): tun21: link becomes ready
Jun 17 20:22:42 lldpd[313]: removal request for address of 10.8.0.1%12, but no knowledge of it
Jun 17 20:22:42 ovpn-server1[7306]: updown.sh tun21 1500 1621 10.8.0.1 255.255.255.0 init
Jun 17 20:22:42 ovpn-server1[7306]: Could not determine IPv4/IPv6 protocol. Using AF_INET6
Jun 17 20:22:42 ovpn-server1[7306]: Socket Buffers: R=[122880->122880] S=[122880->122880]
Jun 17 20:22:42 ovpn-server1[7306]: setsockopt(IPV6_V6ONLY=0)
Jun 17 20:22:42 ovpn-server1[7306]: UDPv6 link local (bound): [AF_INET6][undef]:80
Jun 17 20:22:42 ovpn-server1[7306]: UDPv6 link remote: [AF_UNSPEC]
Jun 17 20:22:42 lldpd[313]: removal request for address of 10.8.0.1%12, but no knowledge of it
Jun 17 20:22:42 ovpn-server1[7306]: MULTI: multi_init called, r=256 v=256
Jun 17 20:22:42 ovpn-server1[7306]: IFCONFIG POOL: base=10.8.0.2 size=252, ipv6=0
Jun 17 20:22:42 ovpn-server1[7306]: Initialization Sequence Completed
"
Any ideas?
For many releases I have problem with OpenVPN server that does not start properly after router restart. If I set it to disabled-> save settings-> enabled-> save settings, everything is fine in just a moment
After restart it is in state "starting" with information like in screenshot. It stays so without end (week for sure
After last upgrade, I made hard reset, everything was reconfigured manually and still same problem. I have same situation on 3 routers - all RT-AC68U.
In logs I found only this:
"
Jun 17 20:11:14 ovpn-server1[12679]: event_wait : Interrupted system call (code=4)
Jun 17 20:11:15 ovpn-server1[12679]: Closing TUN/TAP interface
Jun 17 20:11:15 ovpn-server1[12679]: /sbin/ifconfig tun21 0.0.0.0
Jun 17 20:11:15 lldpd[313]: removal request for address of 10.8.0.1%12, but no knowledge of it
Jun 17 20:11:15 ovpn-server1[12679]: updown.sh tun21 1500 1621 10.8.0.1 255.255.255.0 init
Jun 17 20:11:20 ovpn-server1[12679]: SIGTERM[hard,] received, process exiting
"
And after manual restart of open vpn (disable/enable/save)
"
Jun 17 20:22:39 ovpn-server1[7305]: OpenVPN 2.4.9 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 25 2020
Jun 17 20:22:39 ovpn-server1[7305]: library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.08
Jun 17 20:22:39 ovpn-server1[7306]: WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want
Jun 17 20:22:39 ovpn-server1[7306]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jun 17 20:22:42 ovpn-server1[7306]: Diffie-Hellman initialized with 2048 bit key
Jun 17 20:22:42 ovpn-server1[7306]: Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Jun 17 20:22:42 ovpn-server1[7306]: Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Jun 17 20:22:42 ovpn-server1[7306]: TUN/TAP device tun21 opened
Jun 17 20:22:42 ovpn-server1[7306]: TUN/TAP TX queue length set to 1000
Jun 17 20:22:42 ovpn-server1[7306]: /sbin/ifconfig tun21 10.8.0.1 netmask 255.255.255.0 mtu 1500 broadcast 10.8.0.255
Jun 17 20:22:42 kernel: ADDRCONF(NETDEV_CHANGE): tun21: link becomes ready
Jun 17 20:22:42 lldpd[313]: removal request for address of 10.8.0.1%12, but no knowledge of it
Jun 17 20:22:42 ovpn-server1[7306]: updown.sh tun21 1500 1621 10.8.0.1 255.255.255.0 init
Jun 17 20:22:42 ovpn-server1[7306]: Could not determine IPv4/IPv6 protocol. Using AF_INET6
Jun 17 20:22:42 ovpn-server1[7306]: Socket Buffers: R=[122880->122880] S=[122880->122880]
Jun 17 20:22:42 ovpn-server1[7306]: setsockopt(IPV6_V6ONLY=0)
Jun 17 20:22:42 ovpn-server1[7306]: UDPv6 link local (bound): [AF_INET6][undef]:80
Jun 17 20:22:42 ovpn-server1[7306]: UDPv6 link remote: [AF_UNSPEC]
Jun 17 20:22:42 lldpd[313]: removal request for address of 10.8.0.1%12, but no knowledge of it
Jun 17 20:22:42 ovpn-server1[7306]: MULTI: multi_init called, r=256 v=256
Jun 17 20:22:42 ovpn-server1[7306]: IFCONFIG POOL: base=10.8.0.2 size=252, ipv6=0
Jun 17 20:22:42 ovpn-server1[7306]: Initialization Sequence Completed
"
Any ideas?