cancel
Showing results for 
Search instead for 
Did you mean: 

iRule

mbrunyak1
Nimbostratus
Nimbostratus

I have the below http iRule. Moving url to https and need to convert iRule for https use.

 

when HTTP_REQUEST {
if {[HTTP::header X-Forwarded-For] != ""} then {
persist uie [lindex [ split [lindex [HTTP::header values X-Forwarded-For] 0] "," ] 0]
} else {
persist uie [IP::client_addr]
}
}

1 ACCEPTED SOLUTION

You can see more info about the HTTP header X-Forwarder-For in this link:

https://support.f5.com/csp/article/K4816

Did you receive any error in /var/log/ltm when you try to access the new url ?

In SSH execute

tailf /var/log/ltm and test the application

View solution in original post

4 REPLIES 4

Sebastiansierra
Cirrocumulus
Cirrocumulus

Hi,

Did you test the irule in the new HTTPS URL? basically, the irule persists the IP using the x-forwarder-for header or the client_addr in the case the X-forwarder-for is not present, and this keep as HTTP no HTTPS because is a header in the packet, so this irule works without any modification.

Thank you. Yes I did test and it wasn't working. I thought maybe I had to modify for HTTPS

You can see more info about the HTTP header X-Forwarder-For in this link:

https://support.f5.com/csp/article/K4816

Did you receive any error in /var/log/ltm when you try to access the new url ?

In SSH execute

tailf /var/log/ltm and test the application

Thanks. I don't get any output from tailf /var/log/ltm