Skip to contentSkip to conversation

New netfilter match module

RFC Alex Davis 1 participant 1 message Jun 3, 2006 netfilter

lore
Share & tools
lore

Alex Davis

author
#0 lore raw
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 -A try_80 -p tcp -s 10.18.0.0/24 -j RETURN
iptables -t nat -A try_80 -p tcp -s 10.18.20.0/24 -j RETURN
iptables -t nat -A try_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