Specifications
20-20 policy Commands
filter 1 proto udp 10.10.10.0 255.255.255.0 port 20 2000 in dst out src allow
filter 2 (default) proto none 0.0.0.0 all_ports in dst out none allow
filter 3 (default) proto none 0.0.0.0 all_ports in none out src allow
Thefollowingexamplecreatesacustomfilter1thatisinsertedinto therulelistatposition1
becausearulealreadyexistsforrule1.ThiscustomfilterallowsICMPtypes9through31trafficin
bothdirectionsfromIPaddress20.20.10.0/24:
EWC.enterasys.com:policy:p1:apfilters# create 1 proto icmp 20.20.10.0/24 type 9
31 in dst out src allow
EWC.enterasys.com:policy:p1:apfilters# show
Custom AP Filters: enable
filter 1 proto icmp 20.20.10.0 255.255.255.0 type 9 31 in dst out src allow
filter 2 proto udp 10.10.10.0 255.255.255.0 port 10 2000 in dst out src allow
filter 3 (default) proto none 0.0.0.0 all_ports in dst out none allow
filter 4 (default) proto none 0.0.0.0 all_ports in none out src allow
20.5.11.2 config
UsetheconfigcommandtomodifyanexistingAPcustomfilterforthis<named‐policy>.The
configcommandisaccessiblefromthepolicy:<named‐policy>:apfilterscontext.
Ifadvancedfiltermodehasbeenenabledwiththeenable‐advance‐filteringcommand(page20‐3),
theAdvancedmodesyntaxispresented.Ifadvancedfiltermode
isnotenabled,theBasicmode
syntaxispresented.
Syntax
Basic mode syntax:
config <pos> proto <protocol> (<ipaddress/mask> | interface-subnet | interface-ip)
[(port <port> [<port>]) | (type <type> [<type>])] in (none|dst) out (none|src)
(allow|deny)
Advanced mode syntax:
config <pos> proto <protocol> (<ipaddress/mask> | interface-subnet | interface-ip)
[(port <port> [<port>]) | (type <type> [<type>])] in (none|src|dst|both) out
(none|src|dst|both) (allow|deny)
Parameters
<pos> Specifiesapositionvalueforthisfilterinthefilterlist.Validvaluesare
from0‐255.
proto<protocol> Specifiestheprotocolforthiscustomfilterbynumberorname.Valid
numbervaluesarefrom0‐255.Validnamevaluesare:
• udp - UDP protocol
• tcp - TCP protocol
• ah - Authentication Header protocol
• esp - Encapsulating Security Payload protocol
• all - All protocols
• icmp - ICMP protocol
• gre - Generic Route Encapsulation protocol