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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to