ACE syntax in RADIUS servers
ACE syntax (standard attribute-92) |
|
IPv6 VSA for standard attribute |
For an example of how to apply this VSA, see Configuring a FreeRADIUS server to filter IPv4 and IPv6 traffic for a client with correct credentials. . |
ACE syntax (legacy VSA-61) |
|
Nas-filter-Rule = : Standard attribute for filtering inbound IPv4 traffic from an authenticated client. When used without the VSA option (below) for filtering inbound IPv6 traffic from the client, drops the IPv6 traffic. See also Nas-filter-rule options. |
|
[ HP-Nas-Rules-IPv6=< 1 | 2 >]:
VSA used in an ACL intended to filter IPv6 traffic. Settings include:
|
|
HP-Nas-filter-Rule= : Legacy VSA for filtering inbound IPv4 traffic only from an authenticated client. Drops inbound IPv6 traffic from the client. See also Nas-filter-rule options. |
|
Must be used to enclose and identify a complete permit or deny ACE syntax statement. For example:
Nas-filter-Rule="deny in tcp from any to 0.0.0.0/0 23" |
|
Specifies whether to forward or drop the identified IP traffic type from the authenticated client. (For information on explicitly permitting or denying all inbound IP traffic from an authenticated client, or for implicitly denying all such IP traffic not already permitted or denied, see Configuration notes.) |
|
in Required keyword specifying that the ACL applies only to the traffic inbound from the authenticated client. |
|
Options for specifying the type of traffic to filter. |
|
ip Applies the ACE to all IP traffic from the authenticated client. |
|
ip-protocol-value This option applies the ACE to the type of IP traffic specified by either a protocol number or by tcp, udp, icmp, or (for IPv4-only) igmp. The range of protocol numbers is 0-255. (Protocol numbers are defined in RFC 2780. For a complete listing, see "Protocol Registries" on the Web site of the Internet Assigned Numbers Authority at ( http://www.iana.com). Some examples of protocol numbers include: 1=ICMP 2=IGMP (IPv4 only) 6=TCP 17=UDP 41=IPv6 |
|
from any Required keywords specifying the (authenticated) client source. (Note that a RADIUS-assigned ACL assigned to a port filters only the inbound traffic having a source MAC address that matches the MAC address of the client whose authentication invoked the ACL assignment.) |
|
to Required destination keyword. |
|
any
|
|
host <ipv4-addr> Specifies a single destination IPv4 address. |
|
<ipv4-addr/<mask > Specifies a series of contiguous destination addresses or all destination addresses in a subnet. The
|
|
host <ipv6-addr> Specifies a single destination IPv6 address. Note: Filtering IPv6 traffic requires the Standard Attribute(Nas-Filter-Rule)with the HP-Nas-Rules-IPv6 VSA set to 1. See Nas-filter-rule options. |
|
<ipv6-addr/<prefix> Specifies a series of contiguous destination addresses or all destination addresses in a subnet. The
|
|
[tcp/udp-port|tcp/udp-port-range] Optional TCP or UDP port specifier. Used when the ACE is intended to filter client TCP or UDP traffic with one or more specific TCP or UDP destination port numbers. You can specify port numbers as individual values and/or ranges. For example, the following ACE shows two ways to deny any UDP traffic from an authenticated client that has a DA of any address and a UDP destination port of 135, 137-139, or 445:
deny in udp from any to any 135, 137-139, 445 deny in 17 from any to any 135, 137-139, 445 |
|
[icmp-type|icmpv6-type] Optional ICMP type specifier. This can be either a keyword or an ICMP type number. For a listing of numbers and types, see Displaying the current RADIUS-assigned ACL activity on the switch. |
|
[cnt] Optional counter specifier for a RADIUS-assigned ACE. When used, the counter increments each time there is a "match" with the ACE. This option does not require that you configure the switch for RADIUS accounting. |