Anope IRC Services

Anope Development => Feature Requests => Topic started by: Milliways on October 15, 2006, 07:59:05 PM

Title: vhost bans
Post by: Milliways on October 15, 2006, 07:59:05 PM
We have a channel with some issues regarding banning vhosted users.
If they get banned with the vhost given them by hostserv they can ban evade by turning it off.
What would be great is a channelmode or alike that when a ban is set on a vhost it's changed to either the cloaked host or the realhost (preferably cloaked) so it is not possible to evade it by just mode -x /mode +x
Title:
Post by: Jobe on October 15, 2006, 08:16:31 PM
The problem is with the cloaked host is it is stored in the same param of the user object as the vHost is after being turned on so at any one time Anope can ONLY see the real and cloaked hosts OR the real and virtual hosts. To Anope a cloaked host is in fact an IRCd set vHost.

[Edited on 15-10-2006 by Jobe1986]
Title:
Post by: katsklaw on October 15, 2006, 08:53:49 PM
In addition to what Jobe hs stated.

This is actually an ircd issue. All modes are specificly handled by the ircd. Banning a vhost and bypassing a ban by issuing mode -x is all controlled by the ircd and can happen even in the abscence of Services.

2 quick solutions:

1> stop using vhosts.
2> Using an ircd that doesn't allow the unsetting of assigned usermodes.

Reference #2, Unrealircd has such a feature called set::restrict-usermodes.
Title:
Post by: Milliways on October 16, 2006, 09:25:32 AM
I've used set::restrict-usermodes "x"; which will hopefully settle this issue
Title:
Post by: katsklaw on October 16, 2006, 12:47:00 PM
Keep in mind that ban evasion can still happen by turning off a users vhost. The only difference now is that the evading user has to reconnect to the ircd to get a hidden host. Once that happens you will be able to ban a partial real host.

This is the best that can be done. The only other solution is to stop using vhosts altogether and even then ban evasion can still occur.