Initial thoughts. One IP would need a wildcard or SAN certificate, or even SNI if the clients support this and you’ve got a later version of TMOS (v11.1 or later I think?). This is to prevent certificate issues.
You’d need a clientSSL profile to decrypt the SSL connection and then an iRule / Http class profile or local traffic policy (if TMOS 11.4 or above) to do your redirection based on host header.
How Can i redirect Internet users request hitting on F5 Public IP address to be redirected to Internal Websites which are hosting on different VIP.
Do you meant to redirect to a new URI, as your example shows above? Or do you mean redirect to another, seperate VIP? If a VIP then this would need to be publicly routable.
I think it’s not very clear what your problem is… Did you try something and it does not work? Also, what do you mean by “go”, in the for example: " it should go to the Internal website http://abc.com/url1 " You are going to send an http redirect, or you plan on rewriting the request? or just routing to specific pool?
This is supported on BIGIP. As Nathan said, be careful regarding SSL certificate presented to the client.
Anyway, for a technical standpoint, LTM is a reverse proxy. So, in your case, you need to create 1 Virtual Server (you public DNS will redirect users to this VS). You need to create 1 pool per internal application if each application has a different IP address (1 pool for abc, 1 pool for xyz …).
When it’s done, you need to create an iRule which selects the right Pool depending the hostname [HTTP::host]. You can also change the uri if needed [HTTP::uri]
I have configured three URL against three different VIP and these are working fine. Now I want to advertise these websites over the Internet for external users as well. I want to use only one Public IP address and want to achieve load balancing..
1 virtual, public address, wildcard cert, clientssl profile. 3 pools ( I presume internal VIPs point to different pools?). Finally an irule to check http host header and change uri as required. Check out http::ur command on DC.
I understand your public IP address issue. This the reason why irule is needed. Keep in mind there is no redirection when you are on internet. We are talking about rewriting. Users will still use the same public ip address. The bigip will change the URL if needed.
Follow our advices regarding the configuration.
Search pool selection in Devcentral. You will understand.
Wasim, Can you be more accurate regarding the terms used.
Server 1 is a internal server ? Or a Virtual Server ? I suppose server 1 and 2 are internal server.
I really need a real example with the real fqdn. Because http://laserfiche/Laserfiche8 is not a public URL. So you can’t redirect an internet user to this url.
Redirect is a 302 HTTP code. So the user will be redirected to this URL. And unfortunately, this URL is not routed on internet.
What you are requesting is not redirect but pool selection. Actually, you want to select the right server depending the hostname.
You need to create 3 pools :
Pool_1 : IP address server 1 + port 80
Pool_2 : IP address server 1 + port 8080
Pool_3 : IP address server 2 + 7001
Create an iRule like that (just an example)
when HTTP_REQUEST {
if { [HTTP::host] eq "https://care.abc.com" } {
pool Pool_2
}
}
In this case, when the user will connect to https://care.abc.com, the BIGIP will open a connection to the server 2 with port 8080.
You need to adapt this irule for your use case with the URI change as well. Keep in mind that the user is on internet and the hostname will never change on his side. Your irule will select the right server and change the port and the URI if needed.