Skip to content

Commit 40b7eeb

Browse files
committed
exec path
1 parent 9b190cf commit 40b7eeb

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

example-config.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Required: use userspace WireGuard implementation (e.g. wireguard-go)
55
userspace = false
6-
# Required: how often should interface stat updates be sent to defguard server (in seconds)
6+
# Required: how often should interface stat updates be sent to Defguard Core (in seconds)
77
stats_period = 60
88
# Required: name of WireGuard interface
99
ifname = "wg0"
@@ -26,14 +26,13 @@ syslog_socket = "/var/run/log"
2626
# Example: Add a default route after WireGuard interface is up:
2727
#post_up = "/path/to/ip route add default via 192.168.1.1 dev wg0"
2828

29-
3029
# Optional: Command which will be run before bringing interface down
3130
# Example: Remove WireGuard-related firewall rules before interface is taken down:
3231
#pre_down = "/path/to/iptables -D INPUT -i wg0 -j ACCEPT"
3332

3433
# Optional: Command which will be run after bringing interface down
3534
# Example: Remove the default route after WireGuard interface is down:
36-
#post_down = "/pat/to/ip route del default via 192.168.1.1 dev wg0"
35+
#post_down = "/path/to/ip route del default via 192.168.1.1 dev wg0"
3736

3837
# A HTTP port that will expose the REST HTTP gateway health status
3938
# STATUS CODES:

freebsd/defguard-gateway

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
name="defguard_gateway"
1010
rcvar=defguard_gateway_enable
11-
command="/usr/local/sbin/defguard-gateway"
11+
command="/usr/local/bin/defguard-gateway"
1212
config="/etc/defguard/gateway.toml"
1313
start_cmd="${name}_start"
1414

linux/defguard-gateway.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Group=defguard
1010
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
1111
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
1212
ExecReload=/bin/kill -HUP $MAINPID
13-
ExecStart=/usr/sbin/defguard-gateway --config /etc/defguard/gateway.toml
13+
ExecStart=/usr/bin/defguard-gateway --config /etc/defguard/gateway.toml
1414
KillMode=process
1515
KillSignal=SIGINT
1616
LimitNOFILE=65536

0 commit comments

Comments
 (0)