Forum Discussion
IDRES_Tarek_329
Nimbostratus
Aug 09, 2017IRULE To MATCH TELENT AND HTTP HOST
Hi, I am a beginner on F5 and i need to forward a TELNET flow from a specific host to pool using Irule. In other words, i need those conditions :
IF TCP port = 23 AND HTTP host == TOTO then FORWARD to pool
- Jad_Tabbara__J1
Cirrostratus
Hello Tarek,
Try this irule
when HTTP_REQUEST { if { ([TCP::local_port] eq "23") && ([string tolower [HTTP::host]] eq "toto")} { pool pool_name } }
Regards
Hi,
You can use an irule to forward traffic to a specific pool :
when CLIENT_ACCEPTED { if { [TCP::local_port] eq "23" } { pool mypool } }
While using telnet is different than HTTP, you can't use HTTP commands. You should stick at the TCP layer to manipulate telnet flows.
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