Справочник Пользователя для American Megatrends MAN-STOR-ITX27-CLI

Скачать
Страница из 60
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 <ipaddress> 
-m/--mask <netmask> 
-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 <ipaddress> 
-m/--mask <netmask> 
-s/--sport <start-port> 
-e/--eport <end-port> 
-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<ruleno> 
-i/--ip <IP address> 
-m/--mask <net 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 <rule number>(obtained when viewing the 
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<ruleno> 
-i/--ip <IP address> 
-m/--mask <net mask> 
-s/--sport <start port> 
-e/--eport <end port> 
-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.