Forum Discussion
irule for https 2 http for specific IP
Thanks for the response. I'm afraid that we have different definitions of what constitutes 'very easy' :-). Anyway, for release 12.1.2, already have an irule in place that redirects any http traffic to https similar to first link. Looks like this when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] } definition-signature SIGNATURENAME...
Want to keep this general rule but add an exception that 2 specific IP can continue to access over http. I tried by modifying existing rule and adding another condition on top: when HTTP_REQUEST { if { ([IP::addr [IP::client_addr] equals 10.x.x.01) || ([IP::addr [IP::client_addr] equals 10.x.x.05) } { HTTP::redirect "http://[HTTP::host][HTTP::uri]" } elsewhen HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] } definition-signature SIGNATURENAME... } } But it hated that.
Recent Discussions
Related Content
* 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