Specific IP Routing via Wiregaurd

Started by shrekfx, March 01, 2023, 04:29:37 PM

Previous topic - Next topic
I have my router set up to route traffic out via wiregaurd to SurfShark.  That is working fine.  What I am trying to do is make it so traffic to specific IP address goes over my home ISP connection and not through the VPN tunnel.  For the life of me, I cannot get this part figured out.  I followed some guides online but nothing seems to work.  Either I end  up sending all traffic over vpn, all traffic over local ISP. 

Traffic is routet to WG via policy based routing?
Then you need to
1. Create an alias with IPs you want to connect to via WAN
2. Create allow rule above default allow, set destination to your alias and GW to default / WAN.
i am not an expert... just trying to help...

Awesome, i'll give that a try.  Can't remember if I did that and killed all my outgoing, but will give another shot. :)

Quick question, does this go in the LAN rules I'm thinking or where exactly.

Yes, its on the Interface where your clients are connected to... Can also be a VLAN
i am not an expert... just trying to help...

Perfect. I think I got this working now. So simple. LOL Thanks again.

Fine :)
Remember that thr alias also can contain MAC instead of IPs of your clients... Maybe working with MAC is better for some cases.
i am not an expert... just trying to help...