On Sun, 19 Nov 2006 13:42:39 -0600, Ohmster rearranged some electrons to
form:
> I run a Fedora Core 5 server on a cablemodem and often find in my logs,
> like vsftpd, for example, numerous attempts of people trying to hack into
> the system. Here is an example:
>
> Now when I go back and tail the vsftpd.log file, I can see that the
> hacker is now blocked. I generally choose to block the IP address and
> leave the last part as a wildcard so that when the hacker logs back in
> and gets a different IP address, this should have it all covered.
>
> I think that I can do this with my /etc/hosts.deny file instead of piling
> my xinetd.conf file with tons of IP addresses. I am not quite sure of the
> hosts.deny syntax however. I tried doing this:
>
> [root@ohmster etc]# cat hosts.deny
> #
> # hosts.deny This file describes the names of the hosts which are
> # *not* allowed to use the local INET services, as decided
> # by the '/usr/sbin/tcpd' server.
> #
> # The portmap line is redundant, but it is left to remind you that
> # the new secure portmap uses hosts.deny and hosts.allow. In particular
> # you should know that NFS uses portmap!
>
> ALL: 211.152.65.* 221.12.41.* 221.12.41.32 219.150.32.* 124.0.208.*
> 196.44.193.*
The syntax is OK, but you don't need the asterisk.
>
> Can someone please help me to figure out how to make a good hosts.deny
> file and how to check it so that I know it works?
man hosts.deny
--
David M (dmacchiarolo)
http://home.triad.rr.com/redsled
T/S 53
sled351 Linux 2.4.18-14 has been up 3 days 11:23