mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-29 06:29:36 +01:00
sudoers.d/nordvpnd: instead of restarting DNS, allow reloading it. Also IPv6 enabling
This commit is contained in:
parent
c81c1dd7d0
commit
0cb5b0992b
@ -4,6 +4,7 @@
|
|||||||
%nordvpn ALL=NOPASSWD: /bin/systemctl stop nordvpnd.socket
|
%nordvpn ALL=NOPASSWD: /bin/systemctl stop nordvpnd.socket
|
||||||
%nordvpn ALL=NOPASSWD: /bin/systemctl start nordvpnd.socket
|
%nordvpn ALL=NOPASSWD: /bin/systemctl start nordvpnd.socket
|
||||||
%nordvpn ALL=NOPASSWD: /bin/systemctl restart nordvpnd.service
|
%nordvpn ALL=NOPASSWD: /bin/systemctl restart nordvpnd.service
|
||||||
|
%nordvpn ALL=NOPASSWD: /usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||||
# used in my scripts and nordvpn.service.d and yggdrasil.service.d to ensure
|
# used in my scripts and nordvpn.service.d and yggdrasil.service.d to ensure
|
||||||
# it works
|
# it works
|
||||||
%nordvpn ALL=NOPASSWD: /bin/systemctl restart yggdrasil.service
|
%nordvpn ALL=NOPASSWD: /bin/systemctl restart yggdrasil.service
|
||||||
@ -13,8 +14,10 @@
|
|||||||
# Tells Chrony we are connected and thus maybe connects to IPv6 NTP servers
|
# Tells Chrony we are connected and thus maybe connects to IPv6 NTP servers
|
||||||
%nordvpn ALL=NOPASSWD: /usr/bin/chronyc online
|
%nordvpn ALL=NOPASSWD: /usr/bin/chronyc online
|
||||||
# Clearing DNS caches once we are disconnected
|
# Clearing DNS caches once we are disconnected
|
||||||
%nordvpn ALL=NOPASSWD: /bin/systemctl restart unbound.service
|
#%nordvpn ALL=NOPASSWD: /bin/systemctl restart unbound.service
|
||||||
%nordvpn ALL=NOPASSWD: /bin/systemctl restart systemd-resolved.service
|
%nordvpn ALL=NOPASSWD: /usr/sbin/unbound-control reload
|
||||||
|
#%nordvpn ALL=NOPASSWD: /bin/systemctl restart systemd-resolved.service
|
||||||
|
%nordvpn ALL=NOPASSWD: /usr/bin/resolvectl flush-caches
|
||||||
# Tor complains about failures for a while and then notes IP change and
|
# Tor complains about failures for a while and then notes IP change and
|
||||||
# regenerates keys, so it should probably be here too.
|
# regenerates keys, so it should probably be here too.
|
||||||
%nordvpn ALL=NOPASSWD: /bin/systemctl restart tor.service
|
%nordvpn ALL=NOPASSWD: /bin/systemctl restart tor.service
|
||||||
|
Loading…
Reference in New Issue
Block a user