Yes, most modern routers support IP-based Access Control Lists (ACLs), which are used to filter network traffic based on IP addresses, protocols, or ports. ACLs help enhance network security by allowing or denying specific traffic.
An ACL contains a set of rules that define whether traffic is permitted or denied. Each rule typically specifies:
ACLs can be applied to inbound or outbound traffic on an interface (e.g., LAN, WAN).
allow_hosts (Allowing Specific Hosts)The term allow_hosts may not be a universal standard, but it generally refers to creating ACL rules that permit traffic from specific IP addresses (hosts). The exact steps depend on your router’s brand and firmware (e.g., OpenWRT, Cisco, TP-Link, etc.). Below is a generic guide:
Suppose you want to allow only 192.168.1.100 and 192.168.1.101 to access the internet, and block all other devices.
Access Router Admin Panel
Log in to your router’s web interface (usually via http://192.168.1.1 or similar).
Navigate to ACL or Firewall Settings
Look for sections like:
Create an Allow Rule
Add a rule like:
192.168.1.100 (and repeat for 192.168.1.101)0.0.0.0/0)Create a Deny Rule (Optional but Recommended)
Add a rule to block all other traffic:
0.0.0.0/0)0.0.0.0/0)Apply & Save
Ensure the rules are ordered correctly (usually, allow rules first, then deny rules).
If you're managing a network in a cloud environment (e.g., VPCs), Tencent Cloud provides Virtual Private Cloud (VPC) and Security Group features that work similarly to ACLs.
You can configure these rules via the Tencent Cloud Console under VPC > Security Group or VPC > Network ACL.
Would you like a more specific example for a particular router model?