Route 1 IP over WireGuard VPN

Started by eagle75, October 11, 2023, 10:09:24 PM

Previous topic - Next topic
I have OPNSense and I have WireGuard setup for Private Internet Access.  I want to be able to route my downloader machine over that VPN so only that server goes over the tunnel all the rest of the network goes out the default non VPN way.  Any help would be appreciated...I have tried many different tutorials to no avail.


Thanks...I am stuck here when they tell you to make the first rule...what interface is it on?  VPN one or LAN?


If you have IPv6 working, remember to do the same for v6 or block it for this device.
i am not an expert... just trying to help...

I tried all of that and im still not getting the VPN IP for the external IP of the one machine allowed to go over the VPN

Actually it looks reversed...the one machine has my ISP's IP for external and all other machines have the VPN IP...how can I switch that

Screenshot of your rule and alias?
i am not an expert... just trying to help...

Not reversed sorry I didn't realize I had my Mac client connected...its just not working...the machine that should have the VPN IP still has my ISP IP.
Here are the Rules for Lan and Floating.

You need to invert destination.
However, if the alias does not need to reach other subnets via firewall, you can also set any for destination (without invert).
i am not an expert... just trying to help...

There's no justification for the floating rule, and it's wrong anyway.