Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
host.deny
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
D0zer
n00b
n00b


Joined: 28 Jul 2013
Posts: 46
Location: South Africa

PostPosted: Thu Apr 09, 2015 6:55 am    Post subject: host.deny Reply with quote

Hi All

I am using DenyHosts to successfully add IP addresses of failed login attempts to /etc/hosts.deny. I have noticed a continued login attempt from the following IP address 43.255.190.*, the last number changes.

If I do a IP lookup its originating from Asia / Hongkong. Is it possible to add wild cards to the /etc/hosts.deny file so I could block the whole range of IP's 43.255.190.*

Thanks in Advance
_________________
Gentoo Newbie
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Thu Apr 09, 2015 7:44 am    Post subject: Reply with quote

Take a look at the section PATTERNS in man hosts.deny.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5587
Location: Removed by Neddy

PostPosted: Fri Apr 10, 2015 10:06 am    Post subject: Reply with quote

If I recall correctly thats been removed.
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6967

PostPosted: Fri Apr 10, 2015 10:12 am    Post subject: Reply with quote

from my knowledge it still works.
but sshd doesn't use hosts.* files anymore (and i think the user is trying to catch them in ssh)
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri Apr 10, 2015 10:54 am    Post subject: Reply with quote

I suggest adding an equivalent rule with iptables.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5587
Location: Removed by Neddy

PostPosted: Fri Apr 10, 2015 12:37 pm    Post subject: Reply with quote

krinn wrote:
from my knowledge it still works.
but sshd doesn't use hosts.* files anymore (and i think the user is trying to catch them in ssh)
yup thats what I mean.
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum