Ah, now it should work.

master
Robert "ar" Gerus 2013-03-11 09:43:26 +01:00
parent 3d02b7f5e1
commit 46e3dc0b9d
1 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
rules() {
echo -- $flag
iptables $flag --table filter -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables $flag --table filter -i eth1 -o eth0 -j ACCEPT
iptables $flag --table nat -A POSTROUTING -s 10.24.0.0/16 -j SNAT --to-source 192.168.0.11
iptables --table filter $flag FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables --table filter $flag FORWARD -i eth1 -o eth0 -j ACCEPT
iptables --table nat $flag POSTROUTING -s 10.24.0.0/16 -j SNAT --to-source 192.168.0.11
}