This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
network_device_v4=$(ip route show default | awk '/default/ {print $5}') | |
network_device_v6=$(ip -6 route show default | awk '/default/ {print $5}') | |
tunnel_interface="nymtun0" | |
if ! dpkg -s iptables-persistent >/dev/null 2>&1; then | |
sudo apt-get update | |
sudo apt-get install -y iptables-persistent | |
else |