style: cleaned up some useless debug info

This commit is contained in:
2021-08-13 11:23:12 +01:00
parent 6d4e2031cd
commit 6c4a1a6c1c

View File

@@ -14,7 +14,7 @@ do
sleep 1
done
echo "joining networks: $ZT_NETWORK"
#echo "joining networks: $ZT_NETWORK"
echo "joining $ZT_NETWORK"
@@ -23,18 +23,15 @@ do
echo "joining $ZT_NETWORK failed; trying again in 1s"
sleep 1
done
# Print Client Info
echo "$(zerotier-cli info)"
### Set IPTables to allow NATting
echo "setting up NATting"
sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv4.ip_forward=1 > /dev/null
PHY_IFACE=eth0; ZT_IFACE=$(ls /sys/class/net | grep ^zt)
iptables -t nat -A POSTROUTING -o $PHY_IFACE -j MASQUERADE
iptables -A FORWARD -i $PHY_IFACE -o $ZT_IFACE -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i $ZT_IFACE -o $PHY_IFACE -j ACCEPT
echo "iptables --list-rules"
echo "$(ip a)"
sleep infinity