How to Block Ports while using Wildcard Virtual Service
The LoadMaster can blacklist or whitelist IPs but you cannot block ports using an ACL. This article shows you how to block a port for a particular IP and port combination. If you are using a wildcard Virtual Service, which is marked with '*' symbol as the port number, it enables all ports to connect to that VIP.
If you want to block a specific port from accessing this Virtual Service, create a new Virtual Service using the same VIP and the port you want to block.
By adding a real server to the Virtual Service that has the port you want to block, you mark the Virtual Service as up and healthy. If the service is marked as down, then connections go to the wildcard Virtual Service. Therefore, you should use either a ping health check or set the health check to 'None'. When health check is set to 'None', the LoadMaster assumes the Virtual Service is up and healthy. You always want the health check to pass.
After this is done, you can make a whitelist inside the new Virtual Service using the access control feature.
Insert 127.0.0.1 for a whitelist.
This allows only this IP, which is the localhost IP, and blocks every other connection from any IP trying to access this virtual service on this port.
The LoadMaster drops this packet in one of two ways. Both of these are configurable at System Configuration > Network Setup > Packet Routing Filter.
With the rejection method set to 'Drop', the LoadMaster will not reply.
With the rejection method set to 'Reject', the LoadMaster sends out an Internet Control Message Protocol (ICMP) Destination unreachable packet.