summaryrefslogtreecommitdiffstats
path: root/cholerab/tincrouting
blob: f430da4e6eae21b98c2046f2aa9be46f0e6f0cd5 (plain)
1
2
3
4
5
6
7
8
9
#add 0.0.0.0/0 to hostsfile

echo 1 >/proc/sys/net/ipv4/ip_forward

/sbin/iptables -P FORWARD ACCEPT
/sbin/iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE

#for supercool portforwarding:
#example!: /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d jgibbs.dyndns.org --dport 3389 -j DNAT --to 172.17.207.4:3389