Hi My Wireguard connection drops every couple of days which I think is either due to VPN changing ip address or connection just dropping for unknown reason. When this happens it doesn't re-establish the Wireguard VPN connection again unless I delete the Wireguard interface and setup the connection from scratch. Even restarting the router doesn't fix the issue.
Is there a way I can get it to re-establish the VPN connection without having to set it up again?
The issue still seems to be happening after applying the workarounds. The VPN connection is not dropping but I lose connection on the device that is connected to the router via ethernet cable. This seems to happen about every 5-7 days or so. If I delete the VPN interface in network and set it up again then I'm ok for another 5-7 days.
This issue is doing my head in and I tried searching the forum and can't seem to find a solution. Can you advise?
I have the same problem as topic-starter. As soon as my internet-provider drops the connection due to account arrears or ISP-router reboots, it is not possible to connect to VPN. Restarting of WG-interface, rebooting openwrt-router, etc result to nothing.
In order to bypass wireguard-VPN for some sites. Found the solution here.
I must admit, that everything works fine with these options, until internet connection, provided by ISP router, drops down. Or power failure. Then it is impossible to connect to VPN-server without creating new interface etc.
uci -q delete network.@route
uci set network.lan.ip4table="1"
uci set network.lan.ip6table="1"
uci set network.wan.ip4table="2"
uci set network.wan6.ip6table="2"
uci -q delete network.lan_wan
uci set network.lan_wan="rule"
uci set network.lan_wan.in="lan"
uci set network.lan_wan.mark="1"
uci set network.lan_wan.lookup="2"
uci set network.lan_wan.priority="30000"
uci -q delete network.lan_wan6
uci set network.lan_wan6="rule6"
uci set network.lan_wan6.in="lan"
uci set network.lan_wan6.mark="1"
uci set network.lan_wan6.lookup="2"
uci set network.lan_wan6.priority="30000"
uci commit network