summaryrefslogtreecommitdiffstats
path: root/cholerab/tincrouting
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-11-14 03:34:23 +0100
committermakefu <github@syntax-fehler.de>2011-11-14 03:34:23 +0100
commit8560556d854f777d3cc0cf468d80d0e08860c1e5 (patch)
treef37d0b1d0281016593fdc9daf9e2584f62eb77d7 /cholerab/tincrouting
parent9d7c537fd978f4848480b189ddb21f3b44eedec0 (diff)
parent0fe81e9301efa359fba9f7eae498cc69cbe1f87f (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'cholerab/tincrouting')
-rw-r--r--cholerab/tincrouting9
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