peacey / split-vpn

A split tunnel VPN script for Unifi OS routers (UDM, UXG, UDR) with policy based routing.
GNU General Public License v3.0
813 stars 56 forks source link

Unifi Wifi paused -> no internet access through wireguard vpn #200

Closed Mike-de-bike closed 1 year ago

Mike-de-bike commented 1 year ago

Hello, nearly on year I used two concurrent wireguard vpns via split-vpn, now one wg tunnel is active, but lets no traffic through. The other wg tunnel is working correcty. A system reboot brings both tunnels up, but with the same state of tunnel two.

One event has happened directly before the malfunction of tunnel 2: I paused and resumed a Wifi via the dream machine Gui. I have tried to disable the killswitch, but with no effect.

anybody who could help me in debugging?

Mike-de-bike commented 1 year ago

I have found a difference, the tunnel that does not pass traffic has following output of "ip route show table 113":

root@UDMPro:/data/split-vpn/wireguard/mullvad-b# ip route show table 113 0.0.0.0/1 dev wg3 scope link 128.0.0.0/1 dev wg3 scope link

On the other tunnel, there is following output:

root@UDMPro:/etc/split-vpn/wireguard/mullvad# ip route show table 101 0.0.0.0/1 dev wg0 scope link blackhole default 128.0.0.0/1 dev wg0 scope link 185.213.155.73 dev ppp0 scope link

The vpn.conf and the wg.conf seem to be ok.

How can I fix it?

Mike-de-bike commented 1 year ago

Update: If I set KILLSWITCH=0 the internet is reached, but the tunnel is not used. is there a cache, that holds some kind of information to be deleted? @peacey please give me assistance... thank you.