aboutsummaryrefslogblamecommitdiff
path: root/wgconfd@.service
blob: 8d46b7a77f4b45ac6bc1a842d72bfa36511afb09 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                                                                          

                                                           
                                                          




                          
[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/sbin/ip link add %i type wireguard
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