Standard IP ACL sample configuration

The following example shows how to create a standard IPv4 ACL that prevents any IP traffic from the finance department from being sent on ports 2, 3, and 4, which are associated with other departments. Traffic from the finance department is identified by each packet’s network IP address.

In this example, you do the following:

  1. Create a standard IPv4 ACL with number 1.
  2. Create a first rule for the ACL with the number 1 with the following criteria:
    • Sequence Number: 1
    • Action: Deny
    • Assign Queue ID: 4
    • Match Every: No
    • EtherType: IPv4
    • Source IP address: 192.168.187.0
    • Source IP Mask: 255.255.0.0
  3. Create a second rule for the ACL with the number 1 with the following criteria:
    • Sequence Number: 2
    • Action: Permit
    • Match Every: Yes
    • EtherType: IPv4
    • Source IP address: 192.168.187.0
    • Source IP Mask: 255.255.0.0
  4. Bind the ACL with the number 1 to ports 2, 3, and 4.

To configure the standard IP ACL example:

  1. Open a web browser and log in to the device UI using your login details and device admin password.

    The Dashboard page displays.

  2. Select Security > ACL > IP ACL > IP ACL/Rules.

    The IP ACL/Rules page displays.

  3. Add a standard IP ACL:
    1. Click the Add New button.

      The Add IP ACL/Rule pop-up window displays.

    2. Leave the Add New ACL only radio button selected.

      This radio button is selected by default.

    3. In the Name field, type 1.
    4. Click the Add button.

      The standard IPv4 ACL is added. By default, an ACL is applied to the inbound direction, which means that the switch examines traffic as it enters the port.

      For more information about adding an IPv4 ACL, see Add an IPv4 ACL.

  4. Click the Add New button.

    The Add IP ACL/Rule pop-up window displays.

  5. Select the Add Rule to existing ACL or Add new ACL and Rule radio button.

    The window adjusts.

  6. Click the Standard IP ACL button.

    This button is selected by default.

  7. Click the Add button.

    The window closes, and the Standard ACL Rule Configuration (1-99) section displays.

  8. Create a first rule for the IP ACL with number 1 with the following criteria:
    1. From the ACL ID/Name menu, select 1.
    2. In the Sequence Number field, type 1.
    3. Select the Deny Action radio button.

      This means that all packets are dropped.

    4. From the Match Every menu, select Disable.

      This means that not all packets need to match the ACL rule that denies packets. You can configure the source IP address and mask for the packets that form an exception and are not dropped.

    5. In the Source IP Address field, type 192.168.187.0 as the IP address that must be compared against the packet’s source IP address.
    6. In the Source IP Mask field, type 255.255.0.0 as the IP mask that must be compared against the packet’s source IP mask.
    7. Click the Save button.

      Your settings are saved and the rule is added.

  9. Click the Add New button.

    The Add IP ACL/Rule pop-up window displays.

  10. Select the Add Rule to existing ACL or Add new ACL and Rule radio button.

    The window adjusts.

  11. Click the Standard IP ACL button.

    This button is selected by default.

  12. Click the Add button.

    The window closes, and the Standard ACL Rule Configuration (1-99) section displays.

  13. Create a second rule for the IP ACL with number 1 with the following criteria:
    1. From the ACL ID/Name menu, select 1.
    2. In the Sequence Number field, type 2.
    3. Select the Permit Action radio button.

      This means that all packets are permitted.

    4. From the Match Every menu, select Enable.

      This means that all packets need to match the ACL rule. You cannot configure other options for this rule.

    5. Click the Save button.

      Your settings are saved and the rule is added.

    For more information about adding a rule for a standard IP ACL, see Add a rule for a standard IPv4 ACL.

  14. Select Security > ACL > IP ACL > IP Binding Configuration.

    The IP Binding Configuration page displays.

  15. Bind the ACL with ID 1 to ports 2, 3, and 4, and assign a sequence number of 1:
    1. From the ACL ID menu, select 1.
    2. In the Sequence Number field, type 1.

      This number defines the order of the IP ACL relative to other ACLs that are bound to the interface.

    3. In the Ports table, click ports 2, 3, and 4.

      The selected ports display blue.

    4. Click the Apply button.

      Your settings are saved.

    By default, this IP ACL is bound on the inbound direction, so it examines traffic as it enters the switch. For more information about binding an IP ACL to an interface, see Configure an IP ACL interface binding.

  16. Select Security > ACL > IP ACL > Binding Table.

    The Binding Table page displays.

  17. Verify that the ACL is bound to ports 2, 3, and 4.

    For more information about IP ACL bindings, see Display or delete IP ACL bindings.

The IP ACL looks for traffic that matches all packets with the source IP address and subnet mask of the finance department’s network and denies it on interfaces 2, 3, and 4 of the switch. The second rule permits all non-finance traffic on the ports. The second rule is required because an explicit deny all rule exists as the lowest priority rule.