Table Of Contents
Prerequisites for SSG Default DNS Redirection
Information About SSG Default DNS Redirection
How to Configure SSG Default DNS Redirection
Configuring SSG Default DNS Redirection in a Local Service Profile
Configuration Examples for SSG Default DNS Redirection
SSG Default DNS Redirection: Example
SSG Default DNS Redirection for Unauthenticated Users: Example
SSG Default DNS Redirection
The SSG Default DNS Redirection feature allows a default Domain Name System (DNS) domain to be configured in a service profile. When a default DNS domain is configured in a service profile, all DNS queries that do not match a domain name will be redirected to the DNS server for that service.
Release Modification12.3(3)B
This feature was introduced.
12.3(7)T
This features was integrated into Cisco IOS Release 12.3(7)T.
Feature History for the SSG Default DNS Redirection Feature
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
•
Prerequisites for SSG Default DNS Redirection
•
Information About SSG Default DNS Redirection
•
How to Configure SSG Default DNS Redirection
•
Configuration Examples for SSG Default DNS Redirection
Prerequisites for SSG Default DNS Redirection
Before Service Selection Gateway (SSG) default DNS redirection can be configured, SSG must be enabled by using the ssg enable command.
Information About SSG Default DNS Redirection
To configure default DNS redirection for SSG, you should understand the following concepts:
DNS Redirection
When SSG receives a DNS request, it performs domain name matching by using the Domain Name attribute from the service profiles of the currently logged-in services.
SSG default DNS redirection allows a default DNS domain to be configured in a service profile. When a default DNS domain is configured in a service profile, all DNS queries that do not match a domain name will be redirected to the DNS server for that service..
You can also configure the default domain to apply to DNS queries from unauthenticated users only. This configuration enables SSG to redirect all DNS queries for unauthenticated users to the Cisco Subscriber Edge Services Manager (SESM) DNS server, which can spoof the responses if required.
A domain name within the question section of the DNS packet is compared in sequence in the upstream path. The sequence is as follows:
1.
The domain names configured in the logged-in services. If a match is found, the request is redirected to the DNS server for the matched service.
2.
The domain names configured in the open garden service. If a match is found, the requested is redirected to the DNS server for the open garden service.
3.
Default DNS domain (defined as an asterisk [*]) in a logged-in service.
4.
Default DNS domain (defined as an asterisk [*]) in an open garden service.
5.
If the user is logged in to a service that has Internet connectivity, the request is redirected to the first service in the user's service access order list that has Internet connectivity. Internet connectivity is defined as access to a service containing a Service Route attribute of 0.0.0.0/0.
6.
If there is an open garden Internet service, the request is redirected to this service.
7.
If a match is not found until now, the request is forwarded to the DNS server defined in the client's TCP/IP stack.
Default DNS redirection is useful in a public wireless LAN (PWLAN) environment in which a user's browser may be configured with a home page that is part of a corporate internal network. Since the home page domain will never be resolved by a DNS server in the Internet, the TCP session from the user will never be initiated. Default DNS redirection allows SSG to redirect all DNS queries to a DNS server that can resolve all queries—for example, the DNS server on the Cisco Subscriber Edge Services Manager (SESM), which can spoof all unresolved DNS queries.
SSG Domain Name Attribute
Table 1 describes the Domain Name vendor-specific attribute (VSA) used by SSG. The Domain Name VSA specifies domain names that get DNS resolution from the DNS servers specified in the DNS server address.
How to Configure SSG Default DNS Redirection
This section contains the following procedure:
•
Configuring SSG Default DNS Redirection in a Local Service Profile
Configuring SSG Default DNS Redirection in a Local Service Profile
This task configures SSG default DNS redirection in a local service profile.
You can also configure SSG default DNS redirection by adding the VSA for default DNS redirection to the service profile on the RADIUS server. See the "SSG Domain Name Attribute" section for information about the Domain Name VSA.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
local-profile profile-name
4.
attribute 26 9 251 "O*[;unauthenticated]"
5.
end
6.
show ssg service [service-name [begin expression | exclude expression | include expression]]
DETAILED STEPS
Configuration Examples for SSG Default DNS Redirection
This section contains the following configuration examples:
•
SSG Default DNS Redirection: Example
•
SSG Default DNS Redirection for Unauthenticated Users: Example
SSG Default DNS Redirection: Example
In the following example, all DNS packets will be redirected to the DNS server 3.6.6.2.
! Define the service profile locallylocal-profile og-dnsattribute 26 9 251 "D10.6.6.2"attribute 26 9 251 "R10.6.6.2;255.255.255.255"attribute 26 9 251 "O*"!! Make the service an open gardenssg open-garden og-dnsWhen a default DNS domain is configured, the output for the show ssg service command will include the following line:
Default domain matching is EnabledSSG Default DNS Redirection for Unauthenticated Users: Example
In the following example, default DNS matching is applied only to unauthenticated users. If the user is authenticated, the packet is processed normally.
! Define the service profile locallylocal-profile og-dns-non-authenattribute 26 9 251 "D3.6.6.2"attribute 26 9 251 "R3.6.6.2;255.255.255.255"attribute 26 9 251 "O*;unauthenticated"!! Make the service an open gardenssg open-garden og-dns-non-authenWhen a default DNS domain is configured for unauthenticated users only, the output for the show ssg service command will include the following line:
Default domain matching is Enabled - valid only for unauthenticated usersAdditional References
The following sections provide references related to SSG default DNS redirection.
Related Documents
Related Topic Document TitleSSG commands
Cisco IOS Wide-Area Networking Command Reference, Release 12.3 T
SSG configuration tasks
"Broadband Access" section in the Cisco IOS Wide-Area Networking Configuration Guide, Release 12.3
SSG Features in Cisco IOS Release 12.3(4)T
SESM
Cisco Subscriber Edge Services Manager
RADIUS commands
Cisco IOS Security Command Reference, Release 12.3 T
RADIUS configuration tasks
Cisco IOS Security Configuration Guide, Release 12.3
Standards
Standards TitleNo new or modified standards are supported by this feature. Support for existing standards has not been modified by this feature.
—
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature. Support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents the modified show ssg service command.
show ssg service
To display the information for a Service Selection Gateway (SSG) service, use the show ssg service command in privileged EXEC mode.
show ssg service [service-name [begin expression | exclude expression | include expression]]
Syntax Description
Defaults
If no service name is provided, the command displays information for all services.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
Use this command to display connection information for a service.
Examples
L2TP Tunnel Service: Example
The following example shows the information for the L2TP tunnel service called "tunnel1". The attribute filter that is set in the service profile can be seen in the output.
Router# show ssg service tunnel1------------------------ ServiceInfo Content -----------------------Uplink IDB: gw: 0.0.0.0Name: tunnel1Type: TUNNELMode: CONCURRENTService Session Timeout: 0 secondsService Idle Timeout: 0 secondsService refresh timeleft: 99 minutesNo Authorization RequiredAuthentication Type: CHAPAttribute Filter: 31Session policing disabledReference Count: 1DNS Server(s):No Radius server group created. No remote Radius servers.TunnelId: ssg1TunnelPassword: ciscoHomeGateway Addresses: 172.0.0.1ConnectionCount 1Full User Name not usedDomain List: Included Network Segments:0.0.0.0/0.0.0.0Active Connections:1 : RealIP=172.0.1.1, Subscriber=10.0.1.1------------------------ End of ServiceInfo Content ----------------Proxy Service: Example
The following example shows information for the proxy service called "serv1-proxy":
Router# show ssg service serv1-proxy------------------------ ServiceInfo Content -----------------------Uplink IDB:Name:serv1-proxyType:PROXYMode:CONCURRENTService Session Timeout:0 secondsService Idle Timeout:0 secondsClass Attr:NONEAuthentication Type:CHAPReference Count:1Next Hop Gateway Key:my-keyDNS Server(s):Primary:10.13.1.5Radius Server:IP=10.13.1.2, authPort=1645, acctPort=1646, secret=my-secretIncluded Network Segments:10.13.0.0/255.255.0.0Excluded Network Segments:Full User Name UsedService Defined Cookie existDomain List:service1.com;Active Connections:1 :Virtual=255.255.255.255, Subscriber=10.20.10.2------------------------ End of ServiceInfo Content ----------------Table 2 describes the significant fields shown in the display.
Related Commands
Copyright © 2003 Cisco Systems, Inc. All rights reserved.

