OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • Wireguard won't start now, help
« previous next »
  • Print
Pages: [1]

Author Topic: Wireguard won't start now, help  (Read 1054 times)

command-forsaken

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Wireguard won't start now, help
« 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/ 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
Logged

hivetech

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
    • hivetech.ch
Re: Wireguard won't start now, help
« Reply #1 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...
Logged

command-forsaken

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Wireguard won't start now, help
« Reply #2 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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • Wireguard won't start now, help
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2