Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - malac

#1
How to restart Wireguard VPN Service via commandline

/usr/local/sbin/configctl wireguard stop/start

does not do the job
#2
23.7 Legacy Series / wireguard at start up
September 04, 2023, 06:36:29 PM
after reboot of my opnsense 23.7.3, wireguard does not come up, it shows green in dashboard but is not working

log shows following entry:
/usr/local/opnsense/scripts/Wireguard/wg-service-control.php: The command '/usr/bin/wg setconf 'wg0' '/usr/local/etc/wireguard/wg0.conf'' returned exit code '1', the output was 'Name does not resolve: `xxxyyy.com:53956' Configuration parsing error'

manually restarting wireguard helps and wireguard is running again.
I assume it is a timeing problem, because wireguard starts and at this point i do not have an official IP adress on WAN interface, because DHCP takes some time.

how can i solve this issue?
#3
After upgrade to 23.7.2 Wireguard is not working anymore (wg0 interface missing)

I found the problem, because i configured the wireguard tunnel network also as local network in openvpn, in order to be able to route traffic from wireguard to openvpn and vice versa.
this worked perfect until 23.7.2

With 23.7.2 it doesen't work anymore until i
1. stop openvpn
2. restart wireguard
3. restart openvpn
then it is working again.

any Ideas?
#4
Hi,

do i unterstand it right, that the Wireguard (Group) rules are for all instances (wg1, wg2, ...) and interface rules is for the related instance wg1, wg2?

thx