summaryrefslogtreecommitdiffstats
path: root/cholerab
diff options
context:
space:
mode:
authorlassulus <Lassulus@googlemail.com>2011-11-14 01:04:19 +0100
committerlassulus <Lassulus@googlemail.com>2011-11-14 01:04:19 +0100
commit0fe81e9301efa359fba9f7eae498cc69cbe1f87f (patch)
tree322f946757229e18c6b19a711765cb6964491227 /cholerab
parent3038318c25b4af80df99dd36581fe419b4032109 (diff)
added portforwarding
Diffstat (limited to 'cholerab')
-rw-r--r--cholerab/tincrouting5
1 files changed, 4 insertions, 1 deletions
diff --git a/cholerab/tincrouting b/cholerab/tincrouting
index a26c0354..f430da4e 100644
--- a/cholerab/tincrouting
+++ b/cholerab/tincrouting
@@ -1,6 +1,9 @@
-add 0.0.0.0/0 to hostsfile
+#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