NAME
Ereshkigal::App::Command::cidr_ban - Ban one or more CIDR ranges.
VERSION
Version 0.0.1
SYNOPSIS
# ban on all kur instances
ereshkigal cidr-ban 1.2.3.0/24 10.0.0.0/8
# ban on just the kur instance sshd
ereshkigal cidr-ban --kur sshd 1.2.3.0/24
# an hour long ban
ereshkigal cidr-ban --ban-time 3600 1.2.3.0/24
# a permanent ban
ereshkigal cidr-ban --ban-time 0 1.2.3.0/24
DESCRIPTION
Bans one or more CIDR ranges. The range form of ban, behaving the same way... every kur unless --kur names one, each range answered for separately, re-banning resetting the sentence, and --ban-time in seconds with 0 meaning never.
Host bits are masked off, so 1.2.3.4/24 is taken as 1.2.3.0/24 and the two cannot become separate bans.
Only works on a kur whose backend supports CIDR bans and which has CIDR banning enabled. A kur that cannot or will not do CIDR either drops the command or reports an error per its cidr_silent_drop setting.
METHODS
The App::Cmd hooks this subcommand supplies... command_names, abstract, description, usage_desc, opt_spec, validate_args, and execute.