Reset Search
 

 

Article

Can an ACL match on a range of port numbers?

« Go Back

Information

 
TitleCan an ACL match on a range of port numbers?
Question
Can an ACL match on a range of port numbers?
Environment
  • EXOS All
  • ACL
Answer
Yes, either a range can be specified. '<', '>', '<=', and '>=' are allowed as well.

For example,
 
entry allow_tcp_range {
    if {
        protocol tcp;
        destination-port 120-150;
    } then {
        permit;
    }
}

entry deny_udp_>1024 {
    if {
        protocol udp;
        destination-port > 1024;
    } then {
        deny;
    }
}

 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255