
SMG digital gateway
135
format
blacklist_ip
show
last
<COUNT>
0-4095
Show the specified number of addresses
at the end of the Fail2ban blacklist
exit
Return from this configuration submenu
to an upper level
history
Show the history of entered commands
quit
Terminate this CLI session
restart
Restart the fail2ban process
set block_time
<BLCKTIME>
60-352800
Set the time in seconds during which
access from a suspicious address will be
banned
set enable
<ENA>
on/off
Enable/disable the Fail2ban utility
set tries
<TRIES>
1-10
Set
the
maximum
number
of
unsuccessful access attempts to a service
before the host is banned by fail2ban
show
Show the fail2ban settings
start
Start fail2ban
stop
Stop fail2ban
whitelist_ip add
<WHITEIP>
IP
address
in
the
AAA.BBB.CCC.DDD
format
Add an IP address to the Fail2ban
whitelist
whitelist_ip
remove
<WHITEIP>
IP
address
in
the
AAA.BBB.CCC.DDD
format
Remove an IP address from the Fail2ban
whitelist
whitelist _ip show
all
Show the Fail2ban whitelist
whitelist _ip show
first
<COUNT>
0-4095
Show the specified number of addresses
at the beginning of the Fail2ban whitelist
whitelist _ip show
ip
<BLACKIP>
IP
address
in
the
AAA.BBB.CCC.DDD
format
Find the specified address in the Fail2ban
whitelist
whitelist _ip show
last
<COUNT>
0-4095
Show the specified number of addresses
at the end of the Fail2ban whitelist
4.3.10
Firewall Configuration Mode
To enter this mode, execute the
firewall
command in the configuration mode.
SMG4-[CONFIG]> firewall
Entering firewall mode
SMG4-[CONFIG]-[firewall]>
Command
Parameter
Value
Action
?
Show the list of available commands
add profile
<PROF_NAME>
Allowed
characters:
letters, numbers, "_";
63 characters max.
Add a firewall profile
add rule
<direction>
<ENABLE>
<RULE_NAME>
<S_IP>
input
output
enable/disable
Text,
63
characters
max.
AAA.BBB.CCC.DDD
Add a firewall rule
Rule direction
Enable/disable a rule
Rule name
Source IP address