This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
technical:tacacs [2022/09/26 13:25] – jc | technical:tacacs [2022/10/03 08:43] (current) – jc | ||
---|---|---|---|
Line 3: | Line 3: | ||
## Linux | ## Linux | ||
### Prerequisites | ### Prerequisites | ||
- | Install FreeRADIUS | + | Install |
### Install | ### Install | ||
- | Add TACACS | + | TACACS+ may either be installed using an RPM and a supported |
- | * [TACACS Source](https:// | + | * [TACACS Source](https:// |
* [TACACS RHEL 7 Repository](http:// | * [TACACS RHEL 7 Repository](http:// | ||
+ | #### CentOS 7 Repository | ||
+ | |||
+ | / | ||
``` | ``` | ||
[tacacs-plus] | [tacacs-plus] | ||
name=TACACS Plus | name=TACACS Plus | ||
- | baseurl=http:// | + | baseurl=http:// |
enabled=1 | enabled=1 | ||
gpgcheck=1 | gpgcheck=1 | ||
gpgkey=http:// | gpgkey=http:// | ||
+ | ``` | ||
+ | |||
+ | ``` bash | ||
+ | sudo dnf update | ||
+ | sudo dnf install tac_plus | ||
+ | ``` | ||
+ | #### Source | ||
+ | ``` bash | ||
+ | wget https:// | ||
+ | tar xzvf tacacs-F4.0.4.28.tar.gz | ||
+ | cd tacacs-F4.0.4.28 | ||
+ | ./configure | ||
+ | make | ||
+ | sudo make install | ||
``` | ``` | ||
### Configuration | ### Configuration | ||
+ | |||
+ | Generate passwd hash using `tac_pwd` | ||
+ | |||
+ | / | ||
+ | ``` | ||
+ | accounting file = / | ||
+ | key = <key> | ||
+ | |||
+ | acl = default { | ||
+ | permit = < | ||
+ | | ||
+ | user = < | ||
+ | name = < | ||
+ | member = < | ||
+ | login = des < | ||
+ | |||
+ | group = < | ||
+ | default service = permit | ||
+ | service = exec { | ||
+ | priv-lvl = 15 | ||
+ | } | ||
+ | } | ||
+ | ``` | ||
+ | |||
### Startup | ### Startup | ||
+ | |||
+ | ``` bash | ||
+ | sudo tac_plus -C / | ||
+ | ``` | ||
+ | |||
## Cisco | ## Cisco | ||
__Server Profile__ | __Server Profile__ | ||
Line 39: | Line 85: | ||
__AAA Profile__ | __AAA Profile__ | ||
``` | ``` | ||
+ | aaa new-model | ||
aaa authentication login default local | aaa authentication login default local | ||
aaa authentication login < | aaa authentication login < | ||
- | aaa authorization exec default | + | aaa authorization exec default |
- | aaa authorization exec < | + | aaa authorization exec < |
+ | aaa authorization network default if-authenticated | ||
aaa authorization commands 15 default local | aaa authorization commands 15 default local | ||
aaa authorization commands 15 < | aaa authorization commands 15 < |