Forum Discussion

fwsdave_31105's avatar
fwsdave_31105
Icon for Nimbostratus rankNimbostratus
Aug 29, 2007

iRule for http>https does not work outside WAN

I am an F5 neophyte and have run into my first iRules issue (at least I think it's an iRules issue). We have an iRule for a http>https redirect which works fine as long as the client request originates from inside our WAN. Clients outside the WAN get a "Page Cannot be Displayed" error message. If an outside user connects via a VPN session the redirect works. Our rule is a follows:

 

when HTTP_REQUEST {

 

HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]

 

}

 

 

Would appreciate any ideas as to why this is failing for outside connections (the vast majority of our users are external to our WAN).

 

 

Thanks...
  • Hi,

     

     

    I'm relatively new to iRules as well, so I may be completely off track with this, but does the URL use a port that could be blocked by your corperate firewall? It would certainly explain why the redirect works internally and via VPN as any port blocking being done might not apply to your internal/vpn networks.

     

     

    Craig
  • Yep, that was it. Thanks for responding. I was looking for the complicated cause when the simple one was staring me in the face the whole time...