Specifications

20-10 policy Commands
Usage
Ifthespecifiedrulepositionalreadycontainsafilterrule,specifyingaruleusingthiscommand
insertsaruleinthespecifiedpositioninthelistandresequencesallrulesbelowthisfilterdownby
oneposition.Usethecreatecommandtoinsertorappend aruleatthespecifiedposition.

Ifadvancedfiltermodehasbeenenabledwiththeenableadvancefilteringcommand(page203),
theAdvancedmodesyntaxispresented.Ifadvancedfiltermodeisnotenabled,theBasicmode
syntaxispresented.
Examples
Thefollowingexampleshowsthedefaultfilterrulesappliedtoapolicy.
EWC.enterasys.com:policy# create p6
EWC.enterasys.com:policy# show p6 acfilter
Enable AP filtering: disable
filter 1 (default) proto none 0.0.0.0 all_ports in dst out none allow
filter 2 (default) proto none 0.0.0.0 all_ports in none out src allow
Thefollowingexamplecreatesa(basicmode)filterrule1thatallowsUDPtrafficinboth
directionsfromIPaddress192.168.10.0/24forports10through2000:
EWC.enterasys.com:policy:Auth:acfilters# create 1 proto udp 192.168.10.0/24 port
10 2000 in dst out src allow
EWC.enterasys.com:policy:Auth:acfilters# apply
EWC.enterasys.com:policy:Auth:acfilters# show
Enable AP filtering: disable
filter 1 proto udp 192.168.10.0 255.255.255.0 port 10 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
Thefollowingexamplecreatesafilter rule1thatisinsertedintotherulelistatposition1
resequencingthecurrentrule1.ThisfilterruleallowsTCPtrafficinbothdirectionsfromIP
address192.168.0.0/16forports10through20000:
EWC.enterasys.com:policy:Auth:acfilters# create 1 proto tcp 192.168.0.0/16 port
10 2000 in dst out src allow
EWC.enterasys.com:policy:Auth:acfilters# show
Enable AP filtering: disable
Basic:out(none|src)
Advanced:
out(none|src|dst|both)
Specifiesthedirectionofpacketflow.outspecifiesapacketflow
fromtheACtotheAP.
nonespecifiesthattheoutdirectiondoesnotapplytothefilterrule.
dstspecifiesthattheIPaddressforthisfilterruleisthedestinationof
thepacket
flow.
srcspecifiesthattheIPaddressforthisfilterruleisthesourceofthe
packetflow.
bothspecifiesthattheIPaddressforthisfilterrulecanbeeither
sourceordestination.
allow|deny Specifieswhetherpacketswillbeallowedordeniedwhenmeetingthe
criteriaspecifiedin
thefilterrule.