[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] iptables rule



This is weird:

This works:
iptables -t nat -A PREROUTING -p tcp -s 208.50.120.138/32  --dport 80 -j
REDIRECT --to-ports 5000

iptables -t nat -A PREROUTING -p tcp -s 0.0.0.0/0  --dport 81 -j
REDIRECT --to-ports 5000

This does not:

iptables -t nat -A PREROUTING -p tcp -s 0.0.0.0/0  --dport 81 -j
REDIRECT --to-ports 5000

iptables -t nat -A PREROUTING -p tcp -s 208.50.120.138/32  --dport 80 -j
REDIRECT --to-ports 5000

In the 2nd rule it is as if it was never applied on eth0.  What is weird
is that it fails on eth0 but works fine on ppp+ interfaces.  Possibly a
fluke?

Chris