User Tools

Site Tools


technical:tacacs

This is an old revision of the document!


TACACS+

Linux

Prerequisites

Install FreeRADIUS a

Install

Add TACACS repository to your distribution or install from source.

CentOS 7 Repository

/etc/yum.repos.d/tacacs.repo

[tacacs-plus]
name=TACACS Plus
baseurl=http://li.nux.ro/download/nux/misc/el7/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo dnf update
sudo dnf install tac_plus

Source

wget
tar
cd
make
sudo make install

Configuration

Generate passwd hash using tac_pwd

/etc/tac_plus.conf

accounting file = /var/log/tac_plus.acct
key = <key>

acl = default {
  permit = <subnet>
  
user = <username> {
  name = <name>
  member = <group>
  login = des <hash>

group = <group> {
	default service = permit
	service = exec {
		priv-lvl = 15
		}
	}

Startup

sudo tac_plus -C /etc/tac_plus.conf

Cisco

Server Profile

tacacs server <server>
 address ipv4 <ip>
 key <key>
 timeout <value>
!
aaa group server tacacs+ <group>
 server name <server>
 ip tacacs source-interface <interface>
!
ip tacacs source-interface <interface> 

AAA Profile

aaa authentication login default local
aaa authentication login <list> group <group> local
aaa authorization exec default local 
aaa authorization exec <list> group <group> local 
aaa authorization commands 15 default local 
aaa authorization commands 15 <list> group <group> local 
aaa accounting commands 15 <list> start-stop group <group>

VTY Login Profile

line vty 0 4
 authorization commands 15 <list>
 authorization exec <list>
 accounting commands 15 <list>
 login authentication <list>
 transport input ssh
technical/tacacs.1664219787.txt.gz · Last modified: 2022/09/26 15:16 by jc