I have some trouble with my new config/vpn setup: my internet is gone after turning off OpenVPN connection. I cannot ping or access any sites. When pinging from luci, it says ping: bad address 'openwrt.org'. Even after reconnecting to this same VPN config, I get nothing but the same result. The only solution I found for myself is manually reconnect wan interface, which is a little bit time-wasting.
My device and OpenWRT version: Xiaomi Mi Router 3 Pro, OpenWrt 22.03.1
My OpenVPN config:
client
;explicit-exit-notify
proto udp
remote vpn.myserver.com 53
dev tun
auth-user-pass /etc/openvpn/VPN.auth
persist-key
persist-tun
nobind
;block-outside-dns
Its could be a DNS problem. Try setting it manually to a public server like 1.1.1.1 on a client machine. If that gives you internet, theres your issue.
This rewrites the existing default route via the wan interface.
When you stop the openvpn service, the new default route (through the vpn interface) is deleted, but the original one (via the wan interface) is not restored.
Тherefore, you lose access to the Internet, including the public DNS resolvers.