[error] Too broad mask.

These are old archives. They are kept for historic purposes only.
Post Reply
siyavash
Posts: 27
Joined: Wed Jan 18, 2006 12:15 pm

[error] Too broad mask.

Post by siyavash »

Hello,

As the owner of a server, why can't I use bans which are as broad as I want ? I keep getting this error "*** [error] Too broad mask". What if I want to gzline ALL countries except ONE. This happens specially when I try to ban a whole ISP.

Any solutions or idéas how to do such things ?

Thank you in advance for help :? 8)
Mark
Posts: 57
Joined: Mon Dec 26, 2005 4:01 pm

Post by Mark »

Adjusting your allow-block to fit your needs might help?
siyavash
Posts: 27
Joined: Wed Jan 18, 2006 12:15 pm

Post by siyavash »

Could you be more specific ? I'm not sure if I undrestand what you mean. Thank you.
tdw
Posts: 105
Joined: Sat Aug 06, 2005 12:40 pm

Post by tdw »

try doing your gzline in the .conf.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

tdw wrote:try doing your gzline in the .conf.
It wouldn't be a GZline if done in the conf because bans set in the conf file are local ONLY.

Also if you only want to allow certain countries to access your server (which i find odd) then have a look at the hostname parameter of your allow blocks in your conf.

For example this allow block allows all clients with hostmasks ending .uk (users from the UK) and then have no other allow blocks and only users who match that are allowed to connect:

Code: Select all

allow {
	ip             *@*;
	hostname       *@*.uk;
	class           clients;
	maxperip 5;
};
Please bear in mind there are cases of a user coming from a country but their ISP not using country specific TLD's in it's hostnames. For example: AOL use .com no matter what country the user is from. A UK user of AOL would not be able to get in if your allow blocks match only *.uk Also you cannot restrict by IP subnets to a specific country because IP subnets although are relatively near to country assignments there is no specific ranges for each country.

And on a final note:
siyavash wrote:As the owner of a server, why can't I use bans which are as broad as I want ?
the reason for this is to stop anyone who gains your trust and then power banning EVERYBODY from your server using a mask of *@* or *@*.com etc...
siyavash
Posts: 27
Joined: Wed Jan 18, 2006 12:15 pm

Post by siyavash »

Thank you for great answer. But I still think I should be allowed to ban as broad as I want or atleast an option to set in the configuration to be able to allow the admins who want to use broad bans to use it. If it's "MY" IRCd, I should be able to decide how to ban, not the creators of the IRCd. Anyway, I'll probably post a suggestion to the coders.

A question... about the allow block you showed, it locks up everyone but those in allow list so I guess a block section would work like that but block the ones in that section except others, right ? That way I could disallow certain proxies or ISPs which isn't possible with gzline I guess. Am I correct about this ?

One other question while I'm at it, do you know anyway to prevent people without "hostnames" to connect to the server ? ( I created another thread about this though ). I know I could do it with a script or something, but was just wondering if it was possible on the server level. Would probably work much better that way.

Thanks again! :oops: :P :?
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Thank you for great answer. But I still think I should be allowed to ban as broad as I want or atleast an option to set in the configuration to be able to allow the admins who want to use broad bans to use it. If it's "MY" IRCd, I should be able to decide how to ban, not the creators of the IRCd.
This is protection, and it exists on ALL major ircds.

If you want to bypass it, use services AKILL's.

In fact, UnrealIRCd is designed to be used together with services, so if you don't have services installed yet it probably is a good idea to do so now.
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

yes, agreed with syzop.
if you are new to Unrealircd and they didnt have such protection a experenced ircop could really make it impossible for you to reconnect to ur servers.

or even, you could set a ban so broad it wiped out even urself do u know how to over come it while being unable to connect to your server?

^ this is a major problem and was in the past for ircds and peoples lack of understanding of how to over come the bans makes it 100times worse, as a result broadbans r just made forbidden by ircds.
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
siyavash
Posts: 27
Joined: Wed Jan 18, 2006 12:15 pm

Post by siyavash »

White_Magic wrote:...
if you are new to Unrealircd and they didnt have such protection a experenced ircop could really make it impossible for you to reconnect to ur servers...
Yes, that's my point. Make is an option, not ON by default :)
Post Reply