This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_tacacs [2020/04/24 12:46] val [CentOS/SL] |
сервис_tacacs [2022/03/04 13:14] val |
||
---|---|---|---|
Line 3: | Line 3: | ||
* [[http://www.shrubbery.net/tac_plus/|TACACS+ daemon]] | * [[http://www.shrubbery.net/tac_plus/|TACACS+ daemon]] | ||
* [[https://habrahabr.ru/post/194750/|Другой tacacs+]] | * [[https://habrahabr.ru/post/194750/|Другой tacacs+]] | ||
+ | |||
===== Установка TACACS+ сервера ===== | ===== Установка TACACS+ сервера ===== | ||
- | + | ==== Ubuntu<11/Debian<20 ==== | |
- | ==== Ubuntu/Debian ==== | + | |
<code> | <code> | ||
root@server:~# apt install tacacs+ | root@server:~# apt install tacacs+ | ||
- | |||
- | root@server:~# cd /etc/tacacs+/ | ||
</code> | </code> | ||
+ | ==== Docker ==== | ||
+ | * [[https://www.nixcraft.com/t/ubuntu-server-20-04-installing-tacacs/3452|Ubuntu Server 20.04 Installing TACACS+]] | ||
+ | * [[https://hub.docker.com/r/lfkeitel/tacacs_plus|TACACS+ Docker Image]] | ||
+ | <code> | ||
+ | |||
+ | </code> | ||
===== Настройка ===== | ===== Настройка ===== | ||
Line 24: | Line 28: | ||
... | ... | ||
- | # :> tac_plus.conf | + | # cat /etc/tacacs+/tac_plus.conf |
- | + | ||
- | # cat tac_plus.conf | + | |
</code><code> | </code><code> | ||
key = tackey123 | key = tackey123 | ||
Line 34: | Line 36: | ||
user=root { | user=root { | ||
default service = permit | default service = permit | ||
- | login = des "hPkKtADs9JXn2" | + | login = des "hPkKtADs9JXn2" |
- | service = exec { | + | service = exec { |
priv-lvl = 15 | priv-lvl = 15 | ||
} | } | ||
Line 42: | Line 44: | ||
user=user1 { | user=user1 { | ||
default service = permit | default service = permit | ||
- | login = des "DWRr6OSzYvMH." | + | login = des "DWRr6OSzYvMH." |
- | service = exec { | + | service = exec { |
priv-lvl = 1 | priv-lvl = 1 | ||
} | } | ||
Line 50: | Line 52: | ||
===== Запуск ===== | ===== Запуск ===== | ||
- | |||
- | ==== FreeBSD ==== | ||
- | <code> | ||
- | # /usr/local/etc/rc.d/tac_plus rcvar | ||
- | |||
- | # /usr/local/etc/rc.d/tac_plus start | ||
- | Starting tac_plus. | ||
- | </code> | ||
==== Ubuntu/Debian ==== | ==== Ubuntu/Debian ==== | ||
<code> | <code> | ||
# service tacacs_plus restart | # service tacacs_plus restart | ||
- | </code> | ||
- | |||
- | ==== CentOS/SL ==== | ||
- | <code> | ||
- | root@server:~# cat /etc/rc.local | ||
- | </code><code> | ||
- | ... | ||
- | /usr/local/tac_plus/bin/tac_plus -C /etc/tac_plus.conf | ||
- | |||
- | exit 0 | ||
- | </code><code> | ||
- | root@server:~# /usr/local/tac_plus/bin/tac_plus -C /etc/tac_plus.conf | ||
</code> | </code> | ||
Line 84: | Line 66: | ||
<code> | <code> | ||
- | # cat /etc/tac_plus.conf | + | # cat tac_plus.conf |
</code><code> | </code><code> | ||
key = tackey123 | key = tackey123 |