Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Wireguard not starting upon firewall start.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wireguard not starting upon firewall start. (Read 5827 times)
5SpeedFun
Full Member
Posts: 119
Karma: 7
Wireguard not starting upon firewall start.
«
on:
March 13, 2021, 03:06:34 pm »
I am not sure if this is a new problem or not, as in the past, after the firewall rebooted I manually restarted all services.
Now I've created an Lo1 interface to bind services to so that has solved most of my startup problems, however wireguard doesn't auto-start. I poked through the logs in the gui but I didn't see anything interested.
There isn't an section of wireguard config to bind it to certain interfaces -- afaik it binds to all. Is anyone else having this issue as well?
Logged
loko3
Newbie
Posts: 3
Karma: 0
Re: Wireguard not starting upon firewall start.
«
Reply #1 on:
September 03, 2021, 10:47:09 am »
The UI wireguard configuration lacks a lot. You should be able to create clients and servers and have it auto start on reboot imho. Feels kind of basic.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Wireguard not starting upon firewall start.
«
Reply #2 on:
September 03, 2021, 11:07:58 am »
Don’t understand your comment. You can create both local and remote peers, and WG starts on boot automatically. What’s missing?
Logged
loko3
Newbie
Posts: 3
Karma: 0
Re: Wireguard not starting upon firewall start.
«
Reply #3 on:
September 03, 2021, 08:38:27 pm »
Running latest version of OpnSense and I need to use wg-quick to be able to connect to my vpn provider (
https://www.ovpn.com/en
). The GUI doesn't work and seems to lack options like DNS config for example.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Wireguard not starting upon firewall start.
«
Reply #4 on:
September 03, 2021, 11:20:33 pm »
Click on “advanced mode” (top left of local config) and you can see additional options like DNS. Tho be aware that setting DNS in WG on OPNsense overwrites resolv.conf, and so changes it for all of OPNsense, not just WG, so it may break resolution depending on what DNS servers are used. That’s why DNS has been moved to Advanced, as usually it shouldn’t be set unless the user knows what they are doing
Not sure why you have an issue with your provider on boot. Mine connects to Mullvad without fail
«
Last Edit: September 03, 2021, 11:22:07 pm by Greelan
»
Logged
loko3
Newbie
Posts: 3
Karma: 0
Re: Wireguard not starting upon firewall start.
«
Reply #5 on:
September 04, 2021, 08:19:00 am »
Thanks got it to work now
«
Last Edit: September 04, 2021, 08:31:34 am by loko3
»
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Wireguard not starting upon firewall start.
«
Reply #6 on:
September 04, 2021, 08:30:50 am »
You probably need to do some reading on WG configuration. This is quite good:
https://github.com/pirate/wireguard-docs
On OPNsense, local is the [Interface] config, and Endpoint is the [Peer] config
You don’t just put the same stuff on each peer. They are at opposite ends of the tunnel
«
Last Edit: September 04, 2021, 08:33:41 am by Greelan
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Wireguard not starting upon firewall start.