Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Wireguard /usr/local/bin/wg-quick where is it? Restart wireguard tunnel
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wireguard /usr/local/bin/wg-quick where is it? Restart wireguard tunnel (Read 382 times)
Bytechanger
Full Member
Posts: 234
Karma: 0
Wireguard /usr/local/bin/wg-quick where is it? Restart wireguard tunnel
«
on:
February 13, 2024, 10:56:43 am »
Hi,
I´ve a static wireguard connection to a server with an variable IP-address.
So I set an monit service with testing ping over the tunnel.
I want to restart tunnel with /usr/local/bin/wg-quick up wg2.
This works fine. but after last update /usr/local/bin/wg-quick doesn´t exists anymore.
Where is wg-quick now?
So how I restart a wireguard server?
os-wireguard-go (missing)
Greets
Byte
«
Last Edit: February 13, 2024, 11:32:43 am by Bytechanger
»
Logged
franco
Administrator
Hero Member
Posts: 16046
Karma: 1419
Re: Wireguard /usr/local/bin/wg-quick where is it? Restart wireguard tunnel
«
Reply #1 on:
February 13, 2024, 12:20:02 pm »
wg-quick is a horrible bash script that was removed when we were working on core integration during the 24.1 development phase.
The script you can use is
https://github.com/opnsense/core/blob/master/src/opnsense/scripts/Wireguard/wg-service-control.php
Cheers,
Franco
Logged
Bytechanger
Full Member
Posts: 234
Karma: 0
Re: Wireguard /usr/local/bin/wg-quick where is it? Restart wireguard tunnel
«
Reply #2 on:
February 13, 2024, 01:29:58 pm »
'Thanks, I´ve seen this, but which parameters should I use?
/usr/local/opnsense/scripts/Wireguard/wg-service-control.php restart wg2 ?
What is uuid or vhid is this the interface name??
Greets
byte
«
Last Edit: February 13, 2024, 01:34:13 pm by Bytechanger
»
Logged
franco
Administrator
Hero Member
Posts: 16046
Karma: 1419
Re: Wireguard /usr/local/bin/wg-quick where is it? Restart wireguard tunnel
«
Reply #3 on:
February 13, 2024, 01:48:28 pm »
You can enable the "ID" column from the instances GUI or use the command line for all enabled wireguard instances:
# pluginctl -S wireguard
Cheers,
Franco
Logged
Bytechanger
Full Member
Posts: 234
Karma: 0
Re: Wireguard /usr/local/bin/wg-quick where is it? Restart wireguard tunnel
«
Reply #4 on:
February 13, 2024, 02:20:55 pm »
Thanks, I will try it.
Greets
Byte
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Wireguard /usr/local/bin/wg-quick where is it? Restart wireguard tunnel