Skip to contentSkip to conversation

match all private addresses in one rule

DISCUSSION Christian Hesse 1 participant 1 message Feb 20, 2005

lore
Share & tools
lore
#0 lore raw

Hello netfilter folks!

Is there a way to match all private addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) in only one rules? I think of something like

$ iptables -A INPUT -s private -j ACCEPT

I've googled for a solution, but couldn't find one yet.

Please cc as I'm not subscribed to the list.

Signature · 2 lines
Regards,
Christian