Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Route 1 IP over WireGuard VPN
« previous
next »
Print
Pages: [
1
]
Author
Topic: Route 1 IP over WireGuard VPN (Read 1816 times)
eagle75
Newbie
Posts: 5
Karma: 0
Route 1 IP over WireGuard VPN
«
on:
October 11, 2023, 10:09:24 pm »
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.
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Route 1 IP over WireGuard VPN
«
Reply #1 on:
October 11, 2023, 10:34:47 pm »
please consider this one
https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html
If you get stuck, inform at which step you get.
Logged
eagle75
Newbie
Posts: 5
Karma: 0
Re: Route 1 IP over WireGuard VPN
«
Reply #2 on:
October 12, 2023, 02:41:52 pm »
Thanks...I am stuck here when they tell you to make the first rule...what interface is it on? VPN one or LAN?
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Route 1 IP over WireGuard VPN
«
Reply #3 on:
October 12, 2023, 02:54:31 pm »
From that documentation, LAN.
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: Route 1 IP over WireGuard VPN
«
Reply #4 on:
October 12, 2023, 03:13:08 pm »
If you have IPv6 working, remember to do the same for v6 or block it for this device.
Logged
i am not an expert... just trying to help...
eagle75
Newbie
Posts: 5
Karma: 0
Re: Route 1 IP over WireGuard VPN
«
Reply #5 on:
October 12, 2023, 11:03:12 pm »
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
Logged
eagle75
Newbie
Posts: 5
Karma: 0
Re: Route 1 IP over WireGuard VPN
«
Reply #6 on:
October 12, 2023, 11:11:40 pm »
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
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: Route 1 IP over WireGuard VPN
«
Reply #7 on:
October 13, 2023, 06:21:31 am »
Screenshot of your rule and alias?
Logged
i am not an expert... just trying to help...
eagle75
Newbie
Posts: 5
Karma: 0
Re: Route 1 IP over WireGuard VPN
«
Reply #8 on:
October 13, 2023, 05:22:29 pm »
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.
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: Route 1 IP over WireGuard VPN
«
Reply #9 on:
October 13, 2023, 08:18:45 pm »
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).
Logged
i am not an expert... just trying to help...
newsense
Hero Member
Posts: 1037
Karma: 77
Re: Route 1 IP over WireGuard VPN
«
Reply #10 on:
October 16, 2023, 02:12:42 am »
There's no justification for the floating rule, and it's wrong anyway.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Route 1 IP over WireGuard VPN