Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deny commands in cisco (config) mode #8

Open
Alexandru1982 opened this issue Apr 15, 2016 · 1 comment
Open

Deny commands in cisco (config) mode #8

Alexandru1982 opened this issue Apr 15, 2016 · 1 comment

Comments

@Alexandru1982
Copy link

Hi,
Is it possible to deny commands after entering conf mode on cisco? Does do_auth.ini allow this?
So far i can use "command_deny" only for "conf term" and not for commands available in config mode.

Ex : How do i deny, let's say, #conf t, #(config) interface.* ?

@jathanism
Copy link
Owner

Hey, there and sorry about the ridiculously long reply. If this is even still relevant to you:

  • Yes, by setting priv-lvl=15 this forces auto-enable/superuser on Cisco IOS* devices.
  • For command_deny patterns, you need them to be regular expressions that match the command "root" and any arguments e.g. "interface .*".

Do you want to actually disallow entering config mode? If so you could use a lower privilege level like 1.

See: https://www.cisco.com/c/en/us/support/docs/security-vpn/remote-authentication-dial-user-service-radius/13860-PRIV.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants