Forum Discussion
carter91_13591
Feb 26, 2010Nimbostratus
SSL over port 8080
I have a web server that has two sites running on it. One on port 80, and the other on port 8080.
I have a 3 virtual servers created on the F5. One for port 80, one for port 8080, and another for 443.
On the one for port 80, I have an iRule attached, so when somebody types in http://servername.domain.com it redirects it automatically to https://servername.domain.com
It works quite well.
I need to get SSL working for the one on port 8080, and can't seem to figure it out. I tried using my originally iRule that just does a redirect to https: like I have for the site on port 80, and it didn't work. I created a 2nd iRule and just manually typed in the URL I wanted it to direct it to instead of the host value (https://servername.domain.com:8080)which didn't work either.
I can't seem to get the site running on port 8080 to work with SSL.
Any hints?
Just using the standard iRules for http to https redirects:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host]
}
Also tried:
when HTTP_REQUEST {
HTTP::redirect https://servername.domain.com:8080
}
- hooleylistCirrostratusWhich port(s) do you want clients to connect to the VIP(s) on? Typically, you'd have an HTTP VIP running on port 80 and an HTTPS VIP running on port 443. And then which port(s) do you want LTM to send requests to the pool member(s) on for each VIP? The VIP port and client/server side SSL configuration is independent of the pool member(s) port(s). If you enable port translation on the VIP, LTM will translate the destination port when establishing a connection to the pool members to the port the pool member is defined on. LTM will decrypt SSL on the clientside connection if you add a client SSL profile to the VIP.
- carter91_13591NimbostratusYeah, we have set up similar ones in the past, and like you said originally, I had two VIPS, one listening on port 80, and the other on 443.
- hooleylistCirrostratusIf you want to have an HTTP VIP that redirects all requests to HTTPS you can create an HTTP VIP with an HTTP class or iRule which redirects to https://[HTTP::host][HTTP::uri]. You can then define an HTTP pool of servers on port 80 and/or 8080. Use this HTTP pool on an HTTPS VIP defined on port 443. Add a client SSL profile to the VIP and you should be set.
- Elias_O_16228NimbostratusI know this thread is old but I have a similar situation but a little bit different. Hoping to pick on your brains.
- nitassEmployeecan you post the virtual server and pool configuration?
- Kevin_StewartEmployeeDo you want to access the HTTPS application through the LTM with this port or with the standard 443? If the former, is there a chance that your http redirect does not include the port number? You would necessarily need to redirect to "https://[HTTP::host]:9089[HTTP::uri]". Otherwise you just need client and server SSL profiles, an HTTP profile, and a pool of servers listening on port 9089. Do you see anything unusual in the LTM logs?
- Elias_O_16228NimbostratusDo you want to access the HTTPS application through the LTM with this port or with the standard 443?
- Kevin_StewartEmployeeI would do two things:
- Elias_O_16228NimbostratusIf I remove the irule which is the redirect that contains the port 9089. Maybe you thought I am using "traffic class". No traffic class.
- nitassEmployeeJust to reiterate: I want to access https://10.10.10.10:9089. This is working without LTMisn't 10.10.10.10 virtual server address? why do you say it works without ltm??
ltm virtual HTTPS-TEST-Virtual-Server { destination 10.10.10.10:9089 fallback-persistence source_addr ip-protocol tcp mask 255.255.255.255 persist { cookie { default yes } } pool HTTPS-TEST-Pool profiles { Client_Profile { context clientside } server_side_profile { context serverside } http { } tcp-lan-optimized { context serverside } tcp-wan-optimized { context clientside } } } ltm pool HTTPS-TEST-Pool { members { 9.9.9.9:9089 { session monitor-enabled } 9.9.9.10:9089 { session monitor-enabled } } monitor min 1 of { https } }
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