<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Denying sub-commands in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806330#M409358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Prem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query : Will ACS take wild card characters like "permit interface vlan [0-4094]" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective is to block only one command " no interface tunnel". Can you tell me what should be mu exact permit and deny statements. I am attaching a doc for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Aug 2007 07:04:55 GMT</pubDate>
    <dc:creator>dinesh.thathanath</dc:creator>
    <dc:date>2007-08-05T07:04:55Z</dc:date>
    <item>
      <title>Denying sub-commands</title>
      <link>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806327#M409355</link>
      <description>&lt;P&gt;Background : I am running SRA4 image on my 7613 router. The router crashes when i give the command "no interface tunnelx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Soultion Required :&lt;/P&gt;&lt;P&gt;I need to deny a specific command on my router from the config mode : "no interface Tunnel xyz". How can I acheive this?. The user should have privilege to execute "no interface vlan" , "no interface G1/0.1" etc.. I tried doing this but, ACS 4.0 is not looking for the sub-command, for example if i deny no interface tunnel in Shell command set, ACS looks for only two keywords, in this case no and interface....HELP REQUESTED..&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 22:18:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806327#M409355</guid>
      <dc:creator>dinesh.thathanath</dc:creator>
      <dc:date>2019-03-10T22:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Denying sub-commands</title>
      <link>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806328#M409356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try running following debug on the router:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debug aaa authorization&lt;/P&gt;&lt;P&gt;debug tacacs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try to authenticate user and run the command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give you exact syntax of the command which is going to AAA server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 09:46:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806328#M409356</guid>
      <dc:creator>rochopra</dc:creator>
      <dc:date>2007-08-02T09:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Denying sub-commands</title>
      <link>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806329#M409357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possible solution, if you do not want to turn debugs on the device is to see how exactly the commands are being sent to ACS server in accounting logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to do that, put following commands on the device,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aaa accounting commands 0 default start-stop group tacacs+&lt;/P&gt;&lt;P&gt;aaa accounting commands 1 default start-stop group tacacs+&lt;/P&gt;&lt;P&gt;aaa accounting commands 15 default start-stop group tacacs+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then log in using the administrator, and issue all the commands that you *want* the user should be able to access, like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"no interface vlan",&lt;/P&gt;&lt;P&gt;"no interface G1/0.1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then go to ACS &amp;gt; Reports and Activity &amp;gt; TACACS+ Administration Logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll see how exactly the commands are being send. Then make use of this information to apply the restriction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make use of the attached template on how to apply this restriction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no------permit interface vlan [0-9] &lt;CR&gt;&lt;/CR&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 16:12:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806329#M409357</guid>
      <dc:creator>Premdeep Banga</dc:creator>
      <dc:date>2007-08-02T16:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Denying sub-commands</title>
      <link>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806330#M409358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Prem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query : Will ACS take wild card characters like "permit interface vlan [0-4094]" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective is to block only one command " no interface tunnel". Can you tell me what should be mu exact permit and deny statements. I am attaching a doc for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2007 07:04:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806330#M409358</guid>
      <dc:creator>dinesh.thathanath</dc:creator>
      <dc:date>2007-08-05T07:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Denying sub-commands</title>
      <link>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806331#M409359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing that I would like to point, looking at the screen shot is that, the commands are case sensitive and they needs to be defined the exactly the way they are available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that does not mean that while executing those commands you need to type them as case sensitive. During execution of the command, you can execute then normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking as example, the doc that you provided, as you can see that you typed command,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no int tu131&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in ACS logs you got following,&lt;/P&gt;&lt;P&gt;service=shell cmd=no interface Tunnel 131 &lt;CR&gt;&lt;/CR&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which means that you need to create you shell command authorization as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no------deny interface Tunnel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rather then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no------deny interface tunnel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"no------deny interface Tunnel" works in most of the cases, we need not specify the complete syntax. But if its not working, and you can go to more granularity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About your question, from the attached screen shot, you have following option checked,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Unmatched Commands : (*) Permit"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means, where ever you apply this shell command set. *All* the commands will be *allowed*, except from those that you deny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it seems that you are being denied both tunnel and interface on the router, the only reason that I can think of this, the shell command authorization set that you have defined is only valid till,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no-----deny interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"tunnel" is not correct, it should be "Tunnel"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or to be more precise,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no-----deny interface Tunnel [0-9][0-9][0-9] &lt;CR&gt;&lt;/CR&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;considering that you can create 999 tunnels, so above wild card will cover 0-999 tunnels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2007 14:59:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806331#M409359</guid>
      <dc:creator>Premdeep Banga</dc:creator>
      <dc:date>2007-08-05T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Denying sub-commands</title>
      <link>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806332#M409360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works beutifully. Thanks a lot Prem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 11:59:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/denying-sub-commands/m-p/806332#M409360</guid>
      <dc:creator>dinesh.thathanath</dc:creator>
      <dc:date>2007-08-06T11:59:59Z</dc:date>
    </item>
  </channel>
</rss>

