Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

IPTables question

  Date: Jan 21    Category: Unix / Linux / Ubuntu    Views: 338
  

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.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on IPTables question Or get search suggestion and latest updates.




Tagged: