Firewall configuration – American Megatrends MAN-STOR-ITX27-CLI User Manual
Page 18
![background image](/manuals/35808/18/background.png)
StorTrends® iTX Software CLI (Command Line Interface) (Version 2.7) User’s Guide
12
Firewall Configuration
These commands configure the network firewall options.
Command
Argument
Description
add firewall
-a/--allow or
-b/--block
-i/--ip
-m/--mask
-p/--proto {icmp}
-x/--xml
Add allowed or blocked firewall
rule with given parameters for the
ICMP protocol.
add firewall
-a/--allow
-b/--block
-i/--ip
-m/--mask
-s/--sport
-e/--eport
-p/--proto {tcp/udp}
For example: add –a –i 10.10.1.1 –s 1200 –e 5000 –
p tcp firewall
Add allowed or blocked firewall
rule with given parameters for TCP
and UDP protocols.
edit firewall
-a/--allow or
-b/--block
-r/--rule
-i/--ip
-m/--mask
-p/--proto { icmp}
-x/--xml
For example: edit -a -i 10.0.0.218 -r 1 -m
255.255.255.255 -p icmp -x firewall
Modifies specified allowed or
blocked firewall rule with given
rule number to the given values for
ICMP.
delete firewall
-a/--allow or
-b/--block
-r/--num
list of firewalls via the list command below)
-x/--xml
For example: delete -b -r 1 -x firewall
Deletes allowed or blocked firewall
rule with given rule number.
edit firewall
-a/--allow or
-b/--block
-r/--rule
-i/--ip
-m/--mask
-s/--sport
-e/--eport
-p/--proto {tcp/udp}
-x/--xml
For example: edit -a -i 10.0.0.218 -r 1 -m
255.255.255.255 -s 2000 -e 3000 -p udp -x firewall
Modifies specified allowed or
blocked firewall rule with given
rule number to the given values for
TCP or UDP.
list firewall
Lists all the blocked and allowed
firewall rules.
get firewall
-c/--count
-x/--xml
For example: get -c -x firewall
Retrieves the count of allowed or
blocked firewall rules.