OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: zwck on November 17, 2018, 03:38:21 pm

Title: VPN Client - Gateway issue
Post by: zwck on November 17, 2018, 03:38:21 pm
Hey all complete beginner here,

I am running the latest stable of opnsense and i installed the opnvpn client on opnsense  which creates a gateway and client, when you start the client the gateway becomes active.
It all works fine and dandy with the installation and then my entire network is routed throught the VPN Gateway,  when i start the client the default gateway (WAN_DHCP) will be overwritten directly to (VPN_DHCP) for all my lans and vlans. However, i just want one vlan to be routed through the VPN gateway

I thought it would be straight forward and a simple change of the GATEWAY in the rules for each vlan and lan would to the trick, however then the only vlan that is working then is the one with the VPN_dhcp gateway selected.
Title: Re: VPN Client - Gateway issue
Post by: MickeyRat on November 23, 2018, 04:19:41 am
I'm a total noob too but, I did get the VPN client working for PIA and I was able to specify which nodes on my network go through it.  This guide is for pfsense but, it's what I used as a go by:

https://www.reddit.com/r/PFSENSE/comments/6edsav/how_to_proper_partial_network_vpn_with_kill_switch/ (https://www.reddit.com/r/PFSENSE/comments/6edsav/how_to_proper_partial_network_vpn_with_kill_switch/)

I suspect that you need to check don't pull routes on your VPN client.  That won't route things through VPN but, it will stop your entire network from going through VPN. 

Things have been busy with Thanksgiving and all but, I intend to post a thorough guide to doing it in the next week or so.
Title: Re: VPN Client - Gateway issue
Post by: zwck on November 26, 2018, 11:53:30 am
Beautiful! Thank you it was the routes thingy :D