mirror of
https://github.com/dadevel/wg-netns
synced 2024-10-30 21:20:12 +00:00
17 lines
331 B
SYSTEMD
17 lines
331 B
SYSTEMD
|
[Unit]
|
||
|
Description=WireGuard Network Namespace (%i)
|
||
|
Wants=network-online.target nss-lookup.target
|
||
|
After=network-online.target nss-lookup.target
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
RemainAfterExit=yes
|
||
|
|
||
|
Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity
|
||
|
ExecStart=wg-netns up %i
|
||
|
ExecStop=wg-netns down %i
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|