Tip of the day: Check out Special users on how to give trusted users/bots more rights without making them IRCOp. |
Extended server bans
NOTE: Not to be confused with channel bans, see Extended bans for that
IRC Operators (administrators) can place extended server bans (GLINE/KLINE/..) and extended server ban exemptions (ELINE). While classic server bans use the user@host
format, extended server bans look like Extended bans, such as ~account:Account
or ~certfp:1122334455..
. They match a user based on properties other than user or host. Optionally it can be prefixed with %
to act as a Soft ban.
In UnrealIRCd 6 we use names like ~account
, in UnrealIRCd 5 we used letters like ~a
.
Similar functionality exists in mask items in the configuration file (eg allow::mask, oper::mask, etc).
The following extended server ban types are available in UnrealIRCd:
Letter | Name | Module | Explanation |
---|---|---|---|
~a | ~account | extbans/account | If a user is logged in to services with this account name, then it will match. For example |
~A | ~asn | extbans/asn | Ban (or exempt) an ASN. Requires UnrealIRCd 6.1.7 or later As an IRCOp, you can see the AS number of users in WHOIS and when they connect, like in the connect notice [asn: XXX].Example: GLINE ~asn:64496 0 This ISP is banned Or as a soft ban: GLINE %~asn:64496 0 :Too much abuse from this ISP, you are required to log in with an account
|
~C | ~country | extbans/country | Matches if the GEOIP module says the users IP is from this country. For example: |
~r | ~realname | extbans/realname | This ban will match if the realname (gecos) of a user matches the specified string. Since real names may contain spaces you can use a underscore to match a space (and underscore). For example |
~G | ~security-group | extbans/securitygroup | Ban users matching the specified security group. Note that this can ban large amounts of users! For example |
~S | ~certfp | extbans/certfp | When a user is using SSL/TLS with a client certificate then you can match the user by his/her certificate fingerprint (the one you see in /WHOIS). For example: |