Inbound load balancing can be set up as load balancing or fail over mode, the same way it can be done for outbound load balancing. To enable Inbound load balancing follow the steps below.
Setup the virtual servers after you have created the pool.
- Go to LAN Services >> Load Balancer >> Pools
- Click on the "Add New" button in the "pools" section
- Mode - Select Load balance
- Description - Give a description for this loadbalance pool
- Port - This is the port your servers are listening on. Enter the port number here.
- Retry - Optionally specify how many times to retry checking a server before declaring it down.
- Monitor - Select the protocol to monitor - ICMP/TCP/HTTP/HTTPS/SMTP
- Server IP Address - Enter the IP address of the server
- Select and add the pool members.
- Members in the Pool Disabled box do not take part in the load balancer pool.
- Members in the Enabled box are active in the loadbalancer pool.
- You can shift the members between Disabled and Enabled box by first selecting the member and using the buttons between the boxes to shift members between the boxes.
- Click on Save when done.
Before you have the inbound Load Balancer up and running you need to create an "Alias" and specify the firewall rules. Creating an Alias and add the IP addresses of all the servers in the pool to this Alias.
- Go to LAN Services >> Load Balancer >> Virtual Servers
- Click on the "Add New" button to add virtual servers
- Name -- Enter a descriptive name for the virtual server
- Description -- Enter a short description
- IP address -- Here you enter the IP address of you WAN Link
- Port -- Enter the respective port
- Virtual Server Pool -- Here you enter the load balancing pool you have created
- Pool Down Server -- Enter the IP address of the server in case the pool is down
- Click on "Submit" button
Create a Firewall rule to allow the traffic to the servers in the Load balancer pool
- Go to Tools >> Aliases
- Click on the "Add New Alias" button
- Name -- Enter a name for the Alias
- Description -- Enter a description
- Type -- Select Type as "Hosts"
- IP -- Enter the ip address of the host
- Click "+" to add another IP address
- Click on "Save"
- Go to Security >> Firewall
- Select the correct WAN Interface if you have multiple WAN links.
- Click on the "Add New Rule" button to create a rule
- Action - Pass
- Interface - Make sure that the interface is correct
- Protocol - Choose the right protocol, TCP mostly
- Source - Define the source
- Destination - Select "Single host or Alias" and type the Alias name in the Light Blue coloured text field
- Destination port range - Specify the port range you have given in the load balancer pool
- Description - Give a description to identify the rule
- Click on "Save" and apply the changes.
Now your inbound load balancer server pool should be active and available from the Internet.