-
Notifications
You must be signed in to change notification settings - Fork 584
/
actions_wireguard.conf
49 lines (43 loc) · 1.11 KB
/
actions_wireguard.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[start]
command:
/usr/local/opnsense/scripts/OPNsense/Wireguard/setup.sh;
/usr/local/etc/rc.d/wireguard start;
/usr/local/etc/rc.routing_configure
parameters:
type:script
message:Starting WireGuard
[stop]
command:/usr/local/etc/rc.d/wireguard stop
parameters:
type:script
message:Stopping WireGuard
[restart]
command:
/usr/local/opnsense/scripts/OPNsense/Wireguard/setup.sh;
/usr/local/etc/rc.d/wireguard restart;
/usr/local/etc/rc.routing_configure
parameters:
type:script
message:Restarting WireGuard
description: Restart WireGuard
[renew]
command:/usr/local/opnsense/scripts/OPNsense/Wireguard/resolve-dns.sh
parameters:
type:script
message:Renew DNS for Wireguard
description:Renew DNS for Wireguard on stale connections
[genkey]
command:/usr/local/opnsense/scripts/OPNsense/Wireguard/genkey.sh
parameters: %s
type:script_output
message:Generating WireGuard keys
[showconf]
command:/usr/local/bin/wg show all
parameters:
type:script_output
message:Show WireGuard config
[showhandshake]
command:/usr/local/bin/wg show all latest-handshakes
parameters:
type:script_output
message:Show WireGuard handshakes