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

force all traffic through vpn(s) #181

Open realies opened 1 year ago

realies commented 1 year ago

how can all traffic be routed through the vpn (or vpns if multiple clients are configured), and the only thing coming out of the wan port(s) is the vpn connection(s)?

peacey commented 1 year ago

Hello @realies,

Are you asking how this script works, or are you asking if you can do that?

realies commented 1 year ago

Somewhat related to #182, I'm trying to limit anything other than the VPN go out of the WANs, and going the FORCED_LOCAL_INTERFACE route, there is still some traffic that goes out. Maybe those issues could be merged.