View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Jun 06, 2009 8:50 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I've been reading on the arch wiki, that one needs to use /etc/hosts.allow and /etc/hosts.deny (see this article). I'd like to lock down my R5.5 box a bit by only allowing connections from my LAN IP ranges (say 192.168.0.2 - 192.168.0.5).

Can someone more experienced help me w/ this? When I add the line in /etc/hosts.deny that is suggested in the wiki article, I can't connect at all - this is after I added the exception in /etc/hosts.allow for my IP range for ssh.

Thanks for the help as always!

Example /etc/hosts.allow:
Code:
sshd: 192.168.0.2


Example /etc/hosts.deny:
Code:
ALL: ALL: DENY


I thought the hosts.allow would trump the hosts.deny but apparently not unless I have it setup incorrectly.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
PostPosted: Mon Jun 08, 2009 5:19 pm 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
graysky wrote:
Example /etc/hosts.allow:
Code:
sshd: 192.168.0.2



Try

Code:
sshd : 192.168.0.2 : allow


Mike

P.S. Good article on this at http://closedsrc.org/_static/dn-articles/hosts_allow.html

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu