Page 1 of 1

How to do it?

Posted: Sun Oct 08, 2006 9:08 pm
by k4be
I want to ban (akill, gline etc.) ~*@* excepting *@*.pl but this exception may not affect other z: or g:lines. Using Unreal and Anope. How to do it?

Posted: Mon Oct 09, 2006 4:11 am
by Stealth
Add ban user and except ban blocks to your unrealircd.conf

ban user { mask ~*@*; reason "Whatever"; }
except ban { mask ~*@*.pl }

IIRC those should work properly... If not, you should be able to replace the ~* with "unknown" such as "unknown@*" and "unknown@*.pl"

Posted: Mon Oct 09, 2006 6:22 pm
by k4be
but... if i /gline for example user@*.adsl.tpnet.pl, will this except override this /gline?

Posted: Mon Oct 09, 2006 6:37 pm
by tdw
yep.

Posted: Mon Oct 09, 2006 9:30 pm
by Jobe
Use an allow block to only allow users with a .pl tld to connect then use the ban user line Stealth suggested with no other allow blocks or others changed to a similar hostname mask. For example:

Code: Select all

allow {
	ip             NOBODY;
	hostname       *@*.pl;
	class           clients;
	maxperip 5;
};
ban user { mask ~*@*; reason "Whatever"; } ;
Somebody correct me with the ip value if its wrong please.

Posted: Mon Oct 09, 2006 11:25 pm
by Stealth
tdw wrote:yep.
No

Except ban blocks are only for what is set in the conf and K:Lines. except tkl blocks are for everything else.

Posted: Mon Oct 09, 2006 11:25 pm
by Stealth
Jobe1986 wrote:Use an allow block to only allow users with a .pl tld to connect then use the ban user line Stealth suggested with no other allow blocks or others changed to a similar hostname mask. For example:

Code: Select all

allow {
	ip             NOBODY;
	hostname       *@*.pl;
	class           clients;
	maxperip 5;
};
ban user { mask ~*@*; reason "Whatever"; } ;
Somebody correct me with the ip value if its wrong please.
Allow blocks will not override any kind of ban

Posted: Tue Oct 10, 2006 12:38 am
by Jobe
If you re-read the first post he/she wants to disallow all connections from users with no ident response. This means the ban line givern only bans users with no ident response regardless of whether they have a .pl extention but still allows users with a .pl extention and ident response.

You can use the except ban provided by Stealth below as well.

Posted: Tue Oct 10, 2006 12:30 pm
by k4be
Jobe1986 wrote:If you re-read the first post he/she wants to disallow all connections from users with no ident response. This means the ban line givern only bans users with no ident response regardless of whether they have a .pl extention but still allows users with a .pl extention and ident response.
I want to ban connections with no ident response from any address, but if the user has .pl tld, it should allow him even without an ident.
I will try solution in the first reply.

Posted: Tue Oct 10, 2006 1:45 pm
by Jobe
The first sollution suggested by STealth should work for what you need. And after thinking about it i realized i mis-interpreted what you wanted so i would like to appolagize for any confusion i may have caused.