mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
hack nordvpnd to work with yggdrasil
This commit is contained in:
parent
9fb90d4b30
commit
1d05061bb4
@ -2,3 +2,6 @@
|
||||
%nordvpn ALL=NOPASSWD: /bin/systemctl stop nordvpnd.service
|
||||
%nordvpn ALL=NOPASSWD: /bin/systemctl start nordvpnd.service
|
||||
%nordvpn ALL=NOPASSWD: /bin/systemctl restart nordvpnd.service
|
||||
# used in my scripts and nordvpn.service.d and yggdrasil.service.d to ensure
|
||||
# it works
|
||||
%nordvpn ALL=NOPASSWD: /bin/systemctl restart yggdrasil.service
|
||||
|
4
etc/systemd/system/nordvpnd.service.d/yggdrasil.conf
Normal file
4
etc/systemd/system/nordvpnd.service.d/yggdrasil.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# nordvpnd disables IPv6 which Yggdrasil depends on, so let's restart it.
|
||||
# Note ../yggdrasil.service.d/ enabling IPv6 for all interfaces.
|
||||
[Service]
|
||||
ExecStartPost=systemctl restart yggdrasil.service --quiet
|
7
etc/systemd/system/yggdrasil.service.d/nordvpnd.conf
Normal file
7
etc/systemd/system/yggdrasil.service.d/nordvpnd.conf
Normal file
@ -0,0 +1,7 @@
|
||||
# nordvpnd disables IPv6 for all interfaces and thus breaks Yggdrasil. This
|
||||
# override gives yggdrasil.service two chances to ensure IPv6 is enabled.
|
||||
[Service]
|
||||
ExecStartPre=sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||
ExecStartPost=sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||
# I cannot use this as the interface won't exist until Yggdrasil starts
|
||||
#ExecStartPost=sysctl net.ipv6.conf.yggdrasil.disable_ipv6=0
|
Loading…
Reference in New Issue
Block a user