Simple ACLs and Simple ACL6s
Configuring Simple ACLs and Simple ACL6s
-
Create simple ACLs or simple ACL6s. Creating simple ACLs or simple ACL6s to drop (deny) packets based on their source IP address and, optionally, their protocol, destination port, or traffic domain.
-
Remove simple ACLs or simple ACL6s. These ACLs cannot be modified once created. If you must modify a simple ACL or simple ACL6, you must remove it and create a one.
CLI procedures
add ns simpleacl <aclname> <aclaction> [-td <positive_integer>] -srcIP <ip_addr> [-destPort <port> -protocol (TCP | UDP)] [-TTL <positive_integer>]
show ns simpleacl [<aclname>]
add ns simpleacl rule1 DENY -srcIP 10.102.29.5 -TTL 600
Done
add ns simpleacl6 <aclname> <aclaction> - srcIPv6 <ipv6_addr|null> [-destPort <port> -protocol ( TCP | UDP )] [-TTL <positive_integer>]
show ns simpleacl6 [<aclname>]
add ns simpleacl6 rule1 DENY –srcIPv6 3ffe:192:168:215::82 -destPort 80 -Protocol TCP -TTL 9000
Done
-
rm ns simpleacl \<aclname>
-
show ns simpleacl
-
rm ns simpleacl6\<aclname>
-
show ns simpleacl6
-
clear ns simpleacl
-
show ns simpleacl
-
clear ns simpleacl6
-
show ns simpleacl6
GUI procedures
-
Navigate to System > Network > ACLs.
-
On the Simple ACLs tab, in the Action list, click Clear.
-
Navigate to System > Network > ACLs.
-
On the Simple ACL6s tab, in the Action list, click Clear.
Displaying Simple ACL and Simple ACL6 Statistics
| Statistics | Indicates |
|---|---|
| ACL match | Packets matching an ACL |
| ACL misses | Packets not matching any ACL |
| ACL count | Number of ACLs that are configured |
CLI procedures
-
stat ns simpleacl
> stat ns simpleacl
SimpleACL Statistics
Rate (/s) Total
SimpleACL hits 0 0
SimpleACL misses 0 51872
SimpleACLs count -- 2
Done
-
stat ns simpleacl6
GUI procedures
Terminating Established Connections
-
You receive a list of blacklisted IP addresses and want to completely block those IP addresses from accessing the NetScaler. In this case, you create simple ACLs or simple ACL6s to block any new connections from these IP addresses, and then flush any existing connections associated with those addresses.
-
You want to terminate many connections from a particular network without taking the time to terminate them one by one.
Before you begin
-
When you run flush, the NetScaler searches through all of its established connections and terminates the connections that match the conditions specified in any of the simple ACLs configured on the ADC.
-
If you plan to create more than one simple ACL and flush existing connections that match any of them, you can minimize the effect on performance by first creating all simple ACLs and then running flush only once.
CLI procedures
-
flush simpleacl -estSessions
-
flush simpleacl6 -estSessions
GUI procedures
-
Navigate to System > Network > ACLs.
-
On the Simple ACLs tab, in the Action list, click Flush.
-
Navigate to System > Network > ACLs.
-
On the Simple ACL6s tab, in the Action list, click Flush.