allow/blocking by mutliable ip address.

These are old archives. They are kept for historic purposes only.
Post Reply
shadowspank

allow/blocking by mutliable ip address.

Post 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;
};
sdamon
Posts: 46
Joined: Tue Jun 07, 2005 7:28 am

Post 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;
};
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

And..

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