OpenVPN tun adapter loses its IP address on network restart, if referenced in /etc/config/network
Username: Michael Uray
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2174
-
Linksys WRT1200AC
-
OpenWrt 18.06.2
-
OpenVPN 2.4.5
The tun interface loses its IP address when a network restart (/etc/init.d/network restart) gets issued, if the tun adapter is if referenced in /etc/config/network.
You have to restart the OpenVPN service to reassign an IP address.
This happens on the server as well as on the client side and it can lock yourself out if you are connected via VPN.
https://forum.openwrt.org/t/openvpn-client-tun-adapter-loses-its-ip-address-on-network-restart/13825