New netfilter match module
Quoted 4 lines · Amin Azez
Specially, however, could you not solve it using ! with a rule like:
iptables -t nat -A PREROUTING -p tcp -s ! 10.18.0.0/24 --dport 80 \ -j DNAT --to-destination <webserver address>
No traffic from the private network will get routed with this rule, which is not what I want.
Quoted 4 lines
iptables -t nat -A PREROUTING -j
try_80
iptables -t nat -Atry_80-p tcp -s 10.18.0.0/24 -j RETURN
iptables -t nat -Atry_80-p tcp -s 10.18.20.0/24 -j RETURN
iptables -t nat -Atry_80-p tcp --dport 80 -j DNAT --to-destination <webserver address>
Same as above.
-Alex
I code, therefore I am
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com