virtual server listen on multiple ports?

How do I make same virtual server listen on multiple ports? We have sharepoint app running on port 80. The explorer view works slows as windows default tries to use SMB port at first. Is there any way I can make the Virtual Server listen on SMB ports (137,138,139,445) along with 80. I am already using redirection in iRule. If possible then can I add this functionality in the existing iRule?

Just create multiple virtual servers with the same IP, but listening on different ports.

Is it possible to achieve that using an iRule?

How many ports are we talking about here? There are a couple of options, each with advantages/disadvantages…

--Matt

Ummm… not sure. Might be able to do it with iControl…

Can an iRule do icontrol I wonder? If so you could setup port-knocking on the F5… now THAT would be an interesting experiment…

You can either specify one port or all ports for a virtual server. As Matt alluded to, it makes sense to group the virtual servers by protocol. So if you’re using SMB ports, you could create a port 0 VIP and use an iRule to block access to all other ports (example: Click here). You could then create a port 80 virtual server which handles the HTTP traffic. The advantage to separate VIPs per protocol is that you can use protocol-specific profiles and iRules per virtual server.

And jsmccombs, there isn’t a way to call an iControl script directly from an iRule. Though I guess you could have an iRule log a message and configure syslog-ng to call an iControl script when a specific message is seen.

Aaron

I end up creating 3 VS’s. Port 80, 139 and 445 and the problem resolved. As pointed out by you yes there is disadvantage of using single VS. I had redirection iRule for port 80 VS, so basically http profile was must for me (and future needs). The other VS’s might not work correctly with http profile.

Thank you all for assistance.

My requirement is to create a virtual server on a range of ports with pool members listening on the same ports

UDP 8000-8999

example:

Need to configure Virtual server on port 8000-8999

Pool members:

Node1:8000-8999

node2:8000-8999

Is this possible through iRule

My requirement is to create a virtual server on a range of ports with pool members listening on the same ports

UDP 8000-8999

example:

Need to configure Virtual server on port 8000-8999

Pool members:

Node1:8000-8999

node2:8000-8999

Is this possible through iRule, please assist

My requirement is to create a virtual server on a range of ports with pool members listening on the same ports you can configure virtual server and pool member listening on “any” port. then reject/drop connection to port number outside 8000 - 8999 in irule.

UDP::local_port

Did you resolve this, i have the same situation. I need to have a range of ports that the server is listening on and a pool range of the same.

similar problem but some what different. I have configured a virtual server in one of our testing environment service port 0 and it’s pool members service port as 0 and added a wildcard monitor tcp with 6410 as alias port. But I’m getting complaints that when the user trying to access from other server which is in other testing environment but they can’t access that. everything is okay like routing between 2 environments and no blockage between them. Any thoughts on this.

It may be best to post a new question with more detail.

  1. Protocol attempting to be balanced.
  2. Symptoms being reported by users.
  3. Current virtual server and pool configuration.
  4. Is this a recent problem on an old configuration, or an attempt to create a new configuration?

If you are attempting to load balance SMB or a similar protocol, you may want to incorporate some type of persistence if you haven’t already.