On 4 Jan 2006 07:08:56 -0800,
(E-Mail Removed) wrote:
> I am trying to prevent access from half the world's idiots through
> hosts.allow using:
>
> sendmail: ALL
> sshd: 192.168.1., 68.155. : allow
> httpd: .us, .com, .net, .gov, .org, .nz, .nl, .mx, .lu, .gb, .de, .ca,
Hmmm, .net, looking at my ip I get
$ host 24.1.202.185
domain name pointer c-24-1-202-185.hsd1.tx.comcast.net
Looks like that would let anyone from comcast.net or covad.net
> .bs, .at, .au : allow
> vsftpd: 192.168.1., 68.155. : allow
Instead of the 192.168.1. I use LOCAL and anyone on my local lan .home.invalid
ALL: LOCAL,.home.invalid
As for your : allow; by defintion, anyone in hosts.allow is allowed.
> I was led to believe I could filter requests by countries via this
> format of TLDs from some FAQ I read. I am still getting pounded
> through ssh and http by sources in Asia.
You will get pounded regardless of what is in your allow/deny.
Your hosts.allow/deny will be used when someone tries to connedt to a
wrapped service.
Put up a firewall, and poke holes in it for what you want.
I am running Mandriva Linux and use webmin to manage the config rules.
You can use blacklist to manage ip ranges, ports, protocol...
> My hosts.deny was
> alternatively empty and ALL: ALL.
hosts.deny needs the
ALL: ALL <=== followed by a carriage return