Forum Discussion
martyseery_1391
Nimbostratus
Sep 23, 2014Content-Length Header responses being Reset by LTM
Hello,
My company is in the process of converting our Fast Layer 4 VIP configurations to Standard SSL. We're having reset problems that have to with Siteminder server response that are not comp...
Kevin_Stewart
Employee
Sep 23, 2014To add an XFF HTTP header without the HTTP profile, you'd use TCP events:
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
if { [TCP::payload] contains "User-Agent:" } {
set ua "\"User-Agent:\" \"X-Forwarded-For: [IP::client_addr]\r\nUser-Agent:\""
TCP::payload replace 0 [TCP::payload length] [string map $ua [TCP::payload]]
}
TCP::release
TCP::collect
}
If the VIP is SSL-enabled, then this:
when CLIENTSSL_HANDSHAKE {
SSL::collect
}
when CLIENTSSL_DATA {
if { [SSL::payload] contains "User-Agent:" } {
set ua "\"User-Agent:\" \"X-Forwarded-For: [IP::client_addr]\r\nUser-Agent:\""
SSL::payload replace 0 [SSL::payload length] [string map $ua [SSL::payload]]
}
SSL::release
SSL::collect
}
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