Re: iptables versus hosts denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Miner, Jonathan W (CSC) (US SSA) wrote:


-----Original Message-----
From:	fedora-list-bounces@xxxxxxxxxx on behalf of Ashley M. Kirchner
Sent:	Tue 10/16/2007 12:10 PM
To:	For users of Fedora Core releases
Cc:	
Subject:	iptables versus hosts denied

In terms of performance and when a packet is dropped or denied, what's best to use? iptables or hosts.deny ? Let's assume for a moment here that one has a very long list of IP ranges that are being blocked, would using iptables to deny the ranges work better/faster than having hosts.deny block them? Just wondering ...

-----------------------------

iptables will drop the packet at the kernel level.

An application with tcp_wrapper support will consult the hosts.allow and hosts.deny files to determine whether or not to accept a TCP connection.

I would expect that iptables would be faster since the work is being done within the kernel.

That was my first thought.

But then, if you have lots of rules, the kernel might spend rather a lot of time sorting through them, for every packet or connexion.

tcpwrappers only gets involved when a connexion to the controlled application is attempted.

I'd worry less about performance and more about security. For best results, use both!




--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx

Please do not reply off-list

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux