From 3038318c25b4af80df99dd36581fe419b4032109 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 14 Nov 2011 01:01:06 +0100 Subject: tincrouting ftw! --- cholerab/tincrouting | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cholerab/tincrouting (limited to 'cholerab/tincrouting') 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 -- cgit v1.2.3