Specifications
18-10 VNS Commands (vnsmode)
Thefollowingexamplecreatesafilter rule1thatisinsertedintotherulelistatposition1,
resequencingthecurrentrule1.ThisfilterruleallowsTCPtrafficinbothdirectionsfromthe
associatedtopology’sinterface‐subnetforports10throu gh20000:
EWC.enterasys.com:vnsmode:default-policy:acfilters# create 1 proto tcp interface-
subnet port 10 2000 in dst out src allow
EWC.enterasys.com:vnsmode:default-policy:acfilters# apply
EWC.enterasys.com:vnsmode:default-policy:acfilters# show
Enable AP filtering: disable
filter 1 proto tcp interface-subnet port 10 2000 in dst out src allow
filter 2 proto udp interface-subnet port 10 2000 in dst out src allow
filter 3 (default) proto none 0.0.0.0 all_ports in dst out src deny
EWC.enterasys.com:vnsmode:default-policy:acfilters#
18.4.3.2 config
UsetheconfigcommandtomodifyanexistingACfilterruleforthedefault‐policy.Theconfig
commandisaccessiblefromwithinthevnsmode:default‐policy:acfilterscontext.
Ifadvancedfiltermodehasbeenenabledwiththeenable‐advance‐filteringcommand(page20‐3),
theAdvancedmodesyntaxispresented.Ifadvancedfilter
modeisnotenabled,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> Specifiestheprotocolforthisfilterrulebynumberorname.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
<ipaddress/mask> SpecifiesanIPaddressandmaskforthisfilter.
interface‐subnet Specifiestha ttheIPaddressandmaskconfiguredfortheassociated
topologywillbeusedforthisfilterrule.