Table Of Contents
Firewall Authentication Proxy for FTP and Telnet Sessions
Restrictions for Firewall Authentication Proxy for FTP and Telnet Sessions
Information About Firewall Authentication Proxy for FTP and Telnet Sessions
Feature Design for FTP and Telnet Authentication Proxy
How to Configure FTP or Telnet Authentication Proxy
Configuring the Authentication Proxy
Verifying FTP or Telnet Authentication Proxy
Monitoring and Maintaining FTP or Telnet Authentication Proxy Sessions
Configuration Examples for FTP and Telnet Authentication Proxy
Authentication Proxy Configuration Example
AAA Server User Profile Examples
Livingston RADIUS User Profiles Example
Ascend RADIUS User Profiles Example
ip auth-proxy auth-proxy-banner
Firewall Authentication Proxy for FTP and Telnet Sessions
Before the introduction of the Firewall Authentication Proxy for FTP and Telnet Sessions feature, users could enable only HTTP when configuring authentication proxy. This feature introduces support for FTP and Telnet, providing users with three protocol options when configuring authentication proxy.
Feature Specifications for the Firewall Authentication Proxy for FTP and Telnet Sessions Feature
Feature History Release Modification12.3(1)
This feature was introduced.
Supported PlatformsFor platforms supported in Cisco IOS Release 12.3(1), consult Cisco Feature Navigator.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Restrictions for Firewall Authentication Proxy for FTP and Telnet Sessions
•
Information About Firewall Authentication Proxy for FTP and Telnet Sessions
•
How to Configure FTP or Telnet Authentication Proxy
•
Configuration Examples for FTP and Telnet Authentication Proxy
Restrictions for Firewall Authentication Proxy for FTP and Telnet Sessions
•
Authentication proxy is an IP-only feature; thus, it comes with only -o3 images.
•
"proxyacl#<n>" is the only supported attribute in the authentication, authorization, and accounting (AAA) server's user configuration.
•
Authentication proxy is subjected only to the traffic that passes through the router; traffic that is destined for the router continues to be authenticated by the existing authentication methods that are provided by Cisco IOS.
Information About Firewall Authentication Proxy for FTP and Telnet Sessions
To configure the Authentication Proxy for FTP and Telnet Sessions feature, you must understand the following concepts:
•
Feature Design for FTP and Telnet Authentication Proxy
Feature Design for FTP and Telnet Authentication Proxy
Authentication proxy for FTP and Telnet Sessions functions like authentication proxy for HTTP; that is, FTP and Telnet are independent components in the Cisco IOS software and can be enabled or disabled on the interface of an unauthenticated host.
Many of the authentication proxy for FTP or Telnet functions are similar to those used with HTTP, such as the interaction between the authentication proxy router and the AAA server during authentication. However, because of protocol differences, FTP and Telnet login methods are different from HTTP.
FTP and Telnet Login Methods
Figure 1 displays a typical authentication proxy topology.
Figure 1 Typical Authentication Proxy Topology
Just as with HTTP, the authentication proxy router intercepts traffic that is sent from the client host. Upon receiving a FTP or Telnet packet, the router will look into its authentication cache to check whether the client host has already been authenticated. If it has been authenticated, the router will forward the client host's traffic to the FTP or Telnet server for additional authentication. If the IP address of the client host is not in the cache of the router, the router will try to authenticate the client host with the AAA server using the username and password of the router.
FTP Login
For FTP login, the client host will be prompted (by the authentication proxy router) for the username and password of the router; the client must respond with the username and password in the following format: "login: proxy_username@ftp_username" and "password: proxy_passwd@ftp_passwd:". The authentication proxy will use the proxy username and password to verify the client's profile against the AAA server's user database. After the client is successfully authenticated with the AAA server, the authentication proxy will pass the FTP (remote) username and password to the FTP server (destination server) for the application server authentication.
A flow chart that depicts an overview of the FTP authentication proxy process is shown in Figure 2.
Figure 2 FTP Authentication Proxy Overview
Telnet Login
For Telnet login, the client host will be prompted (by the authentication proxy router) for the username, followed by the password; the client must respond with the username and password in the following format: "login: proxy_username:" and "password: proxy_passwd):". The username and password will be verified against the AAA server's user database. After the client is successfully authenticated with the AAA server, the Telnet server (destination server) will prompt the client for the username and password of the Telnet server.
A flow chart that depicts an overview of the Telnet authentication proxy process is shown in Figure 3.
Figure 3 Telnet Authentication Proxy Overview
If authentication with the AAA server fails, the proxy will inform the client accordingly. With Telnet, the proxy does not have any interest in the Telnet server's username and password. If the client is authenticated with the AAA server but fails with the Telnet server, the client will not have to authenticate with the AAA server the next time he or she logs into the network; the client's IP address will be stored in the authentication cache. The client will have to authenticate only with the Telnet server.
Note
With FTP, the client must always reenter the local and remote username and password combination every time he or she tries to log into the network—regardless of a successful AAA server authentication.
Absolute Timeout
An absolute timeout value has been added to allow users to configure a window during which the authentication proxy on the enabled interface is active. After the absolute timer expires, the authentication proxy will be disabled regardless of any activity. The absolute timeout value can be configured per protocol (via the ip auth-proxy name command) or globally (via the ip auth-proxy command). The default value of the absolute timeout is zero; that is, the absolute timer is turned off by default, and the authentication proxy is enabled indefinitely and is subject only to the timeout specified by the inactivity-timer keyword.
Note
The inactivity-timer keyword deprecates the auth-cache-time keyword in the ip auth-proxy name and the ip auth-proxy commands.
How to Configure FTP or Telnet Authentication Proxy
To enable FTP or Telnet authentication proxy, you must enable AAA services, configure the FTP or Telnet server, and enable authentication proxy. This section contains the following procedures:
•
Configuring the Authentication Proxy
•
Verifying FTP or Telnet Authentication Proxy
•
Monitoring and Maintaining FTP or Telnet Authentication Proxy Sessions
Configuring AAA
To use authentication proxy, you must configure a AAA server for authentication. The authentication proxy service of the AAA server must also be configured for authorization. To configure these tasks, perform the following steps:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
aaa new-model
4.
aaa authentication login default group tacacs+ group radius
5.
aaa authorization auth-proxy default [[group tacacs+] [group radius]]
6.
aaa authorization exec default [group tacacs+] [group radius]
7.
aaa accounting auth-proxy default stop-only [group tacacs+] [group radius]
8.
access-list access-list-number {permit | deny} {tcp | ip | icmp} host source eq tacacs host destination
DETAILED STEPS
What to Do Next
Ensure that your FTP or Telnet server is enabled and that the user credentials of the client (the username and password) are stored in the server's database.
Configuring the Authentication Proxy
To configure the authentication proxy, perform the following steps:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
ip auth-proxy {inactivity-timer min | absolute-timer min}
4.
ip auth-proxy auth-proxy-banner {ftp | http | telnet} [banner-text]
5.
ip auth-proxy name auth-proxy-name {ftp | http | telnet} [inactivity-timer min | absolute-timer min] [list {acl | acl-name}]
6.
interface type
7.
ip auth-proxy auth-proxy-name
DETAILED STEPS
Command or Action PurposeStep 1
enable
Example:Router> enable
Enables higher privilege levels, such as privileged EXEC mode.
Enter your password if prompted.
Step 2
configure terminal
Example:Router# configure terminal
Enters global configuration mode.
Step 3
ip auth-proxy {inactivity-timer min | absolute-timer min}
Example:Router (config)# ip auth-proxy inactivity-timer 30Sets the global authentication proxy idle timeout values in minutes.
•
inactivity-timer min—Specifies the length of time in minutes that an authentication cache entry is managed after a period of inactivity. Enter a value in the range 1 to 2,147,483,647. The default value is 60 minutes.
•
absolute-timer min—Specifies a window in which the authentication proxy on the enabled interface is active. Enter a value in the range 1 to 65,535 minutes (45 and a half days). The default value is 0 minutes.
Step 4
ip auth-proxy auth-proxy-banner {ftp | http | telnet}[banner-text]
Example:Router (config)# ip auth-proxy auth-proxy-banner ftp helloOptional) Displays the name of the firewall router in the authentication proxy login page. Disabled by default.
•
ftp—Specifies the FTP protocol.
•
http—Specifies the HTTP protocol.
•
telnet—Specifies the Telnet protocol.
•
banner-text—(Optional) A text string that replaces the default banner.
Step 5
ip auth-proxy name auth-proxy-name {ftp | http | telnet} [inactivity-timer min] [absolute-timer min] [list {acl | acl-name}]
Example:Router (config)# ip auth-proxy name ftp_list1 ftp absolute-timer 60 ftp list 102Configures authentication proxy on an interface.
•
ftp—Specifies FTP to trigger that authentication proxy.
•
http—Specifies HTTP to trigger that authentication proxy.
•
telnet—Specifies Telnet to trigger that authentication proxy.
•
inactivity-timer min—Overrides global authentication proxy cache timer for a specific authentication proxy name.
•
absolute-timer min— Overrides the global value specified via the ip auth-proxy command.
•
list {acl | acl-name}—Specifies a standard (1-99), extended (1-199), or named access list to use with the authentication proxy.
Step 6
interface type
Example:Router (config)# interface e0Enters interface configuration mode by specifying the interface type on which to apply the authentication proxy.
Step 7
ip auth-proxy auth-proxy-name
Example:Router(config-if)# ip auth-proxy authproxyrule
In interface configuration mode, applies the named authentication proxy rule at the interface.
This command enables the authentication proxy rule with that name.
Verifying FTP or Telnet Authentication Proxy
To verify your FTP or Telnet authentication proxy configuration, perform the following optional steps:
SUMMARY STEPS
1.
enable
2.
show ip auth-proxy configuration
3.
show ip auth-proxy cache
DETAILED STEPS
Monitoring and Maintaining FTP or Telnet Authentication Proxy Sessions
To monitor FTP or Telnet authentication proxy sessions, perform the following optional steps:
SUMMARY STEPS
1.
enable
2.
debug ip auth-proxy {detailed | ftp | function-trace | object-creation | object-deletion | telnet | timers}
DETAILED STEPS
Configuration Examples for FTP and Telnet Authentication Proxy
This section provides the following configuration examples:
•
Authentication Proxy Configuration Example
•
AAA Server User Profile Examples
Authentication Proxy Configuration Example
The following example shows how to configure your router for authentication proxy:
aaa new-modelaaa authentication login default group tacacs+aaa authorization exec default group tacacs+aaa authorization auth-proxy default group tacacs+enable password lab!ip inspect name pxy_test ftpip auth-proxy name pxy auth-cache-time 1!interface Ethernet0/0ip address 209.165.200.225 255.255.255.224ip access-group 105 inno ip directed-broadcastip inspect pxy_test inip auth-proxy pxyno shut!interface Ethernet0/1ip address 209.165.200.225 255.255.255.224ip access-group 102 inno ip directed-broadcastno shut!ip http authentication aaa!access-list 102 permit anyaccess-list 102 permit tcp host 209.165.200.234 eq tacacs anyaccess-list 102 deny tcp any anyaccess-list 102 deny udp any anyaccess-list 102 permit ip any anyaccess-list 105 permit tcp any any eq wwwaccess-list 105 permit ip any anyaccess-list 105 deny tcp any anyaccess-list 105 deny udp any anydialer-list 1 protocol ip permitdialer-list 1 protocol ipx permit!tacacs-server host 209.165.200.234tacacs-server key cisco!line con 0transport input nonelogin authentication specialline aux 0line vty 0 4password labAAA Server User Profile Examples
This section includes examples of the authentication proxy user profile entries on the AAA servers. The "proxyacl" entries define the user access privileges. After the user has successfully used the authentication proxy to log in, these entries are transferred to the firewall router. Each entry in the profile must specify "permit" access for the service or application. The source address in each entry is set to "any", which is replaced with the IP address of the authenticating host when the profile is downloaded to the firewall. The privilege level must be set to 15 for all AAA users.
This section contains the following examples:
•
TACACS+ User Profiles Example
•
Livingston RADIUS User Profiles Example
•
Ascend RADIUS User Profiles Example
TACACS+ User Profiles Example
The following example are sample TACACS+ user profiles:
default authorization = permitkey = ciscouser = http_1 {default service = permitlogin = cleartext testservice = exec{priv-lvl = 15inacl#4="permit tcp any host 209.165.200.234 eq 23"inacl#5="permit tcp any host 209.165.200.234 eq 20"inacl#6="permit tcp any host 209.165.200.234 eq 21"inacl#3="deny -1"}service = auth-proxy{priv-lvl=15proxyacl#4="permit tcp any host 209.165.201.1 eq 23"proxyacl#5="permit tcp any host 209.165.201.1 eq 20"proxyacl#6="permit tcp any host 209.165.201.1 eq 21"proxyacl#7="permit tcp any host 209.165.201.1 eq 25"}}user = http {login = cleartext testservice = auth-proxy{priv-lvl=15proxyacl#4="permit tcp any host 209.165.201.1 eq 23"proxyacl#5="permit tcp any host 209.165.201.1 eq 20"proxyacl#6="permit tcp any host 209.165.201.1 eq 21"}}user = proxy_1 {login = cleartext testservice = auth-proxy{priv-lvl=14}}user = proxy_3 {login = cleartext testservice = auth-proxy{priv-lvl=15}}Livingston RADIUS User Profiles Example
The following examples are sample user profiles for the Livingston RADIUS server:
#--------------- Proxy user ---------------------------------http Password = "test" User-Service-Type=Outbound-Usercisco-avpair = "auth-proxy:priv-lvl=15",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq 23"http_1 Password = "test"User-Service-Type = Shell-User,User-Service-Type=Dialout-Framed-User,cisco-avpair = "shell:priv-lvl=15",cisco-avpair = "shell:inacl#4=permit tcp any host 209.165.200.234eq 23cisco-avpair = "auth-proxy:priv-lvl=15",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq 23"http_fail Password = "test" User-Service-Type=Outbound-Usercisco-avpair = "auth-proxy:priv-lvl=14",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq 23"proxy Password = "cisco" User-Service-Type=Outbound-User cisco-avpair = "auth-proxy:proxyacl#4=permit tcp any any eq 20"Ascend RADIUS User Profiles Example
The following examples are sample user profiles for the Ascend RADIUS server:
#--------------- Proxy user ---------------------------------http Password = "test" User-Service=Dialout-Framed-Usercisco-avpair = "auth-proxy:priv-lvl=15",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq 23"http_2 Password = "test"User-Service=Dialout-Framed-Usercisco-avpair = "auth-proxy:priv-lvl=15",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq 23",cisco-avpair = "shell:inacl#4=permit tcp any host 209.165.200.234 eq 25"http_1 Password = "test"User-Service=Dialout-Framed-User,cisco-avpair = "shell:inacl#4=permit tcp any host 209.165.200.234 eq 23",cisco-avpair = "auth-proxy:priv-lvl=15",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq 23"http_fail Password = "test" User-Service=Dialout-Framed-Usercisco-avpair = "auth-proxy:priv-lvl=14",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq 23"cisco-avpair = "auth-proxy:proxyacl#1=permit tcp any any eq 23",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq ftp",cisco-avpair = "auth-proxy:proxyacl#4=permit tcp any any eq 20"#------------------------------------------------------------proxy Password = "cisco" User-Service = Dialout-Framed-Usercisco-avpair = "auth-proxy:priv-lvl=15",cisco-avpair = "auth-proxy:priv-lvl=15",cisco-avpair = "auth-proxy:proxyacl#1=permit tcp any any eq 26",cisco-avpair = "auth-proxy:proxyacl#3=permit tcp any any eq ftp",Additional References
The following sections provide additional references related to the Firewall Authentication Proxy for FTP and Telnet Sessions feature:
•
MIBs
•
RFCs
Related Documents
Standards
MIBs
MIBs MIBs LinkNone
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
Technical Assistance
Command Reference
This section documents modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.3 command reference publications.
•
ip auth-proxy auth-proxy-banner
debug ip auth-proxy
To display the authentication proxy configuration information on the router, use the debug ip auth-proxy command in privileged EXEC mode. To disable debugging output, use the no form of this command.
debug ip auth-proxy {detailed | ftp | function-trace | object-creation | object-deletion | telnet | timers}
no debug ip auth-proxy
Syntax Description
Command History
Command Modes
Privileged EXEC
Usage Guidelines
Use the debug ip auth-proxy command to display authentication proxy activity. See the "Examples" section for more information about the debug options.
Note
The function-trace debugging information provides low-level software information for Cisco technical support representatives. No output examples are provided for this keyword option.
Examples
The following examples illustrate the output of the debug ip auth-proxy command. In these examples, debugging is on for object creations, object deletions, HTTP, and TCP.
In this example, the client host at 192.168.201.1 is attempting to make an HTTP connection to the web server located at 192.168.21.1. The HTTP debugging information is on for the authentication proxy. The following output shows that the router is setting up an authentication proxy entry for the login request:
00:11:10: AUTH-PROXY creates info:cliaddr - 192.168.21.1, cliport - 36583seraddr - 192.168.201.1, serport - 80ip-srcaddr 192.168.21.1pak-srcaddr 0.0.0.0Following a successful login attempt, the debugging information shows the authentication proxy entries created for the client. In this example, the client is authorized for SMTP (port 25), FTP data (port 20), FTP control (port 21), and Telnet (port 23) traffic. The dynamic ACL entries are included in the display.
00:11:25:AUTH_PROXY OBJ_CREATE:acl item 61AD60CC00:11:25:AUTH-PROXY OBJ_CREATE:create acl wrapper 6151C7C8 -- acl item 61AD60CC00:11:25:AUTH-PROXY Src 192.168.162.216 Port [0]00:11:25:AUTH-PROXY Dst 192.168.162.220 Port [25]00:11:25:AUTH_PROXY OBJ_CREATE:acl item 6151C90800:11:25:AUTH-PROXY OBJ_CREATE:create acl wrapper 6187A060 -- acl item 6151C90800:11:25:AUTH-PROXY Src 192.168.162.216 Port [0]00:11:25:AUTH-PROXY Dst 192.168.162.220 Port [20]00:11:25:AUTH_PROXY OBJ_CREATE:acl item 61A40B8800:11:25:AUTH-PROXY OBJ_CREATE:create acl wrapper 6187A0D4 -- acl item 61A40B8800:11:25:AUTH-PROXY Src 192.168.162.216 Port [0]00:11:25:AUTH-PROXY Dst 192.168.162.220 Port [21]00:11:25:AUTH_PROXY OBJ_CREATE:acl item 6187955000:11:25:AUTH-PROXY OBJ_CREATE:create acl wrapper 61879644 -- acl item 6187955000:11:25:AUTH-PROXY Src 192.168.162.216 Port [0]00:11:25:AUTH-PROXY Dst 192.168.162.220 Port [23]The next example shows the debug output following a clear ip auth-proxy cache command to clear the authentication entries from the router. The dynamic ACL entries are removed from the router.
00:12:36:AUTH-PROXY OBJ_DELETE:delete auth_proxy cache 61AD629800:12:36:AUTH-PROXY OBJ_DELETE:delete create acl wrapper 6151C7C8 -- acl item 61AD60CC00:12:36:AUTH-PROXY OBJ_DELETE:delete create acl wrapper 6187A060 -- acl item 6151C90800:12:36:AUTH-PROXY OBJ_DELETE:delete create acl wrapper 6187A0D4 -- acl item 61A40B8800:12:36:AUTH-PROXY OBJ_DELETE:delete create acl wrapper 61879644 -- acl item 61879550The following example shows the timer information for a dynamic ACL entry. All times are expressed in milliseconds. The first laststart is the time that the ACL entry is created relative to the startup time of the router. The lastref is the time of the last packet to hit the dynamic ACL relative to the startup time of the router. The exptime is the next expected expiration time for the dynamic ACL. The delta indicates the remaining time before the dynamic ACL expires. After the timer expires, the debugging information includes a message indicating that the ACL and associated authentication proxy information for the client have been removed.
00:19:51:first laststart 119111200:20:51:AUTH-PROXY:delta 54220 lastref 1245332 exptime 125111200:21:45:AUTH-PROXY:ACL and cache are removedThe following example is sample output with the detailed keyword enabled:
00:37:50:AUTH-PROXY:proto_flag=5, dstport_index=100:37:50: SYN SEQ 245972 LEN 000:37:50:dst_addr 192.168.127.2 src_addr 192.168.27.1 dst_port 21 src_port 434700:37:50:AUTH-PROXY:auth_proxy_half_open_count++ 100:37:50:AUTH-PROXY:proto_flag=5, dstport_index=100:37:50: ACK 1820245643 SEQ 245973 LEN 000:37:50:dst_addr 192.168.127.2 src_addr 192.168.27.1 dst_port 21 src_port 434700:37:50:clientport 4347 state 000:37:50:AUTH-PROXY:incremented proxy_proc_count=100:37:50:AUTH-PROXY:proto_flag=5, dstport_index=100:37:50: ACK 1820245674 SEQ 245973 LEN 000:37:50:dst_addr 192.168.127.2 src_addr 192.168.27.1 dst_port 21 src_port 434700:37:50:clientport 4347 state 000:37:57:AUTH-PROXY:proto_flag=5, dstport_index=100:37:57: PSH ACK 1820245674 SEQ 245973 LEN 1600:37:57:dst_addr 192.168.127.2 src_addr 192.168.27.1 dst_port 21 src_port 434700:37:57:clientport 4347 state 000:37:57:AUTH-PROXY:proto_flag=5, dstport_index=100:37:57: ACK 1820245699 SEQ 245989 LEN 000:37:57:dst_addr 192.168.127.2 src_addr 192.168.27.1 dst_port 21 src_port 434700:37:57:clientport 4347 state 000:38:01:AUTH-PROXY:proto_flag=5, dstport_index=100:38:01: PSH ACK 1820245699 SEQ 245989 LEN 1600:38:01:dst_addr 192.168.127.2 src_addr 192.168.27.1 dst_port 21 src_port 434700:38:01:clientport 4347 state 000:38:01:AUTH-PROXY:Authenticating user ryan00:38:01:AUTH-PROXY:Session state is INIT.Not updating stats00:38:01:AUTH-PROXY:Session state is INIT.Not updating stats00:38:01:AUTH-PROXY:Sent AAA request successfully00:38:01:AUTH-PROXY:Sent password successfully00:38:01:AUTH-PROXY:processing authorization data00:38:01:AUTH-PROXY:Sending accounting start.unique-id 200:38:01:AUTH-PROXY:Session state is INIT.Not updating stats00:38:01:AUTH-PROXY:Session state is INIT.Not updating stats00:38:01:AUTH-PROXY:wait complete on watched boolean stat=000:38:01:AUTH-PROXY:src ip addr is 192.168.127.2, dstaddr=192.168.27.100:38:01: SYN ACK 2072458992 SEQ 4051022445 LEN 000:38:01:AUTH-PROXY:src ip addr is 192.168.127.2, dstaddr=192.168.27.100:38:01: PSH ACK 2072458992 SEQ 4051022446 LEN 4900:38:02:AUTH-PROXY:src ip addr is 192.168.127.2, dstaddr=192.168.27.100:38:02: ACK 2072459003 SEQ 4051022495 LEN 000:38:02:AUTH-PROXY:src ip addr is 192.168.127.2, dstaddr=192.168.27.100:38:02: PSH ACK 2072459003 SEQ 4051022495 LEN 3300:38:02:AUTH-PROXY:src ip addr is 192.168.127.2, dstaddr=192.168.27.100:38:02: ACK 2072459014 SEQ 4051022528 LEN 000:38:02:AUTH-PROXY:src ip addr is 192.168.127.2, dstaddr=192.168.27.100:38:02: PSH ACK 2072459014 SEQ 4051022528 LEN 2600:38:03:AUTH-PROXY:proto_flag=5, dstport_index=100:38:03: ACK 1820245725 SEQ 246005 LEN 000:38:03:dst_addr 192.168.127.2 src_addr 192.168.27.1 dst_port 21 src_port 434700:38:03:clientport 4347 state 37200b#Related Commands
ip auth-proxy
To set the authentication proxy idle timeout value (the length of time an authentication cache entry, along with its associated dynamic user access control list, is managed after a period of inactivity), use the ip auth-proxy command in global configuration mode. To set the default value, use the no form of this command.
ip auth-proxy {inactivity-timer min | absolute-timer min}
no ip auth-proxy {inactivity-timer | absolute-timer}
Syntax Description
Defaults
The default value of the inactivity-timer min option is 60 minutes.
The default value of the absolute-timer min option is zero.
Command Modes
Global configuration
Command History
Release Modification12.0(5)T
This command was introduced.
12.3(1)
The inactivity-timer min and absolute-timer min options were added.
Usage Guidelines
Use this command to set the global idle timeout value for the authentication proxy. You must set the value of the inactivity-timer min option to a higher value than the idle timeout of any Context-Based Access Control (CBAC) protocols. Otherwise, when the authentication proxy removes the user profile along associated dynamic user ACLs, there might be some idle connections monitored by CBAC. Removing these user-specific ACLs could cause those idle connections to hang. If the CBAC idle timeout value is shorter, CBAC resets these connections when the CBAC idle timeout expires, which is before the authentication proxy removes the user profile.
The absolute-timer min option allows users to configure a window during which the authentication proxy on the enabled interface is active. Once the absolute timer expires, the authentication proxy will be disabled regardless of any activity. The global absolute timeout value can be overridden by the local (per protocol) value, which is enabled via the ip auth-proxy name command. The absolute timer is turned off by default, and the authentication proxy is enabled indefinitely.
Examples
The following example sets the inactivity timeout to 30 minutes:
ip auth-proxy inactivity-timer 30Related Commands
Command DescriptionCreates an authentication proxy rule.
show ip auth-proxy configuration
Displays the authentication proxy entries or the running authentication proxy configuration.
ip auth-proxy auth-proxy-banner
To display a banner, such as the router name, in the authentication proxy login page, use the ip auth-proxy auth-proxy-banner command in global configuration mode. To disable display of the banner, use the no form of this command.
ip auth-proxy auth-proxy-banner {ftp | http | telnet} [banner-text]
no ip auth-proxy auth-proxy-banner {ftp | http | telnet}
Syntax Description
Defaults
This command is not enabled, and a banner is not displayed on the authentication proxy login page.
Command Modes
Global configuration
Command History
Release Modification12.0(5)T
This command was introduced.
12.3(1)
The following keywords were added: ftp, http, and telnet.
Usage Guidelines
The ip auth-proxy auth-proxy-banner command allows users to configure one of two possible scenarios:
•
The ip auth-proxy auth-proxy-banner command is enabled.
In this scenario, the administrator has not supplied any text. Thus, a default banner that states the following: "Cisco Systems, <router's hostname> Authentication" will be displayed in the authentication proxy login page. This scenario is most commonly used.
•
The ip auth-proxy auth-proxy-banner command with the banner-text argument is enabled.
In this scenario, the administrator can supply multiline text that will be converted to HTML by the auth-proxy parser code. Thus, only the multiline text will displayed in the authentication proxy login page. You will not see the default banner, "Cisco Systems, <router's hostname> Authentication."
Note
If the ip auth-proxy auth-proxy-banner command is not enabled, there will not be any banner configuration. Thus, nothing will be displayed to the user on authentication proxy login page except a text box to enter the username and a text box to enter the password.
Examples
The following example causes the router name to be displayed in the authentication proxy login page:
ip auth-proxy auth-proxy-banner ftpThe following example shows how to specify the custom banner "whozat" to be displayed in the authentication proxy login page:
ip auth-proxy auth-proxy-banner telnet ^Cwhozat^CRelated Commands
ip auth-proxy name
To create an authentication proxy rule, use the ip auth-proxy name command in global configuration mode. To remove the authentication proxy rules, use the no form of this command.
ip auth-proxy name auth-proxy-name {ftp | http | telnet} [inactivity-timer min] [absolute-timer min] [list {acl | acl-name}]
no ip auth-proxy name auth-proxy-names
Syntax Description
auth-proxy-name
Associates a name with an authentication proxy rule. Enter a name of up to 16 alphanumeric characters.
ftp
Specifies FTP to trigger the authentication proxy.
http
Specifies HTTP to trigger the authentication proxy.
telnet
Specifies Telnet to trigger the authentication proxy.
inactivity-timer min
(Optional) Overrides the global authentication proxy cache timer for a specific authentication proxy name, offering more control over timeout values. Enter a value in the range 1 to 2,147,483,647. The default value is equal to the value set with the ip auth-proxy command.
Note
This option deprecates the auth-cache-time min option.
absolute-timer min
(Optional) Specifies a window in which the authentication proxy on the enabled interface is active. Enter a value in the range 1 to 65,535 minutes (45 and a half days). The default value is 0 minutes.
list {acl | acl-name}
(Optional) Specifies a standard (1-99), extended (1-199), or named access list to use with the authentication proxy. With this option, the authentication proxy is applied only to those hosts in the access list. If no list is specified, all connections initiating HTTP, FTP, or Telnet traffic arriving at the interface are subject to authentication.
Defaults
The default value is equal to the value set with the ip auth-proxy auth-cache-time command.
Command Modes
Global configuration
Command History
Usage Guidelines
This command creates a named authentication proxy rule, and it allows you to associate that rule with an access control list (ACL), providing control over which hosts use the authentication proxy. The rule is applied to an interface on a router using the ip auth-proxy command.
Use the inactivity-timer min option to override the global the authentication proxy cache timer. This option provides control over timeout values for specific authentication proxy rules. The authentication proxy cache timer monitors the length of time (in minutes) that an authentication cache entry, along with its associated dynamic user access control list, is managed after a period of inactivity. When that period of inactivity (idle time) expires, the authentication entry and the associated dynamic access lists are deleted.
Use the list option to associate a set of specific IP addresses or a named ACL with the ip auth-proxy name command.
Use the no form of this command with a rule name to remove the authentication proxy rules. If no rule is specified, the no form of this command removes all the authentication rules on the router, and disables the proxy at all interfaces.
Note
You must use the aaa authorization auth-proxy command together with the ip auth-proxy name command. Together these commands set up the authorization policy to be retrieved by the firewall. Refer to the aaa authorization auth-proxy command for more information.
Examples
The following example creates the HQ_users authentication proxy rule. Because an access list is not specified in the rule, all connection-initiating HTTP traffic is subjected to authentication.
ip auth-proxy name HQ_users httpThe following example creates the Mfg_users authentication proxy rule and applies it to hosts specified in ACL 10:
access-list 10 192.168.7.0 0.0.0.255ip auth-proxy name Mfg_users http list 10The following example sets the timeout value for Mfg_users to 30 minutes:
access-list 15 anyip auth-proxy name Mfg_users http inactivity-timer 30 list 15The following example disables the Mfg_users rule:
no ip auth-proxy name Mfg_usersThe following example disables the authentication proxy at all interfaces and removes all the rules from the router configuration:
no ip auth-proxyRelated Commands
Copyright © 2003 Cisco Systems, Inc. All rights reserved





