User Tools

Site Tools


сервис_tacacs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_tacacs [2021/07/23 10:46]
val [FreeBSD/Ubuntu]
сервис_tacacs [2022/03/05 12:00]
val [Docker]
Line 6: Line 6:
 ===== Установка TACACS+ сервера ===== ===== Установка TACACS+ сервера =====
  
-==== Ubuntu/​Debian ====+==== Ubuntu<11/Debian<​20 ​====
  
 <​code>​ <​code>​
Line 12: Line 12:
 </​code>​ </​code>​
  
 +==== Docker ====
 +
 +  * [[https://​www.nixcraft.com/​t/​ubuntu-server-20-04-installing-tacacs/​3452|Ubuntu Server 20.04 Installing TACACS+]]
 +  * [[Технология Docker]]
 +  * [[https://​hub.docker.com/​r/​lfkeitel/​tacacs_plus|TACACS+ Docker Image]]
 +
 +<​code>​
 +# mkdir tacacs_server
 +
 +# cd tacacs_server/​
 +
 +# cat Dockerfile
 +</​code><​code>​
 +FROM openswitch/​tacacs_server
 +
 +RUN printf "​%s\n%s"​ '#​!/​bin/​sh'​ "/​usr/​local/​bin/​tac_plus -G -C /​etc/​tacacs/​tac_plus.conf"​ > /start.sh && chmod +x /start.sh
 +
 +ENTRYPOINT ["/​start.sh"​]
 +</​code><​code>​
 +# docker build -t corp/​tacacs_server .
 +
 +# docker run --name tacacs_server -d -p 49:49 -v /​etc/​tacacs/:/​etc/​tacacs/​ -v /​var/​log/:/​var/​log/​ corp/​tacacs_server
 +
 +# docker update --restart=always tacacs_server
 +</​code>​
 ===== Настройка ===== ===== Настройка =====
  
Line 58: Line 83:
  
 <​code>​ <​code>​
-# cat /etc/tac_plus.conf+# cat tac_plus.conf
 </​code><​code>​ </​code><​code>​
 key = tackey123 key = tackey123
сервис_tacacs.txt · Last modified: 2022/04/22 07:38 by val