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 [2022/03/04 13:14]
val
сервис_tacacs [2022/03/05 12:01]
val
Line 14: Line 14:
 ==== Docker ==== ==== Docker ====
  
-    ​* [[https://​www.nixcraft.com/​t/​ubuntu-server-20-04-installing-tacacs/​3452|Ubuntu Server 20.04 Installing TACACS+]] +  ​* [[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]]+  * [[Технология Docker]] 
 +  ​* [[https://​hub.docker.com/​r/​lfkeitel/​tacacs_plus|TACACS+ Docker Image]]
  
 <​code>​ <​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>​ </​code>​
 ===== Настройка ===== ===== Настройка =====
Line 28: Line 45:
 ... ...
  
-# cat /etc/tacacs+/​tac_plus.conf+# cat /etc/tacacs*/​tac_plus.conf
 </​code><​code>​ </​code><​code>​
 key = tackey123 key = tackey123
сервис_tacacs.txt · Last modified: 2022/04/22 07:38 by val