public class ConfigBanHandler extends FormHandler
FormHandler.Message_action, _context, _log, _method, _out, _requestWrapper, _session, _settings| Constructor and Description |
|---|
ConfigBanHandler()Constructs the handler. |
| Modifier and Type | Method and Description |
|---|---|
protected void | processForm()Implement this to perform the final processing (in turn, adding formNotice
and formError messages, etc)
Will only be called if _action is non-null and the nonce is valid. |
void | setBadPacketDuration(String val)Set the bad packet ban duration. |
void | setCustomCapabilityBans(String val)Set custom capability bans. |
void | setCustomCountryCodes(String val)Set custom country codes. |
void | setEnableBadPacketBan(String val)Enable or disable bad packet banning. |
void | setEnableBlocklist(String val)Enable or disable the blocklist. |
void | setEnableBlockMyCountry(String val)Enable or disable blocking of the router's own country. |
void | setEnableCorruptConnectionBan(String val)Enable or disable corrupt connection banning. |
void | setEnableCountryBan(String val)Enable or disable country banning. |
void | setEnableExcessiveTunnelRequestsBan(String val)Enable or disable excessive tunnel requests banning. |
void | setEnableLuBan(String val)Enable or disable LU banning. |
void | setEnableNoVersionBan(String val)Enable or disable no-version banning. |
void | setEnablePortHoppingBan(String val)Enable or disable port hopping banning. |
void | setEnableTorBlocklist(String val)Enable or disable the Tor blocklist. |
void | setEnableUnresponsiveFloodfillBan(String val)Enable or disable unresponsive floodfill banning. |
void | setEnableXgBan(String val)Enable or disable XG banning. |
void | setMaxOffenses(String val)Set the maximum offenses. |
void | setOffenseWindow(String val)Set the offense window. |
void | setStartupGrace(String val)Set the startup grace period. |
_t, _t, _t, _x, addFormError, addFormError, addFormErrorNoEscape, addFormErrorNoEscape, addFormNotice, addFormNotice, addFormNoticeNoEscape, addFormNoticeNoEscape, getAllMessages, getErrors, getJettyString, getNotices, isAdvanced, setAction, setContextId, setNonce, setRequestWrapper, setSettings, storeMethod, storeSession, storeWriterprotected void processForm()
FormHandlerprocessForm in class FormHandlerpublic void setBadPacketDuration(String val)
val - the duration in minutespublic void setCustomCapabilityBans(String val)
val - the capability patternspublic void setCustomCountryCodes(String val)
val - the country codespublic void setEnableBadPacketBan(String val)
val - the valuepublic void setEnableBlocklist(String val)
val - the valuepublic void setEnableBlockMyCountry(String val)
val - the valuepublic void setEnableCorruptConnectionBan(String val)
val - the valuepublic void setEnableCountryBan(String val)
val - the valuepublic void setEnableExcessiveTunnelRequestsBan(String val)
val - the valuepublic void setEnableLuBan(String val)
val - the valuepublic void setEnableNoVersionBan(String val)
val - the valuepublic void setEnablePortHoppingBan(String val)
val - the valuepublic void setEnableTorBlocklist(String val)
val - the valuepublic void setEnableUnresponsiveFloodfillBan(String val)
val - the valuepublic void setEnableXgBan(String val)
val - the valuepublic void setMaxOffenses(String val)
val - the maximum number of offensespublic void setOffenseWindow(String val)
val - the offense window in minutespublic void setStartupGrace(String val)
val - the grace period in minutes