Page 1 of 1

Invalid bypass flood

Posted: Tue Aug 02, 2011 9:40 pm
by babyjason
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:4660
L2JDP Revision Number:7600

Hello, i recently receive these notifications on gameserver
WARNING 17 com.l2jserver.gameserver.model.actor.L2Character [L2PcInstance] player [xxx] sent invalid bypass 'xxxxx'.

my question is if there are any settings that can automatically KICK or BAN player that causes this? maybe some setting in flood protector?

maybe this setting?

Code: Select all

# ServerBypass - server bypass floodingFloodProtectorServerBypassInterval = 5FloodProtectorServerBypassLogFlooding = FalseFloodProtectorServerBypassPunishmentLimit = 0FloodProtectorServerBypassPunishmentType = noneFloodProtectorServerBypassPunishmentTime = 0 
please help, ty

Re: Invalid bypass flood

Posted: Wed Aug 03, 2011 8:35 am
by babyjason
anybody?:/

Re: Invalid bypass flood

Posted: Wed Aug 03, 2011 5:22 pm
by badboy29
# ---------------------------------------------------------------------------
# Floodprotector Options
# ---------------------------------------------------------------------------
# The following settings can be applied to each feature:
# Interval - interval in gameserver ticks (1 tick = 100ms) in which only one request is allowed
# LogFlooding - whether flooding should be logged (only first ocurrance of flooding and total count of flood requests is logged)
# PunishmentLimit - if number of requests within single interval exceeds specified number then the specified punishment is applied (0 = disables punishment feature)
# PunishmentType - type of the punishment ('none', 'kick', 'ban', 'jail'), valid only if PunishmentLimit is greater than 0
# PunishmentTime - for how many minutes should the player(jail)/account(ban) be punished (0 = forever), valid only for PunishmentType 'jail' or 'ban'
You can set like this:

Code: Select all

# ServerBypass - server bypass floodingFloodProtectorServerBypassInterval = 5FloodProtectorServerBypassLogFlooding = FalseFloodProtectorServerBypassPunishmentLimit = 1FloodProtectorServerBypassPunishmentType = kickFloodProtectorServerBypassPunishmentTime = 0

Re: Invalid bypass flood

Posted: Fri Aug 05, 2011 1:18 am
by Tryskell
Edit this method located in L2PcInstance :

Code: Select all

    public boolean validateBypass(String cmd)    {        if (!Config.BYPASS_VALIDATION)            return true;                synchronized (_validBypass)        {            for (String bp : _validBypass)            {                if (bp == null)                    continue;                                //_log.warning("[BypassValidation]"+getName()+" '"+bp+"'");                if (bp.equals(cmd))                    return true;            }        }                synchronized (_validBypass2)        {            for (String bp : _validBypass2)            {                if (bp == null)                    continue;                                //_log.warning("[BypassValidation]"+getName()+" '"+bp+"'");                if (cmd.startsWith(bp))                    return true;            }        }         Util.handleIllegalPlayerAction(player, player.getName() + " sent invalid bypass.", Config.DEFAULT_PUNISH);        return false;    }
Change DEFAULT_PUNISH for ban or whatever you want.