Jump to content
Welcome to our new Citrix community!

citrix adc app expert rewrite


Ahmed Gala

Recommended Posts

Hello ,

 

now i have a situation i have 2 virtual servers as example 1.1.1.1 and 1.1.1.2 when the user access the first virtual server 1.1.1.1 there is a report task is done through the first vs web page through a hyper link that redirects implicitly to the second vs 1.1.1.2 and i have no issue with this ,the issue is the is anew client subnet behind a natting firewall i have no issue to access 192.168.1.2 that nat to the 1.1.1.1 but when i access the report page from the hyper link it responds with 1.1.1.2 so i want to replace it with the ip on the firewall 192.168.1.3 when trying to access it from the new client subnet .

how is done through app expert rewrite policy and action ,what are the expressions to be used in policy and action in this case

CX.jpg

Link to comment
Share on other sites

I don't fully get, what you want.

 

What I understand is:
Users connect to 1.1.1.1, NATted from 192.168.1.2 (so users connect to 192.168.1.2)

 

1.1.1.1 server has a link to an other server 1.1.1.2, which is not available from user side, but would be available via 192.168.1.3. So you need to rewrite all <a href="http://192.168.1.3"> into <a href="http://1.1.1.2">

 

Is this correct?

if it is, you have to create a rewrite action of type REWRITE_ADD, search for 192.168.1.3 in HTTP.RES.BODY(10240) and replace with 1.1.1.2. It's easy. It probably won't work. In case, you must enable HTTP compression and disable server side compression.

 

Greetings

 

Johannes Norz

CCI, CTA, CCE-N

https://wonderkitchen.network

https:/norz.at

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...