OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: command-forsaken on November 29, 2021, 04:16:29 pm

Title: Wireguard won't start now, help
Post by: command-forsaken on November 29, 2021, 04:16:29 pm
Having some issues getting Wireguard to start. I this guide for mullvad vpn https://schnerring.net/blog/opnsense-baseline-guide-with-vpn-guest-and-vlan-support/ (https://schnerring.net/blog/opnsense-baseline-guide-with-vpn-guest-and-vlan-support/) that is recent but having some issues with Wireguard starting now.

Saw in another thread to run /usr/local/etc/rc.d/wireguard restart to restart it, but here is the output from that command and I'm lost. I have deleted the interfaces and gateways and rebooted and still nothing.

Code: [Select]
ryan@OPNsense:~ % /usr/local/etc/rc.d/wireguard restart
[#] ifconfig wg0 destroy
[#] route del 10.xxx.xxx.27 -iface wg0
route: interface 'wg0' does not exist
[#] ifconfig wg1 destroy
[#] route del 10.xxx.xxx.129 -iface wg1
route: interface 'wg1' does not exist
/usr/local/etc/rc.d/wireguard: WARNING: Can't unload if_wg module.
[#] ifconfig wg create name wg0
[#] wg setconf wg0 /dev/stdin
[#] ifconfig wg0 inet 10.xxx.xxx.28/32 alias
[#] ifconfig wg0 mtu 1420
[#] ifconfig wg0 up
[+] Backgrounding route monitor
[#] route add 10.xxx.xxx.27 -iface wg0
add host 10.xxx.xxx.27: gateway wg0
[#] ifconfig wg create name wg1
[#] wg setconf wg1 /dev/stdin
[#] ifconfig wg1 inet 10.xxx.xxx.130/32 alias
[#] ifconfig wg1 mtu 1420
[#] ifconfig wg1 up
[+] Backgrounding route monitor
[#] route add 10.xxx.xxx.129 -iface wg1
add host 10.xxx.xxx.129: gateway wg1
ifconfig:  SIOCAIFGROUP: Operation not permitted
ifconfig:  SIOCAIFGROUP: Operation not permitted
Title: Re: Wireguard won't start now, help
Post by: hivetech on November 29, 2021, 04:50:49 pm
I've got the same (or maybe similar) problem
Try to remove the peers under your local configuration. That solved it for me
I'm currently investigating further...
Title: Re: Wireguard won't start now, help
Post by: command-forsaken on November 29, 2021, 05:31:29 pm
tried that as well. Gonna go back and check the guide and see if I missed something.