[PLUG] IPTables question

frankhunt fh-linux at frankhunt.com
Mon Feb 28 16:24:32 UTC 2011


I want to block an entire class A address set and then allow a few of 
the addresses within that set to have access.
I figured I could block all the addresses in the set then allow the 
specific address(es) that I want.
Like this:

iptables -A INPUT -s nnn.0.0.0/8 -j LOG --log-prefix "IPTABLES DROPPED"
iptables -A INPUT -s nnn.0.0.0/8 -j DROP
iptables -A INPUT -s nnn.0.6.135 -j ACCEPT

But

It is not working and I can't figure out how to do what I want.

Thanks,

-- 
frank hunt
(L0F) R0B-ZAR1
befuddled linux admin
erstwhile photographer
hillsboro oregon




More information about the PLUG mailing list