I saw an ACLs command which is :

deny ip any

I am confused does this "ip" mean ip address or the "TCP/IP" traffic ? Is this command mean it will drop any packet that is not ip traffic of source address with wildcard mask ?

Thank you.

  • 5
    What operating system is this, and what firewall? Even though the concepts are the same, the syntax may vary. For example, is that a netmask (and possibly the inverse of what it should be) or some kind of range. – John Mahowald Nov 30 '20 at 15:21
  • 1
    If it has source address, then it certainly is ip traffic – Hagen von Eitzen Nov 30 '20 at 23:55

Think looks like an ACL from a Cisco router or switch. Let's break it down:

  1. deny vs. permit is the action to take when the rest of the rule matches. In this case you want to block or drop the packets that match.
  2. ip means all IP packets. This includes TCP, UDP, GRE, IPsec... However, it does not include e.g. IS-IS packets as they do not use IP.
  3. is the source address range consisting of a network address ( and a wildcard mask ( Think of the wildcard mask as the inverse of a subnet mask. In effect this means packets with their source IP address in the network.
  4. any indicates the destination IP address: anything goes here so it is not checked.

For example, to permit HTTP (TCP/80) traffic from to you get this rule:

permit  tcp  80

IP does indeed stand for IP address range. The range is defined using the network that you define + the wildcard that you set.

In your case it will be a range between to

So it will drop all network traffic that has a source IP address between the range above defined.

IP is needed to be declared as previously there were different kind of network traffic that could have been filtered. Nowadays though most traffic is considered to be IP traffic. It is just kept there as a traditional indicator of the type of traffic that is meant to be filtered.

ACLs are very low level implementations of "firewalls". They look at network packet's header information and match them based on the rules defined.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.