Forum Discussion
Ralph_Bonnell_1
Nimbostratus
Sep 26, 2005Rewriting http header with virtual hosts
Hello,
We are trying to figure out an iRule that will make the load balancer send the fqdn host name (www.example.com) in the request back to the server. Requests that come in to this vip c...
can you add log command something like this?
[root@ve1023:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
TCP::collect 2
}
when CLIENT_DATA {
set msid [TCP::payload 2]
binary scan $msid H* msid_hex
log local0. "\$msid: $msid"
log local0. "\$msid_hex: $msid_hex"
TCP::release
}
}
[root@ve1023:Active] config cat /var/log/ltm
Feb 5 23:56:26 local/tmm info tmm[4369]: Rule myrule CLIENT_DATA: $msid: GE
Feb 5 23:56:26 local/tmm info tmm[4369]: Rule myrule CLIENT_DATA: $msid_hex: 4745
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