Tacacs/AAA/ISE Server: 192.168.10.222
Tacacs Password: tacpassword1
Router’s Management IP: 192.168.0.4 (under mgmt_junos routing instance)
Assumption: There’s an existing local account e.g. “user1”
set system login user user1 class super-user
set system login user user1 authentication plain-text-password
(passwordhere)
1. Configure the tacacs server IP
set system tacplus-server 192.168.10.222 routing-instance mgmt_junosset system tacplus-server 192.168.10.222 secret tacpassword1set system tacplus-server 192.168.10.222 single-connectionset system tacplus-server 192.168.10.222 source-address 192.168.0.4
2. Configure authentication order (if tacacs cannot authenticate, will ask for local access user1)
set system authentication-order tacplusset system authentication-order password
3. Configure accounting:
set system accounting events loginset system accounting events change-logset system accounting events interactive-commands
set system accounting destination tacplus server 192.168.10.222 secret tacpassword1
set system accounting destination tacplus server 192.168.10.222 single-connection
set system accounting destination tacplus server 192.168.10.222 source-address 192.168.0.4
Optional (Firewall settings)
set firewall family inet filter IPv4-FIREWALL term TACACS-PERMIT from source-prefix-list TACACS-SERVERSset firewall family inet filter IPv4-FIREWALL term TACACS-PERMIT from protocol tcpset firewall family inet filter IPv4-FIREWALL term TACACS-PERMIT from source-port tacacsset firewall family inet filter IPv4-FIREWALL term TACACS-PERMIT then count TACACS-PERMITset firewall family inet filter IPv4-FIREWALL term TACACS-PERMIT then acceptset firewall policer tacacs-policer if-exceeding bandwidth-limit 1mset firewall policer tacacs-policer if-exceeding burst-size-limit 10kset firewall policer tacacs-policer then discard
set policy-options prefix-list TACACS-SERVERS apply-path “system tacplus-server <*>”set policy-options prefix-list TACACS-SERVERS 192.168.10.222/32
Note:
If you happen to receive this message below, pls. do the following to fix.
Sample Log:
Sample Log:
Sep 6 10:30:01.044 2020 SRX1-re0 sshd[5580]: %AUTH-3: User remote is authenticated successfully but no logical login-id configured.
Also, for you not to configure local accounts.
FIX:
Create a user account that has no password, but class matching your tacacs (eg: super-user)
Configure:
set system login class super-user idle-timeout 10set system login class super-user permissions allset system login user user101 class super-user
[…] Related link –> Tacacs (Authentication and Accounting) Configuration in Juniper […]
[…] Related link –> Tacacs (Authentication and Accounting) Configuration in Juniper […]