scripts/bash/usr-local-bin/nordvpn-off

23 lines
594 B
Bash
Executable File

#!/usr/bin/env bash
set -x
nordvpn set killswitch off
nordvpn set autoconnect off
nordvpn disconnect
# Explicitly restore IPv6
sudo sysctl net.ipv6.conf.all.disable_ipv6=0
sudo systemctl stop nordvpnd.socket
sudo systemctl stop nordvpnd.service
sudo systemctl restart iwd.service
sudo systemctl restart systemd-networkd.service
sleep 5
#sudo systemctl restart unbound.service
sudo unbound-control reload
#sudo systemctl restart systemd-resolved.service
sudo resolvectl flush-caches
sleep 5
sudo systemctl restart yggdrasil.service
sudo chronyc online
sudo systemctl restart tor.service
set +x