summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <Lassulus@googlemail.com>2011-11-14 01:01:06 +0100
committerlassulus <Lassulus@googlemail.com>2011-11-14 01:01:06 +0100
commit3038318c25b4af80df99dd36581fe419b4032109 (patch)
tree407575b27d9c5431a976c9e31a314460f0d090a1
parent6cb5ecc45d2b73952d441aaf913968d60beac305 (diff)
tincrouting ftw!
-rw-r--r--cholerab/tincrouting6
1 files changed, 6 insertions, 0 deletions
diff --git a/cholerab/tincrouting b/cholerab/tincrouting
new file mode 100644
index 00000000..a26c0354
--- /dev/null
+++ b/cholerab/tincrouting
@@ -0,0 +1,6 @@
+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