Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to verify only two commands for cisco IOS ACL Extendend.

They are:

access-list 101  deny   any any

access-list 101  permit udp any 

For this i`m using a syntax checker avaliable on the internet located in

But when i execute the software for checking, it gives me a error in line 1 saying "destination specification ?". I've read many guides for ACL syntax on the internet but i simply don`t get it, i just cant find this error. The destination is specified in the any keyword.

Is there errors in those commands? Or maybe a more reliable way to validate cisco IOS commands?


Edit: new commands are

access-list 101  deny   ip any

access-list 101  permit udp host any 

Same error.

Notice i've maintained the /23 notation on purpose, check the comments. Will try out with your guys suggestion but if that is the right notation it will break my translators work hehe

share|improve this question
up vote 1 down vote accepted

In your first line the error comes from

  1. /23, you can't write this ACL like that, you should use wildcard mask
  2. any after deny, this is the protocol field, any is not valid

In the second line, host is missing before the IP address

Right syntax is :

access-list 101 deny ip any
access-list 101 permit udp host any

I will recommend you to use named access-list if possible, writing ACL as you did is a bit old school, harder to manage and more sensitive to errors. A better way to do this is :

ip access-list extended SOMETHING
  deny ip any
  permit udp host any
share|improve this answer
ok, the host missing ive already fixed but the /23 should work. check‌​800a5b9a.shtml#topic2 ive changed the any to ip too. will redo the syntax check again – jaderanderson Jun 21 '10 at 2:55
Just to clarify, the 101 and 102 notation im using only because its standard input output ACL's. Right now i have no intention on testing them on a true cisco but i need to know if they will work. Ive designed a web app that translates commands for different firewalls and stuff. Thanks for the help – jaderanderson Jun 21 '10 at 3:01
@jader you might not be at the right IOS rev to get the use of the 'slash' notation – Zypher Jun 21 '10 at 3:09
hummmm... maybe its right zypher. Can you tell me when slash notation was accepted? The aclcheck program was last updated in 2005, with the mask as suggested the program works fine – jaderanderson Jun 21 '10 at 3:20
@jaderanderson nothing in the URL you provide tells that /X should work, it only tells that it can be represented like that but not that you can use this represention in an ACL. As far as I know the /X representation on IOS is only supported for prefix-list. – radius Jun 21 '10 at 3:57

access-list 101 deny ip any any
access-list 101 permit udp host any

You had a few problems in here. FIrst, you have to specify a protocol, even if that protocol is just IP. Second problem, you have to use wildcard masks to specify your subnet. Third problem, you must designate either a wildcard mask, any, or preface the host ip address with the word host. Hope this helps.

I'm not sure about a syntax checker. I just wear out the ? key on my keyboard.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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