Forum Discussion
iRules change HTTP::Payload when talking to the backend servers
Yes its doable, use HTTP_REQUEST_DATA event to make your manipulation on the payload.
Refer the below article.
https://clouddocs.f5.com/api/irules/HTTP_REQUEST_DATA.html
- HazemFoudaFeb 17, 2021
Nimbostratus
I want to manipulate the payload then pass F5 the manipulated one but the backend server will receive the original payload can you help me, please ?
- Daniel_WolfFeb 17, 2021
MVP
Can you elaborate what you are trying to achieve by manipulating the payload twice? Maybe there is another way to get to your goal.
I don't say it is nonsense, but I think it would help to know the use-case.
- HazemFoudaFeb 18, 2021
Nimbostratus
I need to change the original request to some format that WAF can understand and apply its security check against then if the request is good, I need the WAF to pass the original request to the server as the server only understands the original request sent by the client
- Daniel_WolfFeb 18, 2021
MVP
Maybe you can try a layered virtual. I am not a big fan of using layered virtuals since they add an extra layer of complexity when troubleshooting.
Traffic would flow like this:
vIP_1 >> iRule manipulates payload >> passes ASM >> vIP_2 >> iRule manipulates payload back >> backend server
Here are some steps for guidance.
In this approach you can also combine iRules and LTM Traffic Policies.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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