Forum Discussion
vegetax
Mar 14, 2017Nimbostratus
X-Forward Remove
Hi, I am trying to write an irule for a vip were we have a http profile assigned and x-forward is enabled but for specific traffic going to that VIP we would like to remove the x-forward and see true...
rsacheen_310098
Mar 15, 2017Nimbostratus
What kind of traffic do you mean by specific traffic? How about this simple example..
if { condition for your specific traffic } {
log local0. "some log message [IP::client_addr]:[TCP::client_port]"
pool your_pool
}
The above log will help you track the client IP from where the specific traffic originated. The next line will direct the traffic to your desired pool. Sorry if my answer doesn't serve your purpose.
- rsacheen_310098Mar 15, 2017Nimbostratus
If you are trying to remove Header X-Forward-for, this might help
when HTTP_REQUEST {
HTTP::header remove X-Forwarded-For
}
write some condition for your specific traffic inside the when {}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects