Forum Discussion
acgutierrez_123
Nimbostratus
Sep 12, 2013iRule to deny traffic from local network AND redirect to HTTPS
Hi all, I have this iRule that's currently working to only allow traffic from a network segment if the http request contains a certain uri, I also want it to be redirected from http to HTTPS but I'm ...
Colin_Walker_12
Sep 12, 2013Historic F5 Account
Yep. What will happen is if a user requests the page on HTTPS (port 443) it will just direct it to the pool as normal. If the request isn't coming in on HTTPS (I.E. not port 443) then it will redirect to the same host and URI combination but using HTTPS.
Is that what you're looking for?
Colin
- acgutierrez_123Sep 12, 2013
Nimbostratus
that's exactly it :) - Colin_Walker_12Sep 12, 2013Historic F5 AccountThen you should be all set. ;)
- acgutierrez_123Sep 12, 2013
Nimbostratus
so it doesn't matter if the pool that the requests are being redirected to is not 443? - acgutierrez_123Sep 12, 2013
Nimbostratus
I got this error: 01070151:3: Rule [/Common/irule_inscripcion-web] error: line 2: [parse error: PARSE syntax 74 {syntax error in expression " ([HTTP::uri] contains "inscripcion-web") and ([IP::addr [IP...": looking for close parenthesis}] [{ ([HTTP::uri] contains "inscripcion-web") and ([IP::addr [IP::client_addr] equals 192.168.147.0/24) ] }] I'm not so good with syntax, can you please help me? - Colin_Walker_12Sep 12, 2013Historic F5 AccountDon't you hate typos? My fault, updated the above code to include the missing bracket. As far as the redirection ... you'll definitely need a 443 pool to handle the HTTPS requests, no question. The pool you're redirecting from doesn't have to be 443 though, no. You can forward from 80 to 443 via a redirect no problem.
- acgutierrez_123Sep 12, 2013
Nimbostratus
I fixed it, but it doesn't work :/ - acgutierrez_123Sep 12, 2013
Nimbostratus
So I would need another line in the irule to redirect to a HTTPS pool? - boneyardSep 13, 2013
MVP
it doesn't work is kinda vague, what happens exactly? can you make a capture to see what happens? - acgutierrez_123Sep 13, 2013
Nimbostratus
the redirection to https works, but the page displayed has a page not found message. The client says the https service in their servers is configured in port 8691, but I think I still need to redirect it to a HTTPS (443) pool right?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects