Forum Discussion
SNAT configuration - Inbound /Outbound
We are configuring 2 servers(HA - always on-line)) which hosts 2 different portals.
1) Administrator & Customer care 2) Web user
These 2 servers have Private IPs(Example :- 178.18.185.43 & 178.18.185.44 and ports which are opened are 8080, 9999) through which portals are accessed.
I want to access these portals through a single IP.
Public IP may be 10.0.0.1 which will be NATed to 178.18.185.7(in the routers)
Our expectation is to have a Load balanced setup where in we can access the portals running in both the machines through a Single IP.
Even though i have created a Virtual servers & Standard SNAT. I am not aware of any technique to troubleshoot or do it the right way as i am trying for the first time working in F5
Thanks,
jagan
2 Replies
- nitass
Employee
is this what you are looking for?
Name Based Virtual Hosting with LTM by Deb
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/131/Name-Based-Virtual-Hosting-with-LTM.aspx
Select pool based on HTTP host header by randylf
http://devcentral.f5.com/wiki/iRules.Low_maintenance_dynamic_pool_select_based_on_HTTP_host_header.ashx
hope this helps. - Michael_Yates
Nimbostratus
Hi jagannathks,
You stated that you have two different portals that you want to access via the same Virtual Server on the Big-IP. Yes, you can do this, but the how depends on the details.
I assume that the ports are running on different servers.
1. Administrator & Customer Care - > 178.18.185.43 Port 8080
2. Web User - > 178.18.185.44 Port 9999
Public IP Address will be a translated to the Virtual Server IP Address (178.18.185.7).
I assume that you will have two different URL's (one for each Portal):
http://administration.website1.com
http://userportal.website2.com
Create two pools.
pool.administration.website1.com (Member: 178.18.185.43 Port 8080)
pool.userportal.website2.com (Member: 178.18.185.44 Port 9999)
Now you just need to route the traffic to the proper pool bases on which portal they need to go to. The Port Translation between the Virtual Server Port (80/443) will occur by default (Port Translation) on the Virtual Server, so it should not be a concern.
Apply iRule:when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "administration.website1.com" { pool pool.administration.website1.com } "userportal.website2.com" { pool pool.userportal.website2.com } } }
If any of my assumptions are incorrect, just provide additional detail and we can help you get it all figured out.
Hope this helps.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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