So i followed this guide for setting up openvpn on my omnia router. hxxps://support.nordvpn.com/hc/en-us/articles/115000254305-OpenWRT-router-tutorial
The issue is it drops connection within 5-10 minutes and gets a new vpn ip address over and over.
Looking at the logs in /var/log/messages i have a hard time understanding the log and what needs to be fixed. I was hoping someone could look at this log and tell me what is most likely the cause? If there is another detailed log file to look at let me know. Here is a portion of my log with some errors. Appreciate any advice or insight. Thank you.
2017-02-18T22:13:01-08:00 info /usr/sbin/cron[28937]: (root) CMD (/usr/bin/rainbow_button_sync.sh)
2017-02-18T22:13:44-08:00 notice netifd[]: wan (2132): udhcpc: sending renew
2017-02-18T22:14:01-08:00 info /usr/sbin/cron[28976]: (root) CMD (/usr/bin/rainbow_button_sync.sh)
2017-02-18T22:14:01-08:00 info /usr/sbin/cron[28975]: (root) CMD (nethist_stats.lua)
2017-02-18T22:14:21-08:00 notice netifd[]: wan (2132): udhcpc: sending renew
2017-02-18T22:14:39-08:00 notice netifd[]: wan (2132): udhcpc: sending renew
2017-02-18T14:14:44-08:00 info dnsmasq-dhcp[2293]: DHCPINFORM(br-lan) 192.168.xxx.246
2017-02-18T14:14:44-08:00 info dnsmasq-dhcp[2293]: DHCPACK(br-lan) 192.168.xxx.246
2017-02-18T22:14:48-08:00 notice netifd[]: wan (2132): udhcpc: sending renew
2017-02-18T14:14:54-08:00 notice netifd[]: Last message 'wan (2132): udhcpc: ' repeated 1 times, supressed by syslog-ng on turris
2017-02-18T22:14:54-08:00 notice netifd[]: wan (2132): udhcpc: sending renew
2017-02-18T14:14:55-08:00 notice netifd[]: Last message 'wan (2132): udhcpc: ' repeated 1 times, supressed by syslog-ng on turris
2017-02-18T22:14:55-08:00 notice netifd[]: wan (2132): udhcpc: lease lost, entering init state
2017-02-18T22:14:55-08:00 notice netifd[]: Interface 'wan' has lost the connection
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: [OpenVPN Server] Inactivity timeout (--ping-restart), restarting
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: /sbin/route del -net 209.148.113.36 netmask 255.255.255.255
2017-02-18T22:15:45-08:00 warning openvpn(sonicvpn)[2600]: ERROR: Linux route delete command failed: external program exited with error status: 1
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: /sbin/route del -net 0.0.0.0 netmask 128.0.0.0
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: /sbin/route del -net 128.0.0.0 netmask 128.0.0.0
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: Closing TUN/TAP interface
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: /sbin/ifconfig tun0 0.0.0.0
2017-02-18T22:15:45-08:00 notice netifd[]: Network device 'tun0' link is down
2017-02-18T22:14:55-08:00 notice netifd[]: Network alias 'eth1' link is up
2017-02-18T22:14:55-08:00 notice netifd[]: Interface 'wan6' has link connectivity
2017-02-18T22:14:55-08:00 notice netifd[]: Interface 'wan6' is setting up now
2017-02-18T22:14:55-08:00 notice netifd[]: Interface 'wan' is now up
2017-02-18T22:14:55-08:00 notice firewall[]: Reloading firewall due to ifup of wan (eth1)
2017-02-18T22:14:55-08:00 err openvpn(sonicvpn)[2600]: write UDPv4: Operation not permitted (code=1)
2017-02-18T14:14:55-08:00 err openvpn(sonicvpn)[]: Last message 'write UDPv4: Operati' repeated 12 times, supressed by syslog-ng on turris
2017-02-18T22:14:55-08:00 notice netifd[]: Interface 'wan6' is now up
2017-02-18T22:14:56-08:00 notice firewall[]: Reloading firewall due to ifup of wan6 (eth1)
2017-02-18T22:14:56-08:00 err openvpn(sonicvpn)[2600]: write UDPv4: Operation not permitted (code=1)
2017-02-18T14:14:56-08:00 err openvpn(sonicvpn)[]: Last message 'write UDPv4: Operati' repeated 57 times, supressed by syslog-ng on turris
2017-02-18T22:14:56-08:00 warning odhcpd[1703]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
2017-02-18T22:15:01-08:00 info /usr/sbin/cron[29415]: (root) CMD (/usr/bin/watchdog.sh)
2017-02-18T22:15:01-08:00 info /usr/sbin/cron[29414]: (root) CMD (/usr/bin/rainbow_button_sync.sh)
2017-02-18T22:15:01-08:00 info /usr/sbin/cron[29418]: (root) CMD ( /usr/bin/notifier)
2017-02-18T22:15:12-08:00 warning watchdog[]: Restarted nethist
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: [OpenVPN Server] Inactivity timeout (--ping-restart), restarting
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: /sbin/route del -net 209.148.113.36 netmask 255.255.255.255
2017-02-18T22:15:45-08:00 warning openvpn(sonicvpn)[2600]: ERROR: Linux route delete command failed: external program exited with error status: 1
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: /sbin/route del -net 0.0.0.0 netmask 128.0.0.0
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: /sbin/route del -net 128.0.0.0 netmask 128.0.0.0
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: Closing TUN/TAP interface
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: /sbin/ifconfig tun0 0.0.0.0
2017-02-18T22:15:45-08:00 notice netifd[]: Network device 'tun0' link is down
2017-02-18T22:15:45-08:00 notice netifd[]: Interface 'sonicvpntun' has link connectivity loss
2017-02-18T22:15:45-08:00 notice netifd[]: Interface 'sonicvpntun' is now down
2017-02-18T22:15:45-08:00 notice netifd[]: Interface 'sonicvpntun' is disabled
2017-02-18T22:15:45-08:00 warning odhcpd[1703]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: SIGUSR1[soft,ping-restart] received, process restarting
2017-02-18T22:15:45-08:00 notice openvpn(sonicvpn)[2600]: Restart pause, 2 second(s)
2017-02-18T22:15:46-08:00 warning odhcpd[1703]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
2017-02-18T22:15:47-08:00 notice openvpn(sonicvpn)[2600]: Control Channel Authentication: tls-auth using INLINE static key file
2017-02-18T22:15:47-08:00 notice openvpn(sonicvpn)[2600]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2017-02-18T22:15:47-08:00 notice openvpn(sonicvpn)[2600]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2017-02-18T22:15:47-08:00 notice openvpn(sonicvpn)[2600]: Socket Buffers: R=[163840->200000] S=[163840->200000]
2017-02-18T22:15:47-08:00 notice openvpn(sonicvpn)[2600]: UDPv4 link local: [undef]