All pastes #932291 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-07 17:26 UTC
rendered paste body
IPTABLES=`type -p iptables`

for i in 51 52 53 54 55; do

        $IPTABLES -t filter $1 FORWARD -s 192.168.0.$i -d 200.201.174.0/24 -p tcp -m tcp --dport 80 -j ACCEPT
        $IPTABLES -t nat $1 PREROUTING -s 192.168.0.$i -d 200.201.174.0/24 -p tcp -m tcp --dport 80 -j DNAT --to-destination 200.201.174.202:80

done