blob: db71870919b3b9b3c1e16f4ae1453d10239fc2b0 (
plain) (
tree)
|
|
[Unit]
Description=Configure WireGuard interface
Wants=network-pre.target
Before=network-pre.target nftables.service systemd-networkd.service NetworkManager.service
[Service]
Type=simple
CapabilityBoundingSet=CAP_NET_ADMIN
ExecStartPre=/usr/bin/wg setconf %i /etc/wireguard/%i.conf
ExecStart=/usr/local/bin/wgconfd %i /etc/wireguard/%i.toml
StandardError=journal
SyslogLevelPrefix=true
[Install]
WantedBy=multi-user.target
|