Hi, I'm running UnrealIRCd 6.2.5. I want to automatically redirect unregistered users (not identified to NickServ) from channel #alfa to channel #beta. Is it possible to use "deny channel" with "redirect" and "mask { security-group unknown-users; }" to achieve this? If not, what is the correct syntax to redirect unregistered users to another channel?
Thx
Automatically redirect unregistered
Moderator: Supporters
Re: Automatically redirect unregistered
Hi,
The unknown-users security-group doesn't match only unregistered users but also users that have a new IP even if they're old users (unless they use SASL).
One way to achieve what you want is by doing:
which will redirect users from #alfa to #beta that are not identified to services.
Useful reading: UnrealIRCd Extended bans
The unknown-users security-group doesn't match only unregistered users but also users that have a new IP even if they're old users (unless they use SASL).
One way to achieve what you want is by doing:
Code: Select all
/mode #alfa +b ~forward:#beta:~account:0Useful reading: UnrealIRCd Extended bans
Re: Automatically redirect unregistered
I think you can.
The documentation for deny channel doesn't seem to be up to date, but in the Security-group's documentation, I can see:
The documentation for deny channel doesn't seem to be up to date, but in the Security-group's documentation, I can see:
Doc: https://www.unrealircd.org/docs/Security-group_blockWhere security groups are used
In any mask { } item in the configuration file, like oper Oper { mask { security-group xyz; } ...
That is in: allow::mask, ban user::mask, require authentication::mask, oper::mask, except ban::mask, tld::mask, vhost::mask, link::incoming::mask, deny channel::mask, allow channel::mask, connthrottle::except, blacklist::except, set::restrict::commands::except, set::antimixedutf8::except and set::antirandom::except
Re: Automatically redirect unregistered
I insisted on a permanent direction in the settings, but by setting the room to +P and entering +b, it still remains fixed.
Thanks PeGaSuS for your help
Thanks PeGaSuS for your help
Re: Automatically redirect unregistered
as CrazyCat pointed (and well), you can also use the config. I'd use something like:
I'm just a bit unsure about the mask, but you can test the different variations from here.
Just remember you will need to create a deny channel block for each channel and on every server. OTOH, if you use Anope your users can do /CS SET PERSIST #channel ON and then the channel won't be closed when the last user leaves and therefore any extban will be kept active, which makes this kind of management easier.
Code: Select all
deny channel {
channel "#alfa";
reason "You need to have a registered account to join this channel.";
redirect "#beta";
mask {
exclude-identified yes;
}
}
Just remember you will need to create a deny channel block for each channel and on every server. OTOH, if you use Anope your users can do /CS SET PERSIST #channel ON and then the channel won't be closed when the last user leaves and therefore any extban will be kept active, which makes this kind of management easier.
Re: Automatically redirect unregistered
I tried as CrazyCat suggested and it gives me this error PeGaSuS.
I finally did the Persist mode and the ban and it works fine.
Thanks to both of you for your help.
Code: Select all
config.CONFIG_ERROR_GENERIC [error] /unrealircd/conf/unrealircd.conf:417: deny channel::mask specified without a valueThanks to both of you for your help.
Re: Automatically redirect unregistered
Didn't test but I think you needto create a security group first:
And then your deny:
EDIT does the same error...
Code: Select all
security-group unidentified { identified no; }Code: Select all
deny channel {
channel "#alfa";
reason "You need to have a registered account to join this channel.";
redirect "#beta";
mask { security-group unidentified; }
}Re: Automatically redirect unregistered
Well, thanks to this another bug was fixed and now it should work as expected, if you don't want to use persistent channels.David wrote: Thu Jun 04, 2026 6:03 pm I tried as CrazyCat suggested and it gives me this error PeGaSuS.I finally did the Persist mode and the ban and it works fine.Code: Select all
config.CONFIG_ERROR_GENERIC [error] /unrealircd/conf/unrealircd.conf:417: deny channel::mask specified without a value
Thanks to both of you for your help.