diff options
| author | root <root@bergwerk> | 2011-11-29 02:07:12 +0100 |
|---|---|---|
| committer | root <root@bergwerk> | 2011-11-29 02:07:12 +0100 |
| commit | 3d490177e347fb145c9eb4187156d2e67ae85909 (patch) | |
| tree | c7ddafa500b98dd1a34d2157d0de98ed8ef2a132 /cholerab/tincrouting | |
| parent | a95cb58ffa45cf2f25430592a7cc60b70e26f232 (diff) | |
| parent | b1d71c062f1d29b2be3269a5e7e8a67030adfa6a (diff) | |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'cholerab/tincrouting')
| -rw-r--r-- | cholerab/tincrouting | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cholerab/tincrouting b/cholerab/tincrouting new file mode 100644 index 00000000..f430da4e --- /dev/null +++ b/cholerab/tincrouting @@ -0,0 +1,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 |
