11-30-2010 03:08 PM - edited 03-10-2019 05:37 PM
I have a router with the following aaa and tacacs+ config:
aaa new-model
!
!
aaa authentication attempts login 5
aaa authentication fail-message ^CCFailed login. Five consecutive fails will revoke.^C
aaa authentication login default group tacacs+ local
aaa authentication enable default group tacacs+ enable
aaa authorization exec default group tacacs+ if-authenticated
aaa accounting suppress null-username
aaa accounting exec default start-stop group tacacs+
ip tacacs source-interface Loopback0
tacacs-server host 167.64.248.52 single-connection
tacacs-server host 167.64.148.12 single-connection
tacacs-server timeout 6
tacacs-server directed-request
tacacs-server key 7 XXXXXXXXXXXXXXXXXXXXXXXXXX
The loopback address is 167.64.82.53/32, and the following routes and ACLs are in place to ensure that connectivity for ssh and tacacs are in place:
ip route 167.64.148.12 255.255.255.255 212.123.3.156 name Tacacs+ <---- Firewall is the gateway
ip route 167.64.248.52 255.255.255.255 212.123.3.156 name Tacacs+ <---- Firewall is the gateway
access-list 101 remark /**********************************************
access-list 101 remark Allows SSH access for management
access-list 101 remark **********************************************/
access-list 101 permit tcp host 212.123.3.146 any eq telnet
access-list 101 permit tcp host 212.123.3.158 any eq telnet
access-list 101 permit tcp host 212.123.3.146 any eq 22
access-list 101 permit tcp host 212.123.3.156 any eq 22
access-list 101 permit tcp host 212.123.3.158 any eq 22
access-list 101 permit tcp 172.30.127.0 0.0.0.31 any eq 22
access-list 101 permit tcp host 10.1.9.13 any eq 22
access-list 101 permit tcp host 10.6.35.35 any eq 22
access-list 101 permit tcp host 10.11.15.35 any eq 22
access-list 101 deny ip any any log
The following is configured on the ACS server:
AAA Client IP Address | |||||||||||
Shared Secret | |||||||||||
Network Device Group | |||||||||||
Authenticate Using | |||||||||||
| |||||||||||
| |||||||||||
RADIUS Options | |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||
TACACS+ Options | |||||||||||
| |||||||||||
Single Connect Flag support | |||||
---|---|---|---|---|---|
|
The following error is received when users try to connect using TACACS credentials:
Nov 30 17:19:46 EST: TPLUS: Queuing AAA Authentication request 12 for processing
Nov 30 17:19:46 EST: TPLUS: processing authentication start request id 12
Nov 30 17:19:46 EST: TPLUS: Authentication start packet created for 12(alansmit)
Nov 30 17:19:46 EST: TPLUS: Using server 167.64.248.52
Nov 30 17:19:46 EST: TPLUS(0000000C)/0/IDLE/65AB8424: got immediate connect on new 0
Nov 30 17:19:46 EST: TPLUS(0000000C)/0/WRITE/65AB8424: Started 6 sec timeout
Nov 30 17:19:46 EST: TPLUS(0000000C)/0/WRITE: write to 167.64.248.52 failed with errno 257((ENOTCONN))
Nov 30 17:19:46 EST: TPLUS: Authentication start packet created for 12(alansmit)
Nov 30 17:19:52 EST: TPLUS(0000000C)/0/WRITE/65AB8424: timed out
Nov 30 17:19:52 EST: TPLUS(0000000C)/0/WRITE/65AB8424: timed out, clean up
Nov 30 17:19:52 EST: TPLUS(0000000C)/0/65AB8424: Processing the reply packet
The ACS server does not register a failed attempt. Is it likely that this traffic is possibly being blocked by the firewall at IP address 212.123.3.156?
12-01-2010 08:34 PM
This is a little tricky to tell without actually knowing or setting up a capture at the firewall that you mentioned. First thing I would do is to see if the tacacs services on the ACS is started...if you are running acs for windows you will just got to the server that ACS is installed on and see if the CSTacacs services are started. If you are on the solution engine you can verify the services are started when you click on "Service Control" under the System Configuration menu on the left. If the tacacs services are started then you can try to issue a telnet
Hope that helps,
Tarik Admani
12-02-2010 02:45 AM
Hi,
Could you try ticking this: Legacy TACACS+ Single Connect support for this AAA client on your ACS.
Regards.
12-04-2010 03:13 PM
Alan
I am interested in this error message from your original post:
write to 167.64.248.52 failed with errno 257((ENOTCONN))
can you verify that there is IP connectivity between your router loopback interface and the TACACS server (extended ping from the router specifying the source address as loopback 0 and destination as 167.64.248.52
I am also curious. You posted access list 101 but do not tell us how that access list is used. Can you clarify that for us?
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide