Only want specific devices over VPN

Started by xander, September 27, 2024, 07:33:36 PM

Previous topic - Next topic
Greetings, all.  I'm brand new to OPNsense, network and learning a lot.  So, on to the issue.  I have everything up and running and I want to only run specific devices over NordVPN.  I followed these instructions https://support.nordvpn.com/hc/en-us/articles/20397569418129-OPNsense-21-setup-with-NordVPN
to a T and it works great. The only issue is all of my traffic runs over it and I can't figure out how to configure it how I would like.  If I turn off the VPN all Traffic dies, and WAN status says Offline.  I need some help.

Thanks

In the Firewall menu go to Aliases and create an IP alias and add all concerned IPs to it.

Go to the rule, which you've edited at this step of the guide and hit the clone button at the :
QuoteNavigate to Firewall -> Rules -> LAN and delete the IPv6 rule. After that, click on the edit button next to IPv4. Scroll down and under Advanced features, select Gateway as NORDVPN_VPN4. Click Save.

go down to gateway, select default and save.

Go to the origin rule with the gateway and edit it. At source select the alias you've created before and save it.

Go to the OpenVPN client settings and check "Don't pull routes".

It should now do, what you intend.