2020-11-15 16:13:46 +00:00
|
|
|
[Unit]
|
|
|
|
Description=WireGuard Network Namespace (%i)
|
|
|
|
Wants=network-online.target nss-lookup.target
|
|
|
|
After=network-online.target nss-lookup.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity
|
2020-12-10 21:17:56 +00:00
|
|
|
Environment=DEBUG_LEVEL=1
|
2020-12-06 21:53:31 +00:00
|
|
|
ExecStart=wg-netns up ./%i.json
|
|
|
|
ExecStop=wg-netns down ./%i.json
|
|
|
|
RemainAfterExit=yes
|
2020-11-15 16:13:46 +00:00
|
|
|
|
2021-05-28 09:31:21 +00:00
|
|
|
WorkingDirectory=%E/wg-netns
|
|
|
|
ConfigurationDirectory=wg-netns
|
|
|
|
|
2020-11-15 16:13:46 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|