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

PBR and site2site #195

Open Yngve0 opened 11 months ago

Yngve0 commented 11 months ago

I have the following setup: PrimarySite: UDR with public IP and wireguard server with several clients configured SecondarySite: ISP-provided Router with limited functionality. A rpi in localnet with wireguard-client is handling site2site VPN. So far everything fine.

I want everything from a dedicated VLAN/subnet on primarySite to be routed through the site2site-VPN and use secondarySite's ISP. It seems like [split-vpn] only work when UDR act as wg-client and not when UDR is a wg-server. Is that correct?