cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
977
Views
0
Helpful
5
Replies

http redirect url as variables

Kijush Maharjan
Level 1
Level 1

I have successfully tested HTTP redirect on ASR9K. But i had to manually set the url to redirect. Is there anyway to make it dynamic, or say variable.

I want to push the redirect URL via radius. For some kind of users, i want to push different URL and for other subs, another URL. Is it possible via radius attributes?

I am thinking about different dynamic-template for different kind of users. But it will be a bit tricky.

Regards,

Kijush

5 Replies 5

smailmilak
Level 4
Level 4

Hi,

correct, you can use different dyn. templates type service with "service-policy type pbr" on it.

Create a few user groups on your RADIUS and add different service for each group.

Hi smailmilak,

Thank you for the reply. 

Can't we define any variable for http-redirect url? Since the url might keep on changing due to different purpose, i want it to push via radius. 

I think there should be some way. Multiple dynamic-template is my last option though. :)

This is a challenge :)

You could have the same URL for redirect for every user/subscriber group but on the HTTP server you can check the source IP and the redirect to another URL. This is something that has to be done on the server side.

Maybe there are other methods...let's see if someone has a better solution.

Having same URL is not possible as we have different services. So, For each services, i want to broadcast different URLs. There should be some ways from radius to push such redirect URLs. 

cisco-avpair= "url-redirect=http://..."

OR

http-redirect-url http://x

In some vendor, we can push the redirect url via radius using variables.

Can someone have any idea to parse different URLs in http redirect with extra more configuration? 

Input needed from experts.