Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
[SOLVED] Enabling Wireguard disables other interfaces
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Enabling Wireguard disables other interfaces (Read 1441 times)
blaze8218
Newbie
Posts: 2
Karma: 0
[SOLVED] Enabling Wireguard disables other interfaces
«
on:
February 25, 2022, 03:56:43 am »
Updated to 22.1.1_3
While Wireguard is enabled it prevents other interfaces from accessing the internet.
In order for interfaces to access the internet i have to have wireguard disabled for it to work. I removed wireguard rebooted and then reinstalled while re-configuring everything as soon as i enable wireguard it halts everything.
Before 22.1.1_3 everything worked.
After handshake no internet.
If i need to provide logs and things i will need help to where and what i need to provide.
Edit: Solved.
I went through the documentation again and re-added NAT and Interface Rules. I just deleted everything and set them again and it worked there was no difference from them before. No idea why it was causing problems in the first place but im glad i was able to get it to work.
«
Last Edit: February 25, 2022, 06:53:08 am by blaze8218
»
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Enabling Wireguard disables other interfaces
«
Reply #1 on:
February 25, 2022, 06:10:02 am »
/usr/local/etc/rc.d/wireguard restart
Via console please
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
blaze8218
Newbie
Posts: 2
Karma: 0
Re: Enabling Wireguard disables other interfaces
«
Reply #2 on:
February 25, 2022, 06:39:09 am »
rm -f /var/run/wireguard/wg0.sock
ifconfig wg create name wg0
[!] Missing WireGuard kernel support (ifconfig: SIOCIFCREATE2: Invalid argument). Falling back to slow userspace implementation.
wireguard-go wg0
┌──────────────────────────────────────────────────────┐
│ │
│ Running wireguard-go is not required because this │
│ kernel has first class support for WireGuard. For │
│ information on installing the kernel module, │
│ please visit: │
│
https://www.wireguard.com/install/
│
│ │
└──────────────────────────────────────────────────────┘
wg setconf wg0 /dev/stdin
ifconfig wg0 inet 10.10.10.1/24 alias
ifconfig wg0 mtu 1420
ifconfig wg0 up
route -q -n add -inet 10.10.10.2/32 -interface wg0
route -q -n add -inet 0.0.0.0/1 -interface wg0
route -q -n add -inet 128.0.0.0/1 -interface wg0
Backgrounding route monitor
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: [SOLVED] Enabling Wireguard disables other interfaces
«
Reply #3 on:
February 25, 2022, 08:42:46 am »
So this setup enforces default gateway via tunnel. Just check your settings of endpoint.
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
[SOLVED] Enabling Wireguard disables other interfaces