Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
How to use route LAN through Wireguard peer?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to use route LAN through Wireguard peer? (Read 1566 times)
dsh
Newbie
Posts: 4
Karma: 0
How to use route LAN through Wireguard peer?
«
on:
November 14, 2021, 07:40:11 am »
Hello, I have following config.
WAN: x.x.x.7/24 GW: x.x.x.1
LAN: 172.16.0.1/24
Then I have followed
https://www.thomas-krenn.com/en/wiki/OPNsense_WireGuard_VPN_for_Road_Warrior_configuration
tutorial and it works as intended.
OPNsense wg0: 10.10.0.1
Peer wg0: 10.10.0.2
Only change I made is the peer's allowed IP is 0.0.0.0/0. Now OPNsense routes through this peer.
Now I'd like LAN clients to route through Wireguard Peer.
Basically users from LAN: 172.16.0.50->172.16.0.1->10.10.0.2->0.0.0.0/0
How can I do this?
Logged
koushun
Jr. Member
Posts: 95
Karma: 9
Digital pimp hard at work.
Re: How to use route LAN through Wireguard peer?
«
Reply #1 on:
December 06, 2021, 02:18:21 pm »
Basically do this (I think - I cannot find my notes on how I did this):
1. System > Gateways > Add gateway.
Name can be 'GW_WireGuard' - the interface selected would be your WG interface.
2. Make a rule on the LAN interface; expand the ruleset (advanced or something) and select your newly created gateway instead of the default gateway.
Maybe this can get you started?
Logged
Running OPNsense through Proxmox
4 x Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (1 Socket)
24 GB RAM
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
How to use route LAN through Wireguard peer?