cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1438
Views
0
Helpful
3
Replies

Last COA request received: unavailable

Hi All,

I need a assistance regarding http-redirection, which is not happening after lots of try and following the documentation in cisco foroums.

 

ipv4 access-list PERM_ALL
10 permit ipv4 any any
20 permit icmp any any

 

ipv4 access-list allow-acl
10 permit tcp any host 202.94.66.6 eq www
20 permit tcp any host 202.94.66.6 eq 443
30 permit tcp any host 202.94.66.60 eq www
35 permit tcp any host 202.94.66.60 eq 443
36 permit tcp any host 202.94.66.61 eq 443
37 permit tcp any host 10.0.0.2 eq 443
40 permit icmp any any
60 permit udp any any eq domain

 

ipv4 access-list redirect-acl
10 permit tcp any any eq www syn
20 permit tcp any any eq www ack
50 permit tcp any any eq www
!

 

class-map type traffic match-any open-garden-class
match access-group ipv4 allow-acl
end-class-map
!

 

class-map type traffic match-any http-redirect-class
match access-group ipv4 redirect-acl
end-class-map
!

 

type ppp CP_PPP_TPL1
service-policy type pbr httpr-redirect-policy1
ppp authentication pap chap
ppp ipcp dns 202.94.66.2 202.94.66.3
ipv4 unnumbered Loopback2
ipv4 access-group PERM_ALL ingress
!
!

 

policy-map type pbr httpr-redirect-policy1
class type traffic open-garden-class
transmit
!
class type traffic http-redirect-class
http-redirect http://202.94.66.60
!
class type traffic class-default
drop
!
end-policy-map
!

 

RP/0/RSP0/CPU0:BNG1#show subscriber session filter username srijanb detail
Sun Sep 3 15:52:52.972 Kathmandu
Interface: Bundle-Ether2.100.pppoe21139
Circuit ID: Unknown
Remote ID: Unknown
Type: PPPoE:PTA
IPv4 State: Up, Sun Sep 3 14:20:22 2017
IPv4 Address: 100.127.57.127, VRF: default
Mac Address: e48d.8cc9.b510
Account-Session Id: 000661c9
Nas-Port: 33559315
User name: srijanb
Formatted User name: unknown
Client User name: unknown
Outer VLAN ID: 305
Subscriber Label: 0x00096313
Created: Sun Sep 3 14:20:20 2017
State: Activated
Authentication: authenticated
Authorization: unauthorized
Access-interface: Bundle-Ether2.100
Policy Executed:
policy-map type control subscriber PPP_TPL1
event Session-Start match-first [at Sun Sep 3 14:20:20 2017]
class type control subscriber PPP do-until-failure [Succeeded]
10 activate dynamic-template PPP_TPL1 [Succeeded]
event Session-Activate match-first [at Sun Sep 3 14:20:21 2017]
class type control subscriber PPP do-until-failure [Succeeded]
10 authenticate aaa list default [Succeeded]
Session Accounting:
Acct-Session-Id: 000661c9
Method-list: default
Accounting started: Sun Sep 3 14:20:22 2017
Interim accounting: On, interval 10 mins
Last successful update: Sun Sep 3 15:50:23 2017
Next update in: 00:07:29 (dhms)
Last COA request received: unavailable
[Last IPv6 down]
Disconnect Reason:

 

Script From Radius:

 echo "User-Name='srijanb',Cisco-AVPair+='subscriber:sa=CP _PPP_TPL1'" | radclient -x  202.94.66.252:1700 coa nepal123                                                     

 

Is there anything which I have to add in order to redirect.

 

Your urgent response will be appreciated.

 

Regards,

 

Mandeep Kharel

 

1 Accepted Solution

Accepted Solutions

hi Mandeep,
 
if you want the ad to be shown whenever the user authenticates, this would be what we call "Web Logon with Forced Redirection". In that case you want to execute the dynamic template during session start, e.g.:
 
 
policy-map type control subscriber IP_PM
 event session-start match-first
  class type control subscriber IP do-until-failure
   10 activate dynamic-template IP_BASE_TPL
   20 activate dynamic-template HTTPR_TPL 

 

/Aleksandar

View solution in original post

3 Replies 3

Aleksandar Vidakovic
Cisco Employee
Cisco Employee

Have you tried to apply HTTP redirect as explained in:

 

https://supportforums.cisco.com/t5/service-providers-documents/asr9000-xr-bng-deployment-guide/ta-p/3110436

 

/Aleksandar

Hi Alex,

Yes I have followed that instruction and it's resolve now.

However I have one more query; recently i can redirect the page but i want that page for certain seconds only. Like I want to push force ad of my company bandwidth packages towards customer for a certain seconds only after that the ad should close automatically and customer can surf the internet smoothly without any hasel.

 

Is that possible ?

 

Regards,

 

Mandeep

 

hi Mandeep,
 
if you want the ad to be shown whenever the user authenticates, this would be what we call "Web Logon with Forced Redirection". In that case you want to execute the dynamic template during session start, e.g.:
 
 
policy-map type control subscriber IP_PM
 event session-start match-first
  class type control subscriber IP do-until-failure
   10 activate dynamic-template IP_BASE_TPL
   20 activate dynamic-template HTTPR_TPL 

 

/Aleksandar