How to do it?
Moderator: Supporters
How to do it?
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?
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:Somebody correct me with the ip value if its wrong please.
Code: Select all
allow {
ip NOBODY;
hostname *@*.pl;
class clients;
maxperip 5;
};
ban user { mask ~*@*; reason "Whatever"; } ;
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Allow blocks will not override any kind of banJobe1986 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:Somebody correct me with the ip value if its wrong please.Code: Select all
allow { ip NOBODY; hostname *@*.pl; class clients; maxperip 5; }; ban user { mask ~*@*; reason "Whatever"; } ;
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.
You can use the except ban provided by Stealth below as well.
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.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 will try solution in the first reply.