Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Specific IP Routing via Wiregaurd
« previous
next »
Print
Pages: [
1
]
Author
Topic: Specific IP Routing via Wiregaurd (Read 1079 times)
shrekfx
Newbie
Posts: 19
Karma: 0
Specific IP Routing via Wiregaurd
«
on:
March 01, 2023, 04:29:37 pm »
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.
Logged
tiermutter
Hero Member
Posts: 1099
Karma: 61
Re: Specific IP Routing via Wiregaurd
«
Reply #1 on:
March 01, 2023, 07:57:39 pm »
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.
Logged
i am not an expert... just trying to help...
shrekfx
Newbie
Posts: 19
Karma: 0
Re: Specific IP Routing via Wiregaurd
«
Reply #2 on:
March 01, 2023, 08:00:44 pm »
Awesome, i'll give that a try. Can't remember if I did that and killed all my outgoing, but will give another shot.
Logged
shrekfx
Newbie
Posts: 19
Karma: 0
Re: Specific IP Routing via Wiregaurd
«
Reply #3 on:
March 01, 2023, 08:02:26 pm »
Quick question, does this go in the LAN rules I'm thinking or where exactly.
Logged
tiermutter
Hero Member
Posts: 1099
Karma: 61
Re: Specific IP Routing via Wiregaurd
«
Reply #4 on:
March 01, 2023, 08:45:05 pm »
Yes, its on the Interface where your clients are connected to... Can also be a VLAN
Logged
i am not an expert... just trying to help...
shrekfx
Newbie
Posts: 19
Karma: 0
Re: Specific IP Routing via Wiregaurd
«
Reply #5 on:
March 01, 2023, 09:12:30 pm »
Perfect. I think I got this working now. So simple. LOL Thanks again.
Logged
tiermutter
Hero Member
Posts: 1099
Karma: 61
Re: Specific IP Routing via Wiregaurd
«
Reply #6 on:
March 01, 2023, 09:30:56 pm »
Fine
Remember that thr alias also can contain MAC instead of IPs of your clients... Maybe working with MAC is better for some cases.
Logged
i am not an expert... just trying to help...
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Specific IP Routing via Wiregaurd