Forum Discussion
bloceanc_289015
Nimbostratus
Sep 06, 2016Could anyone know how to read package contents by iRules?
I'm wishing to read package contents by iRules.
Anyone knows ?
Thanks
Kai_Wilke
MVP
Sep 06, 2016Hi Bloceanc,
to read RAW packet information, you could either use a combination of
[TCP::collect], [TCP::payload] and [TCP::release]...
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
log local0.debug "TCP Payload: [TCP::payload]"
TCP::release
TCP::collect
}
https://devcentral.f5.com/wiki/iRules.TCP__collect.ashx
... or the
[UDP::payload] command ...
when CLIENT_ACCEPTED {
No prequisites are required.
}
when CLIENT_DATA {
log local0.debug "UDP Payload: [UDP::payload]"
}
https://devcentral.f5.com/wiki/iRules.UDP__payload.ashx
... or even a combination of
[SSL::collect], [SSL::payload] and [SSL::release]...
when CLIENTSSL_HANDSHAKE {
SSL::collect
}
when CLIENTSSL_DATA {
log local0.debug "SSL Payload: [SSL::payload]"
SSL::release
SSL::collect
}
https://devcentral.f5.com/wiki/iRules.SSL__collect.ashx
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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