Posted: Fri Oct 23, 2020 23:10 Post subject: R7800 PIA VPN limited to a specific VLAN
I've found VPN guides/threads here and at PIA as well as youtube videos explaining general PIA/OpenVPN setup. I know I've seen a guide related to OpenVPN for a specific VLAN in the past, but I can't for the life of me find a guide or relevant thread.
The VLAN/ports config shouldn't be an issue, but I can't figure out how to differentiate internet breakout/routing. (Currently haven't attempted to set it up as I have services that won't work on a VPN. Can't initiate setup before I see a viable way forward.) I would truly appreciate any hints regarding how to proceed.
Assuming you don't assign the new VLAN to an existing bridge, it must have its own IP network. So if you want it alone routed over the VPN, only specify its IP network in PBR (policy based routing).
Thank you, PBR what was what I for some reason couldn't find. Used the CIDR from relevant VAP interface in PBR and changed the kill switch to match my scenario. (First failed as two guides didn't mention NAT status. Had to enable it as I found in a post here to get it working.)