Forum Discussion
how to setup a vip listening on 2 different ports
I have an application where it need to listen on 2 different port ,how I can configure the LTM
10.129.41.222 tcp eq www
pool members serverfarm host 9095 predictor leastconns rserver s01d 9095 probe app_1 inservice rserver s02q 9095 probe app_2 inservice
10.129.41.222 tcp any
Pool members serverfarm host _http predictor leastconns probe HTTP_PROBE_9095 rserver s01d 9095 inservice rserver s02q 9095 inservice
and also health check
probe http app2_2 description "This probe is for port 9095" interval 10 faildetect 2 passdetect interval 10 passdetect count 2 request method get url http://s02q.cgi.com:9095/Customer/Updatewsdl expect status 200 200
6 Replies
You will either need to set up two separate virtual servers using the same IP address on each one, but specifying a different port on each one, or you will need to set up a single virtual server for that IP address and have it listen on all ports. Then you will need to restrict the access via an iRule.
- sandiksk_35282
Altostratus
the main req is user should be able to access the vip without specifying yhe port 80 , web traffic and also can access the application through telnet specifying the port 9095.
can I achieve this by setting the vip to listen on all ports , port translation enabled,address translation enabled. pool members listening on all ports or do I need to specify the port
and also if I need to monitor the health check of the server can I specify the whole url in the get string in monitor http://s02q.cgi.com:9095/Customer/Updatewsdl
If I were doing this, I think I would set up two virtual servers, one listening on Port 80 and one listening on port 9095. I would have two separate pools also, for 80 and 9095. If for some reason you need to ensure that a user, who is accessing the server by both 80 and 9095, always ends up on the same server, you can use source address persistence and make sure the box Match Across Services is checked.
By doing it this way, you can disable the port 80 and port 9095 pool members separately if necessary. Also you can set up separate monitors for both services.
- sandiksk_35282
Altostratus
I didn't get this box Match Across Services is checked.Please let me know where I have to look for this option.
And how about setting a monitor to check the status of the webpage,with a return status code.
probe http app2_2 description "This probe is for port 9095" interval 10 faildetect 2 passdetect interval 10 passdetect count 2 request method get url http://s02q.cgi.com:9095/Customer/Updatewsdl expect status 200 200
- David__Pasch
Altostratus
"I didn't get this box Match Across Services is checked. Please let me know where I have to look for this option."
It is in the persistence profile.
David
- sandiksk_35282
Altostratus
running into any issue with the vip setup as the pool member is getting timed out after taking a maximum of 10 connections . Is it anything to do with the vip setup as I am not limiting the no of connections to the pool member or the primary server.
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