On 04/09/15 17:13, Brett Parker wrote:
On 04 Sep 16:54, steve-ALUG@hst.me.uk wrote:
On 15/08/15 15:25, steve-ALUG@hst.me.uk wrote:
Hi y’all!
Could someone enlighten me about hosts.allow & hosts.deny please?
If no one can give me a clue re this, could someone give me an idea of the sensible default contents of these files please?
Basically, they're both tedious and boring and you're better off denying things via iptables, really.
I agree and I never modify them from the distro default.
On the odd machine where I don't have iptables installed, I use the routing table to temporarily ban an IP address:
sudo /sbin/route add -net <ip address/subnetmask> reject sudo /sbin/route add -host <ip address> reject
Cheers, Laurie.