Skip to content

Instantly share code, notes, and snippets.

@rogeriopradoj
Last active May 18, 2022 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeriopradoj/d4ea44e85ef5239067f217222f0884e7 to your computer and use it in GitHub Desktop.
Save rogeriopradoj/d4ea44e85ef5239067f217222f0884e7 to your computer and use it in GitHub Desktop.
zerotier vpn raspberry pi nems
ip addr sh zt0 | grep 'inet'
ip a
ip addr sh zthnhjmvln | grep 'inet'
sudo nems-quickfix
sudo sysctl net.ipv4.ip_forward
sudo nano /etc/sysctl.conf
sudo sysctl -p
sudo sysctl net.ipv4.ip_forward
ip link show
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i zt0 -o eth0 -j ACCEPT
sudo iptables -A FORWARD -i zthnhjmvln -o eth0 -j ACCEPT
sudo apt-get install iptables-persistent
sudo netfilter-persistent save
sudo iptables-save
sudo shutdown -r now
ip a
cat /proc/sys/net/ipv4/ip_forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment