Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2005 15:41:00 -0700
From:      Jim McIver <jmciver@lmtribune.com>
To:        freebsd-questions@freebsd.org
Subject:   hosts.allow
Message-ID:  <427014FC.4010304@lmtribune.com>

next in thread | raw e-mail | index | archive | help
On a FreeBSD 4.10 server I'm trying to allow certain ip's ssh access to 
my server. In hosts.allow I have:

sshd: 192.168. /etc/icanonips.hosts

and in the icanonips.hosts file for the range of ips from 67.62.xxx.130 
to 67.62.xxx.159 I have:


sshd: 67.62.xxx.130/255.255.255.224  67.62.xxx.131/255.255.255.224
sshd: 67.62.xxx.132/255.255.255.224  67.62.xxx.133/255.255.255.224
sshd: 67.62.xxx.134/255.255.255.224  67.62.xxx.135/255.255.255.224
sshd: 67.62.xxx.136/255.255.255.224  67.62.xxx.137/255.255.255.224
sshd: 67.62.xxx.138/255.255.255.224  67.62.xxx.139/255.255.255.224
sshd: 67.62.xxx.140/255.255.255.224  67.62.xxx.141/255.255.255.224
sshd: 67.62.xxx.142/255.255.255.224  67.62.xxx.143/255.255.255.224
sshd: 67.62.xxx.144/255.255.255.224  67.62.xxx.145/255.255.255.224
sshd: 67.62.xxx.146/255.255.255.224  67.62.xxx.147/255.255.255.224
sshd: 67.62.xxx.148/255.255.255.224  67.62.xxx.149/255.255.255.224
sshd: 67.62.xxx.150/255.255.255.224  67.62.xxx.151/255.255.255.224
sshd: 67.62.xxx.152/255.255.255.224  67.62.xxx.153/255.255.255.224
sshd: 67.62.xxx.154/255.255.255.224  67.62.xxx.155/255.255.255.224
sshd: 67.62.xxx.156/255.255.255.224  67.62.xxx.157/255.255.255.224
sshd: 67.62.xxx.158/255.255.255.224  67.62.xxx.159/255.255.255.224

192.168 is my internal network(which works). It's just that the outside 
range of IP's don't work.

I've replaced a portion of the real ip with xxx for this message.

Basically, I'm not sure of the syntax when you use an external file.

thx,

-- 


-Jim McIver



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?427014FC.4010304>