Forum Discussion
jpavel
Nimbostratus
Jun 09, 2008X-Forwarded-For persistense
Hello All,
unfortunately I am not that iRule professional and therefore I would like to ask you if anybody can help me.
I would like to create an iRule for a customer which would like to inspect the X-Forwarded-For header for universal persistence.
Because of security reasons our customer would like to erase the X-Forwarded-For header as soon as the universal persistense took place.
Is it possible to create such an iRule and has anybody an example how it has to look like?
Unfortunately I am not sure if an iRule can handle a header inspection and a header erase in the same iRule definition.
Has anybody tried this before?
Thanks in advance for your help.
Regards
Joerg
- Nicolas_Menant
Employee
Hi,when HTTP_REQUEST { persist uie [HTTP::header "X-Forwarded-For"] HTTP::header remove "X-Forwarded-For" }
- hoolio
Cirrostratus
If the end customer is concerned about the validity of the XFF header to the point they don't want to send it to the server, why would they want to use it for persistence? Are you able to use cookie insert persistence instead? If you're concerned about clients tampering with the cookie, you could encrypt it. Else, is source address persistence an option? - jpavel
Nimbostratus
Hi nmenant, - hoolio
Cirrostratus
Cookie insert persistence should work in this scenario if you enable OneConnect on the VIP: - jpavel
Nimbostratus
Thanks Aaron.
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