Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Default route gets deleted with Wireguard VPN
« previous
next »
Print
Pages: [
1
]
Author
Topic: Default route gets deleted with Wireguard VPN (Read 672 times)
Firewire
Newbie
Posts: 9
Karma: 0
Default route gets deleted with Wireguard VPN
«
on:
January 22, 2024, 09:27:34 pm »
Hello,
today I discovered my whole network went offline today after making changes days ago.
After troubleshooting and resetting my whole OPNsense install, I discovered the reason for the issue.
I have 3x interfaces configured (LAN, WAN, Wireguard).
LAN and WAN are running with default settings.
Wireguard is an interface I added after successfully configuring a Wireguard config, which is policy based and only meant for specific clients with specific source IPs.
The VPN setup worked great, until my Firewall was restarted than everything went offline.
After checking my routing table I discovered the default route was deleted.
This happens when on my Wireguard interface following option is configured:
Everything works when this option is enabled, until my router gets restarted.
Then the VPN still works but internet traffic from other devices is not sent out anymore since the default route gets deleted. Disabling this option makes everything work again for my Non-VPN Clients.
Could someone help me to fix this?
«
Last Edit: January 22, 2024, 09:29:26 pm by Firewire
»
Logged
Firewire
Newbie
Posts: 9
Karma: 0
Re: Default route gets deleted with Wireguard VPN
«
Reply #1 on:
January 22, 2024, 09:57:58 pm »
Guess I found the right configuration after following this guide:
https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html
I had to disable "Dynamic gateway policy" on the Wireguard Interface.
Instead a gateway IP has to be added to the Wireguard VPN instance.
Afterwards a new gateway needs to be configured on System settings as mentioned above.
Seems to work even after a restart now.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Default route gets deleted with Wireguard VPN