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

Header rewrite on ACE

bs6825
Level 1
Level 1

I have a situation that I need the ACE to re-write a portion of the client header. I can configure the class-map to identify the traffic, but am unsure how to configure the policy map. The client header contains an sid value and we want the header to delete that value before forwarding to the server. From a packet capture, the http request contains the following:

Get /testpage?sid=123456789 HTTP/1.1\r\n

Host: http://www.example.com\r\n

Need to change to:

Get /testpage HTTP/1.1\r\n

Host: http://www.example.com\r\n

Note that the /testpage portion of the Get will vary by page.

I also notice the sid value in the Referer header value and may need to change that as well.

Referer: http://www.example.com/otherpage?sid=123456789

TIA for your help.

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

all we can do with the url is to create a redirect pointing to a different one.

So you could catch with a class-map any url with sid= and create a redirect to a page without the sid.

In a future release, you'll also be able to filter host header but currently this is not possible.

Gilles.

Review Cisco Networking for a $25 gift card