Forum Discussion
Ken_Wong_48678
Aug 01, 2005Historic F5 Account
use irule to match virtual server name to node name
Hi,
This is Ken. I encounter a problem and need to write some irule to help.
There are two notes servers, client collect the server should use the server's hostname. The server discard any non...
Ken_Wong_48678
Aug 04, 2005Historic F5 Account
Thanks, I have tested my irule but encounter some problems. I hope you guys can give me some advices.
I use tcpdump to capture traffic and find out hostname in TCP Data like following pattern
_.L..... ........
......WE BCSD0AN.
But when I use the command "log local0. "Payload is [TCP::payload]"" in irule, I log the following results.
Aug 4 12:08:03 tmm tmm[640]: Rule test : Payload is ÒÇ@9ëÆ“z¶/@[†q‚iìŽHäJ»
Then, I try to use contains to check the whether the hostname in payload.
if { [TCP::payload] contains "WEBCSD0AN" } {
log local0. "WEBCSD0AN exist"
}
else {
log local0. "WEBCSD0AN don't exist"
}
I always get the results "WEBCSD0AN don't exist". Therefore, I cannot replace the hostname. Anyone know why? Is there any mistakes?
TIA
Regards,
Ken
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