Cisco Cisco Packet Data Gateway (PDG)

Pagina di 134
Configuring the SaMOG Gateway   
▀  Configuring the System to Perform as a SaMOG Gateway 
 
 
▄  SaMOG Administration Guide, StarOS Release 19 
124 
   
Configuring Web-based Authorization 
Important:
  The Web Authorization feature is license dependent. Contact your local Cisco account representative 
for licensing requirements. 
Optionally, configure the SaMOG web-based authorization by applying the example configuration below. 
HTTP Redirection for Web-based Authorization
 
For HTTP redirection, apply the following rulebase, ruledef and charging action example: 
config 
   active-charging service acs_service_name 
       #Rule to analyze HTTP packets 
       ruledef http_ruledef_name 
           tcp either-port = 80  
           tcp either-port = 8080  
           rule-application routing  
           exit 
       #Rule to check if packet is a DNS packet 
       ruledef is_DNS_ruledef_name 
           udp either-port = port_number 
           tcp either-port = port_number 
           multi-line-or all-lines  
           exit 
       #Rule to check if packet is destined to HTTP portal (to avoid redirect loop) 
       ruledef is_redirected_ruledef_name 
           ip server-ip-address = http_web_portal_ipv4_address/mask 
           exit 
       #Rule for HTTP redirection to HTTP portal 
       ruledef http_redirect_ruledef_name 
           http any-match = TRUE  
           ip any-match = TRUE