Specifications
Creating and Committing a Security ACL
15-4 Configuring and Managing Security ACLs
Creating and Committing a Security ACL
ThesecurityACLsyoucreatecanfilterpacketsbysourceaddress,IPprotocol,porttype,and
othercharacteristics.WhenyouconfigureanACEforasecurityACL,MSSstorestheACEinthe
editbufferuntilyoucommittheACLtobesavedtothepermanentconfiguration.Youmust
commita
securityACLbeforeyoucanapplyittoanauthenticateduser’ssessionormapittoa
VLAN,virtualport,orDistributedAP.EverysecurityACLmusthaveaname.
Setting a Source IP ACL
YoucancreateanACEthatfilterspacketsbasedonthesourceIPaddressandoptionallyapplies
CoSpackethandling.(ForCoSdetails,see“ClassofService”onpage 15‐5.)Youcanalso
determinewheretheACEisplacedinthesecurityACLbyusingthebeforeeditbuffer‐indexor
modifyeditbuffer‐indexvariableswithanindexnumber.Youcanusethehitscountertotrackhow
manypacketstheACLfilters.
ThesimplestsecurityACLpermitsordeniespacketsfromasourceIPaddress:
set security acl ip acl-name {permit [cos cos] | deny} source-ip-addr mask
[before editbuffer-index | modify editbuffer-index] [hits]
Examples
Forexample,tocreateACLacl‐1thatpermitsallpacketsfromIPaddress192.168.1.4,typethe
followingcommand:
RBT-8100#set security acl ip acl-1 permit 192.168.1.4 0.0.0.0
WiththefollowingbasicsecurityACLcommand,youcanspecifyanyoftheprotocolssupported
byMSS:
set security acl ip acl-name {permit [cos cos] | deny} {protocol} {source-ip-addr
mask destination-ip-addr mask} [precedence precedence] [tos tos] [before
editbuffer-index | modify editbuffer-index] [hits]
ThefollowingsamplesecurityACLpermitsallGenericRoutingEncapsulation(GRE)packets
fromsourceIPaddress19 2.168.1.11todes tinationIPaddress192.168.1.15,withaprecedencelevel
of0(routine),andatype‐of‐service(TOS)levelof0(normal).(Formoreinformationabouttype ‐of‐
serviceandprecedencelevels,seethe
RoamAboutMobilitySystemSoftwareCommandLineInterface
Reference.)GREisprotocolnumber47.
RBT-8100# set security acl ip acl-2 permit cos 2 47 192.168.1.11 0.0.0.0
192.168.1.15 0.0.0.0 precedence 0 tos 0 hits
ThesecurityACLacl‐2describedabovealsoappliestheCoSlevel 2(mediumpriority)tothe
permittedpackets.(ForCoS details,see“ClassofService”onpage 15‐5.)Thekeywordhitscounts
thenumberoftimesthisACLaffectspackettraffic.
Table 15‐1onpage 15‐5listscommonIPprotocol
numbers.(ForacompletelistofIPprotocol
namesandnumbers,seewww.iana.org/assignments/protocol‐numbers.)Forcommandsthatset
securityACLsforspecificprotocols,seethefollowinginformation:
•“SettinganICMPACL”onpage 15‐6
•“SettingaTCPACL”onpage 15‐8
•“SettingaUDPACL”onpage 15‐8