IRULE 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

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.