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
817 stars 56 forks source link

dpinger breaks when using FORCED_LOCAL_INTERFACE #183

Open realies opened 1 year ago

realies commented 1 year ago

when routing all UDM traffic out via the VPN, the UDM thinks it's offline because dpinger fails to ping public servers, it's called with:

/usr/bin/dpinger -f -i eth8-mon1-1.1.1.1 -B 192.168.200.100 -I eth8 -m 0x001a0000 -s 60s -d 1 -t 86400s -u /run/eth8-mon1-1.1.1.1.sock 1.1.1.1

where 192.168.200.100 is the WAN IP and eth8 is the WAN port.

@peacey, could this be fixed with a firewall rule that forwards traffic destined to the WAN IP via the WAN port to go through the VPN(s)?