Re: iptables & tcp wrappers

Jorge Alfredo Garcia <[email protected]>
Newsgroups gmane.comp.security.linux
Message-ID <[email protected]>
hello.
you can see the numbers of the different rules with the command:

iptables -L --line-numbers

You can accept a certain ip use ssh and then another rules that drops
all others ips or u can change the policy of the INOMING chain and
accept the valid ip with the rule:

iptables -A INPUT -s X.X.X.X -p tcp --dport 22 -j ACCEPT

I think this kind of blocking ips is better than host allow and host deny.
This tutorial is exelent but is kind of long, u can search for
specific stuff u will need:
http://iptables-tutorial.frozentux.net/iptables-tutorial.html

Good luck!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.