Forum Discussion

Ja332_355911's avatar
Ja332_355911
Icon for Nimbostratus rankNimbostratus
Mar 16, 2018

Redirect traffic Proxy

Hello,

 

I have a LTM working as a gateway of a network.

 

I want all traffic with destination to some port be redirected to a explicit proxy.

 

For example, a connection with destination 1.23.2.4 tcp/80 be redirected to proxy 192.168.1.1 tcp/8080, so F5 must redirect the connection to 192.168.1.1/8080. I think that with data "CONNECT 1.23.2.4 80 + original content".

 

I don't know if is possible to do this, anybody knows?

 

Thanks. Thanks.

 

1 Reply

  • dluzzi's avatar
    dluzzi
    Icon for Nimbostratus rankNimbostratus

    If your trying to redirect to different pools you can use an irule similar to this:

    rule IP_Address{
        when CLIENT_ACCEPTED {
        if{[[IP::remote_addr] equals "1.2.3.4"]}{
            pool 192_pool}
            else{
            pool default_pool}
            }
            }
    

    Pool 192_pool would contain host 192.168.1.1:8080