Forum Discussion
CK_Then_103583
Nimbostratus
Jun 13, 2014iRule for port translation of single public IP address to multiple real server IP
Hi,
Need help on iRule to port translate a single public address to multiple real server private IP.
Example.
1.1.1.1:15001 --> 192.168.1.1:80 (if the connection is HTTP)
--...
Kevin_Davies_40
Nacreous
Jun 13, 2014Call me a liar.....
when HTTP_REQUEST {
Check if the client used an SSL cipher
if {not ([catch {SSL::cipher version} result]) && $result ne "none"}{
Client did use a cipher
log local0. "\$result: $result. Allowing encrypted request."
if {[HTTP::path] eq "/"}{
HTTP::redirect "https://[getfield [HTTP::host] : 1]/Login.jsp"
}
} else {
Client did not use a cipher
log local0. "\$result: $result. Redirecting unencrypted request."
HTTP::redirect "https://[getfield [HTTP::host] : 1]/Login.jsp"
}
}
- Kevin_Davies_40Jun 13, 2014
Nacreous
But does this work? As I understand it, if you have an SSL profile on the Virtual server it will try to negotiate SSL and this will cause a protocol error with the client browser.... there is something missing from this picture.
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
