match all private addresses in one rule

Christian Hesse mail at earthworm.de
Sun Feb 20 15:42:07 CET 2005


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.
-- 
Regards,
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : /pipermail/netfilter/attachments/20050220/8b0459f1/attachment.bin


More information about the netfilter mailing list