cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
466
Views
0
Helpful
1
Replies

ACE - Redirect

schimeha1977
Level 1
Level 1

Hi !

I am trying to do the following:

A customer dials into our network. The first HTTP Request get`s redirected to some Content-Page.

This could be annoying for some customers that`s why we want to implement a button on that page to DISABLE this Redirect Feature for that customer.

I am sure the redirect will work - but I am wondering if it`s possible to store some data on the customers web-browser - to make sure the feature remains DISABLED whenever he dials to the network again - and doesn`t get redirected anymore .

Is there a chance to match on the ACE against some sort of f.e. cookie - to make sure the client is not redirected anymore if this cookie is present ?

If not - then the client gets redirect.

I would really appreciate any help / hints.

cheers

Hans

1 Reply 1

In the following example if the http request comes for VIP:192.168.1.1 then the header is checked for cookie name "testcookie" and if the cookie value is "Donot-Redirect" then request is served by serverfarm "APP1-sf" and if this value is not present then request is redirected to http://192.168.120.132/redirect.html .

parameter-map type http APP1-pmap

persistence-rebalance

rserver redirect SERVER-redirect

webhost-redirection http://192.168.120.132/redirect.html 302

inservice

rserver host App1-server1

ip address 10.10.10.111

inservice

rserver host App1-server2

ip address 10.10.10.10

inservice

serverfarm redirect SFARM-redirect

rserver SERVER-redirect

inservice

serverfarm App1-SF

predictor leastconns

probe TCP81

rserver App1-server1

inservice

rserver App1-server2

inservice

class-map match-all App1-VIP

2 match virtual-address 192.168.1.1 tcp eq 80

class-map type http loadbalance match-any APP1-CHECK

match http cookie testcookie cookie-value Donot-Redirect

policy-map type loadbalance first-match APP1-policy

class APP1-CHECK

serverfarm App1-SF

class class-default

serverfarm SFARM-redirect

policy-map multi-match VIPS

class App1-VIP

loadbalance vip inservice

loadbalance policy APP1-policy

loadbalance vip icmp-reply active

appl-parameter http advanced-options APP1-pmap

HTH

Syed Iftekhar Ahmed

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: