Page 1 of 1

allow/blocking by mutliable ip address.

Posted: Tue Jan 31, 2006 7:06 pm
by shadowspank
Lets say I have two sites that have static ip address is this how I would allow only the two sites to connect to my server or do I have to do a range like 192.168.1.* and so on thanks in advance

allow {
ip *@192.168.1.5,172.168.1.5;
hostname *@*;
class clients;
maxperip 5;
};

Posted: Tue Jan 31, 2006 8:15 pm
by sdamon
iirc 192.168 and 172. are priavte port ranges. so allowing a range is ok...but if you must, yes you can limit it to a single user. however i think you haveto seperate them..

allow {
ip *@192.168.1.5;
hostname *@*;
class clients;
maxperip 5;
};
allow {
ip *@172.168.1.5;
hostname *@*;
class clients;
maxperip 5;
};

Posted: Tue Jan 31, 2006 8:36 pm
by Syzop
And..

The hostname field should be 'hostname NOMATCH;' or else everyone (with a resolvable hostname) can still connect.