Understanding Access Control List (ACL)
What is ACL?
Access Control List (ACL) is used to manage network traffic and mitigate attacks by defining rules on routers. Similar to firewalls, ACL filter packets to permit or deny access based on specific criteria. In the context of autonomous driving security, as the CAN network transitions to Gigabit Ethernet, it may become more vulnerable to external threats. Here is some features of ACL:
- Traffic Filtering: ACLs help filter traffic by defining specific rules based on source/destination addresses, protocol types, and service port numbers.
- Firewall Integration: ACLs often work alongside firewalls to enhance security. They play a critical role in controlling inbound and outbound network traffic.
- Network Resource Access: ACLs control access to network resources by defining what can enter or leave the network.
- QoS and Routing Policies: ACLs can also be used for Quality of Service (QoS) and routing policies by identifying subnets and hosts, further organizing traffic.
When to use ACL
Here are typical scenarios where ACL come into play:
- Network Access Control: ACLs limit traffic to and from network resources connected to routers.
- Router Protection: ACLs restrict access through protocols like SNMP, Telnet, and SSH to protect the router itself.
- Subnet and Host Definitions: Used to define policies in subnet and host configurations, including QoS implementation.
- NAT/PAT Functions: ACLs aid in implementing Network Address Translation (NAT) and Port Address Translation (PAT).
- VPN Security: ACLs can define user traffic for IPsec VPNs to ensure secure connections.
How to use ACL
To create effective ACL rules, follow these steps:
- Define the source and destination subnets/hosts.
- Specify the service type for server access or client provision.
- Decide whether to permit or deny the traffic.
- Determine whether the filtering should be applied inbound or outbound.
Example
-
Small subnets should be configured first.
-
ACL entries are assigned in order as they are configured.
-
Routers inspect entries starting from the smallest order number.
-
Example: To block
172.16.1.0/24
, configure:
-
-
The last ACL entry is always
deny any
.-
Example:
-
-
No partial deletion or addition in ACL entries:
-
Use Named ACL to allow partial deletion/addition of entries.
-
Example:
-