OpenVPN in endless loop (re)start
Hi, not sure whther it is fresh or not, but after TOS 5.0.3 update I noticed that load is quite high and in logread -f endlessly flows this:
Log exerpt
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: OpenVPN 2.4.7 arm-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: Diffie-Hellman initialized with 2048 bit key
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: TUN/TAP device tun_turris opened
Jul 10 07:56:34 omnia netifd: Interface 'vpn_turris' is enabled
Jul 10 07:56:34 omnia netifd: Network device 'tun_turris' link is up
Jul 10 07:56:34 omnia netifd: Interface 'vpn_turris' has link connectivity
Jul 10 07:56:34 omnia netifd: Interface 'vpn_turris' is setting up now
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: TUN/TAP TX queue length set to 100
Jul 10 07:56:34 omnia netifd: Interface 'vpn_turris' is now up
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: /sbin/ifconfig tun_turris 192.168.123.1 pointopoint 192.168.123.2 mtu 1500
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: /sbin/ifconfig tun_turris add 2001:db8:d01::1/64
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: /sbin/route add -net 192.168.123.0 netmask 255.255.255.0 gw 192.168.123.2
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: Could not determine IPv4/IPv6 protocol. Using AF_INET
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: Socket Buffers: R=[163840->163840] S=[163840->163840]
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: UDPv4 link local (bound): [AF_INET][undef]:1194
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: UDPv4 link remote: [AF_UNSPEC]
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: MULTI: multi_init called, r=256 v=256
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: IFCONFIG POOL IPv6: (IPv4) size=62, size_ipv6=65536, netbits=64, base_ipv6=2001:db8:d01::1000
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: IFCONFIG POOL: base=192.168.123.4 size=62, ipv6=1
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: IFCONFIG POOL LIST
Jul 10 07:56:34 omnia openvpn(server_turris)[11022]: Initialization Sequence Completed
Jul 10 07:56:36 omnia firewall: Reloading firewall due to ifup of vpn_turris (tun_turris)
Jul 10 07:56:37 omnia openvpn(server_turris)[11022]: event_wait : Interrupted system call (code=4)
Jul 10 07:56:37 omnia openvpn(server_turris)[11022]: /sbin/route del -net 192.168.123.0 netmask 255.255.255.0
Jul 10 07:56:37 omnia openvpn(server_turris)[11022]: Closing TUN/TAP interface
Jul 10 07:56:37 omnia openvpn(server_turris)[11022]: /sbin/ifconfig tun_turris 0.0.0.0
Jul 10 07:56:37 omnia openvpn(server_turris)[11022]: /sbin/ifconfig tun_turris del 2001:db8:d01::1/64
Jul 10 07:56:37 omnia netifd: Network device 'tun_turris' link is down
Jul 10 07:56:37 omnia netifd: Interface 'vpn_turris' has link connectivity loss
Jul 10 07:56:37 omnia netifd: Interface 'vpn_turris' is now down
Jul 10 07:56:37 omnia openvpn(server_turris)[11022]: SIGTERM[hard,] received, process exiting
Jul 10 07:56:37 omnia netifd: Interface 'vpn_turris' is disabled
Perhaps not much useful ps w | grep vpn
root@omnia:~# ps w | grep vpn
4374 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
4813 root 1192 S grep vpn
root@omnia:~# ps w | grep vpn
4929 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
5023 root 1240 S /bin/sh /usr/bin/foris-notify-wrapper -n -m networks -a network_change {"network":"vpn_turris","device":"
root@omnia:~# ps w | grep vpn
4929 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
5023 root 1240 S /bin/sh /usr/bin/foris-notify-wrapper -n -m networks -a network_change {"network":"vpn_turris","device":"
root@omnia:~# ps w | grep vpn
4929 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
5440 root 1192 S grep vpn
root@omnia:~# ps w | grep vpn
5495 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
5588 root 1240 S /bin/sh /usr/bin/foris-notify-wrapper -n -m networks -a network_change {"network":"vpn_turris","device":"
root@omnia:~# ps w | grep vpn
5495 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
5588 root 1240 S /bin/sh /usr/bin/foris-notify-wrapper -n -m networks -a network_change {"network":"vpn_turris","device":"
5824 root 1192 S grep vpn
root@omnia:~# ps w | grep vpn
5992 root 1208 S ash /etc/hotplug.d/iface/42-openvpn
5998 root 1344 R /bin/sh /etc/rc.common /etc/init.d/openvpn restart
6032 root 1192 S grep vpn
root@omnia:~# ps w | grep vpn
6039 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
6117 root 1240 S /bin/sh /usr/bin/foris-notify-wrapper -n -m networks -a network_change {"network":"vpn_turris","device":"
6364 root 1192 S grep vpn
root@omnia:~# ps w | grep vpn
6581 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
6658 root 1240 S /bin/sh /usr/bin/foris-notify-wrapper -n -m networks -a network_change {"network":"vpn_turris","device":"
6666 root 1192 S grep vpn
root@omnia:~# ps w | grep vpn
6581 root 3756 S /usr/sbin/openvpn --syslog openvpn(server_turris) --status /var/run/openvpn.server_turris.status --cd /va
6658 root 1240 S /bin/sh /usr/bin/foris-notify-wrapper -n -m networks -a network_change {"network":"vpn_turris","device":"
6881 root 1192 S grep vpn
root@omnia:~#