»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-03-2004, 08:22 AM   #1 (permalink)
Registered User
 
hav0c's Avatar
 
Join Date: Oct 2001
Location: TN, USA
Posts: 233
hav0c is on a distinguished road
Need help with hosts.allow

Ok i'm trying to have my system reject all connections to SSHD except from 3 IP address(2 are lan IPs). I'm using FreeBSD and it only has a hosts.allow ( it said hosts.deny is deprecated and only to use hosts.allow). Ok so here is what I have in my hosts.allow for sshd.

# sshd server
sshd : 192.168.1.1 : allow
sshd : 192.168.1.2 : allow
sshd : 192.1.xx.xx : allow
sshd : ALL : deny


Ok the last IP address that i'm wanting to allow is from my shell provider. Even after these rules are in place I can still ssh to my box from any IP. I might be doing something worng? Can anyone help?

hav0c is offline   Reply With Quote
Old 04-03-2004, 11:20 AM   #2 (permalink)
Registered User
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,527
crouse is on a distinguished road
Send a message via ICQ to crouse
Your hosts.deny should have a single line that says:

ALL:ALL

Your hosts.allow should have a line for each host you want to allow:

# sshd server
sshd : 192.168.1.1 : allow
sshd : 192.168.1.2 : allow
sshd : 192.1.xx.xx : allow
__________________
The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners. --- Author Unknown.
crouse is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 03:50 PM.