Networking Forums

Networking Forums > Computer Networking > Linux Networking > which log files to check for hosts.deny

Reply
Thread Tools Display Modes

which log files to check for hosts.deny

 
 
Monty loree
Guest
Posts: n/a

 
      11-27-2006, 06:19 PM
I'm trying to get better control of my traffic on linux.

I have placed about 100 IP addresses in my hosts.deny file.
I am curious to know which log file I would use to see if any of these
spammer IP's have been blocked.

Thanks,

 
Reply With Quote
 
 
 
 
Jack Snodgrass
Guest
Posts: n/a

 
      11-27-2006, 06:50 PM
On Mon, 27 Nov 2006 11:19:28 -0800, Monty loree wrote:

> I'm trying to get better control of my traffic on linux.
>
> I have placed about 100 IP addresses in my hosts.deny file.
> I am curious to know which log file I would use to see if any of these
> spammer IP's have been blocked.
>
> Thanks,


depends on your linux distro... /var/log/security maybe...
if your looking to block SPAM... /etc/hosts.deny probably
won't do you any good. I don't think that sendmail uses
this... only things that use tcp wrappers use /etc/hosts.allow
and /etc/hosts.deny.

I use iptables to block access to my mail and web ports from
'bad' users.

jack

--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
Monty loree
Guest
Posts: n/a

 
      11-27-2006, 06:59 PM
Hi Jack,
By spammers I meant scraper sites. They come by and scrape thousands
of my pages.

I want to block the bad guys to give me a better grip of the count of
my good traffic.

I will check /var/log/security.

Many thanks,

Monty Loree

Jack Snodgrass wrote:
> On Mon, 27 Nov 2006 11:19:28 -0800, Monty loree wrote:
>
> > I'm trying to get better control of my traffic on linux.
> >
> > I have placed about 100 IP addresses in my hosts.deny file.
> > I am curious to know which log file I would use to see if any of these
> > spammer IP's have been blocked.
> >
> > Thanks,

>
> depends on your linux distro... /var/log/security maybe...
> if your looking to block SPAM... /etc/hosts.deny probably
> won't do you any good. I don't think that sendmail uses
> this... only things that use tcp wrappers use /etc/hosts.allow
> and /etc/hosts.deny.
>
> I use iptables to block access to my mail and web ports from
> 'bad' users.
>
> jack
>
> --
> D.A.M. - Mothers Against Dyslexia
>
> see http://www.jacksnodgrass.com for my contact info.
>
> jack - Grapevine/Richardson


 
Reply With Quote
 
Monty loree
Guest
Posts: n/a

 
      11-28-2006, 11:41 AM
This is the format that I've got my IP addresses listed.

ALL: 72.20.99.42
ALL: 38.98.120.72
ALL: 193.93.236.7
ALL: 72.14.199.78
ALL: 72.14.199.80
ALL: 203.144.144.164
ALL: 66.249.66.37
ALL: 65.214.44.29
ALL: 72.36.167.42
ALL: 38.102.128.140
ALL: 203.144.144.163
ALL: 195.225.177.40
ALL: 212.42.113.10
ALL: 195.225.177.20
ALL: 64.78.155.100
ALL: 66.249.66.210
ALL: 193.47.80.41

My hosts.allow file looks like this:
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#

 
Reply With Quote
 
Monty loree
Guest
Posts: n/a

 
      11-28-2006, 11:43 AM
BTW... Jack,
I checked /var/log/secure file to see if that checks the hosts.deny

/var/log/secure tests for people trying to log into the system.

Best,

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosts and LMHosts files SW Windows Networking 1 12-23-2005 01:39 PM
hosts.deny problem scrunchy2k@yahoo.com Linux Networking 4 07-16-2005 08:23 PM
what's wrong with this hosts.deny? scrunchy2k@yahoo.com Linux Networking 3 07-13-2005 10:53 AM
hosts.deny and hosts.allow problem dan Linux Networking 3 06-15-2005 07:26 PM
secure transfer of huge files between two hosts? peter pilsl Linux Networking 9 10-12-2004 07:24 PM



1 2 3 4 5 6 7 8 9 10 11