Post by justinOk so what i don't understand is then if you have a DROP statement in
IPTables denying traffic from lets say 1 IP for TCP. What purpose
would it serve also to have and entry in /etc/ hosts.deny for TCP
Wrappers? The only thing I can think of is if for some reason your
system rebooted and IPTABLES didn't start backup for some reason, or
vice versa.
The reason would be that someone could find a way to bypass your
firewall rules, and then you have the tcp wrappers for that. Or
to prevent some kind of spoofing. Obviusly if you are *totally*
sure that the firewall will stop it then there's no use for
tcp wrappers.
But I find quite useful to have wrappers that allow the connections
to some services from just a group of machines, let's say for example
the ssh service and the machines you use to administer a server, or
the monitoring services, as nagios and the console you use to view the
data.
But I don't find it very useful to stop attacks from IPs. So I use
the tpc wrappers with a "drop" policy, using iptables sintax, and
then allow the machines I want.
Post by justinHow would a dictionary attack with a system setup with tcp wrappers
respond? Is there more CPU processing involved with TCP Wrappers with
IPTABLES?
Yes, there's more CPU processsing involving TCP wrappers. You should
use iptables if you can and then tcp wrappers.
The dictionary attacks I was talking about where the ones that tries
to find the password for root on Linux machines through ssh. This is
not easy to stop using iptables, but if you disallow the root logins
from outside the machine (not really tcp wrappers but similar) then
even if you can't stop the attacks you are sure they won't succeed.
Regards.
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
***@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas
http://www.bgsec.com
ESPAÑA
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"