LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Please help me to understand this entry in /etc/hosts (https://www.linuxquestions.org/questions/linux-newbie-8/please-help-me-to-understand-this-entry-in-etc-hosts-4175444760/)

gacanepa 01-08-2013 10:20 PM

Please help me to understand this entry in /etc/hosts
 
Hi everyone,
I just checked my /etc/hosts.deny file and found that 2 entries have been added to it:
Code:

ALL:www.cjaas.com
ALL:122.139.60.134

Since I have not added those entries manually, I assume that some daemon must have done it. But which one and why?
I just checked and the IP 122.139.60.134 actually resolves to the domain www.cjaas.com.
According to the following sites
http://spawncamp.net/~jason/deniedhosts.html
http://www.dshield.org/ipinfo.html?ip=122.139.60.134
this IP is from China... should I assume some chinese has tried to break into my system?

btmiller 01-08-2013 11:12 PM

Are you running any services on your system that are accessible to the outside world? The only daemon I know of personally that would do this is DenyHosts, which is meant to stop SSH brute force attacks. Do you have an SSH server and DenyHosts running on the machine?

shivaa 01-08-2013 11:54 PM

I only can say that this IP has blocked and cannot access your system.
Well, I found one useful thread here: http://forums.devshed.com/bsd-help-3...ny-322368.html
Moreover, you can follow manual of hosts.deny for detailed info.
Ain't there firewall setting on this system?

gacanepa 01-09-2013 05:36 AM

Quote:

Originally Posted by btmiller (Post 4865879)
Are you running any services on your system that are accessible to the outside world? The only daemon I know of personally that would do this is DenyHosts, which is meant to stop SSH brute force attacks. Do you have an SSH server and DenyHosts running on the machine?

Yes, I am running an SSH server on that server. It is accessible from the outside but it has been protected, i.e., root login is not allowed via SSH, normal user login is disabled after 3 unsuccessful attempts, and so forth. However, I had never heard about the DenyHosts daemon before.

gacanepa 01-09-2013 05:50 AM

Quote:

Originally Posted by shivaa (Post 4865890)
I only can say that this IP has blocked and cannot access your system.
Well, I found one useful thread here: http://forums.devshed.com/bsd-help-3...ny-322368.html
Moreover, you can follow manual of hosts.deny for detailed info.
Ain't there firewall setting on this system?

That was really helpful, thank you! I will add to your reputation :).


All times are GMT -5. The time now is 12:41 PM.