The following example shows you how to create a guided entrance service.
This example uses the following software and hardware components:
When a subscriber logs in and opens a Web browser, the Service Manager guided entrance service transparently directs the subscriber to a specific uniform resource locator (URL) at which the subscriber can choose from a list of available services.
This example illustrates how to create a guided entrance service:
![]() | Note: Commented text explains the parameterized values in the example of the service definition macro file. Each example is followed by examples of RADIUS information and the CLI command that you can use to activate a subscriber service session. |
!parameterizes server address and port
<# http(serverIp, serverPort) #>
<# serviceTag := "http-" #>
<# uid := app.servicemanager.getUniqueId #>
<# genericName := "SM-X-" $ serviceTag $ uid #>
<# genericInputName := "SM-I-" $ serviceTag $ uid #>
<# genericOutputName := "SM-O-" $ serviceTag $ uid #>
<# claclName := genericName #>
<# profileName := genericName #>
<# inputPolicyName := genericInputName #>
<# inputRateLimitName := genericInputName #>
<# outputPolicyName := genericOutputName #>
<# outputRateLimitName := genericOutputName #>
<# exceptionClaclName := "exceptionClaclPort" $ serverPort #>
<# serverClaclName := "serverClaclIp" $ serverIp #>
<# redirectUrlName := "http://" $ serverIp $ ":" $ serverPort #>
configure terminal
classifier-list <# serverClaclName #> ip any host <# serverIp; '\n' #>
classifier-list <# exceptionClaclName #> tcp any any eq <# serverPort; '\n' #>
ip policy-list <# inputPolicyName; '\n' #>
classifier-group <# serverClaclName; '\n' #>
forward
classifier-group <# exceptionClaclName; '\n' #>
exception http-redirect
classifier-group *
filter
profile <# profileName #>
ip http redirectUrl <# redirectUrlName; '\n' #>
ip policy input <# inputPolicyName #> statistics enabled merge
<# env.setResult("activate-profile", "" $ profileName) #>
<# endtmpl #>
Table 1 provides the sample RADIUS attributes that you can use to activate the guided entrance service
Table 1: Sample RADIUS Attributes
RADIUS Attribute | Tag | Value |
|---|---|---|
username | none | client5@isp1.com |
activate-service | 1 | http(192.168.25.2, 80) |
To activate a subscriber session with the configured guided entrance service: