LSLB | Farms | Update | L4xNAT Profile

LSLB | Farms | Update | L4xNAT Profile

Global Settings for L4xNAT Farm Profile #

The L4xNAT farm profile creates layer 4 LSLB farms with exceptional performance, supporting more simultaneous connections compared to layer 7 load balancer cores. This enhanced performance at layer 4 contrasts with the advanced content handling capabilities of layer 7 farm profiles.

Unlike layer 7 farm profiles, which typically support only ports 80 and 443, the L4xNAT farm profile can utilize multiple ports, including port ranges.

This section provides detailed instructions on configuring an L4xNAT farm profile, emphasizing the use of Farmguardian for backend monitoring since this profile lacks built-in health check functionality.

Pay attention to the Status indicator and the Actions section in the upper right corner. The Actions available in this section allow you to perform operations such as Restarting, Starting, or Stopping the farm.

relianoid v8 load balancer farm status actions

These are the Status color indicators and their meanings:

Green: Means UP. The farm is running and all backends are UP or the redirect is configured.
Red: Means DOWN. The farm has stopped.
Black: Means CRITICAL. The farm is UP but there is no backend available, or all backends are in maintenance mode.
Blue: Means PROBLEM. The farm is running but at least one backend is down.
Orange: Means MAINTENANCE. The farm is running but at least one backend is in maintenance mode.

These color codes are the same all over the graphical user interface. Find an in-depth explanation about these color codes in the LSLB Farms Section.

Basic configuration #

These are the parameters for the L4xNAT profile.

Name. A label that easily identifies a farm service. To change this value, you must stop the farm first. Ensure that the new farm name isn’t already in use or else an error message will appear.

Virtual IP and Port. These specify the address and port on which the farm will listen internally within the appliance. If you wish to modify these fields, ensure that the new virtual IP and virtual Ports are not currently in use by another farm. Once you have made the changes, save them, and the farm service will automatically restart.

To select a single port or a range of virtual ports in the L4xNAT farm profile, a Protocol type is mandatory. In case the protocol is set to ALL, the farm will listen on all ports from the virtual IP. The virtual port will not be editable and will be set with an asterisk (*).

Once TCP, UDP, or any other protocol is selected, use it to specify a port, several ports, or port ranges.

Advanced configuration #

relianoid v8 load balancer lslb l4nat advanced

Protocol Type #

This field lists all the supported protocols on the load balancer. By default, the farm uses the TCP protocol.

ALL. The farm will listen for inbound connections to the current virtual IP and port(s) over all protocols. If you selected this option, the virtual port will change to the default “*“, and you’ll not edit it. So, the farm will listen through all ports.
TCP. Enabling this option allows the farm to listen for inbound TCP connections to the current virtual IP and port(s).
UDP. Enabling this option allows the farm to listen for inbound UDP connections to the current virtual IP and port(s).
SCTP. Enabling this option allows the farm to listen for inbound SCTP connections to the current virtual IP.
SIP. Enabling this option allows the farm to listen for inbound UDP packets to the virtual IP and the default port, 5060. The farm will then parse the SIP headers of each packet to be correctly distributed to the backends.
FTP. Enabling this option allows the farm to listen for inbound TCP connections to the current virtual IP and the default port, 21. The farm will then parse the FTP headers of each packet to be correctly distributed to the backends. Two modes are supported: The Active and the Passive mode.
TFTP. Enabling this option allows the farm to listen for inbound UDP packets to the current virtual IP and the default port, 69. The farm will then parse the TFTP headers of each packet to be correctly distributed to the backends.
PPTP. Enabling this option allows the farm to listen for inbound TCP connections to the current virtual IP and port. The farm will then parse the PPTP headers of each packet to be correctly distributed to the backends.
SNMP. Enabling this option allows the farm to listen for inbound UDP packets to the current virtual IP and port. The farm will then parse the SNMP headers of each packet to be correctly distributed to the backends.

NAT Type #

The NAT Type functionality within the appliance governs all the layer 4 operations. Choosing the appropriate option for your infrastructure will depend on the specific network architecture defined in your environment.

sNAT / default NAT mode #

The NAT mode or SNAT (source NAT) uses the farm’s Virtual IP as the source IP address to connect to the backend servers. Therefore, the backend servers shouldn’t know the original source IP address of a web client at TCP, UDP, or any other layer 4 protocol. This way, the backend responds to the load balancer, then the load balancer will respond to the client. This topology permits the deployment of a one-armed load balancer (load balancing with 1 network interface).

relianoid v8 load balancer l4xnat snat mode

dNAT mode #

In DNAT (Destination NAT) mode, we shall use the client IP address to connect with a backend server. As a result, the backend will directly respond to the client IP. In this case, the load balancer IP should be configured as the backend’s default gateway, effectively separating the backend network from the client service network. This topology establishes transparency between clients and backends.

relianoid v8 load balancer l4xnat dnat mode

DSR mode #

In DSR mode, the client connects to the load balancer’s Virtual IP (VIP). The load balancer then alters the Destination MAC address by changing it to that of a backend server without changing any IP address. However, all backend servers must be on the same network as the load balancer. When a backend server receives and processes the request, it directly responds to the client, bypassing the load balancer.

relianoid v8 load balancer l4xnat dsr mode

Requirements for DSR:

1. The VIP and backends must be in the same network
2. The Virtual Port and the Backend Ports must be the same
3. One must configure the backends loopback interfaces with the same IP address as the VIP configured in the load balancer and disable ARP in this interface.

Linux backends

root:~# ifconfig lo:0 192.168.0.99 netmask 255.255.255.255 -arp up

Disabling invalid ARP responses in the backend.

root:~# echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
root:~# echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce

Windows backends

1. Start > Settings > Control Panel > Network and Dial-up Connections.
2. Right-click on your network adapter and click Properties
3. Only Internet Protocol needs to be selected (remove the selection of “Client for MS Networks” and “File and Printer sharing”)
4. TCP/IP Properties > Enter IP address of the VIP in RELIANOID ADC farm. The default gateway is not required and the mask is 255.255.255.255
5. Set Interface Metric to 254. This configuration is required to stop replying any ARP response to the VIP
6. Press OK and save the changes.

First, configure the strong host security model to enable traffic reception from RELIANOID ADC on the NIC interface. Additionally, allow RELIANOID ADC to send and receive traffic through the default NIC interface. Open the command prompt as an administrator and execute the three provided commands.

netsh interface ipv4 set interface NIC weakhostreceive=enabled
netsh interface ipv4 set interface loopback weakhostreceive=enabled
netsh interface ipv4 set interface loopback weakhostsend=enabled

Note: Change the NIC and loopback to the default Interface Names of your Windows computer.

Stateless dNAT mode #

With Stateless DNAT, the load balancer modifies the destination address to the backend address and passes it on without keeping track of any connection details. This approach reduces the burden on the system as it is implemented early in the data flow. It is most suitable for layer 4 protocols with heavy traffic and for protocols that are not focused on maintaining connections or streams, like RTP or SYSLOG UDP mode.

Logs. To save the details about the connections received on the farm, enable the Log command. This is only recommended for debugging or monitoring purposes because it will slow traffic handled by the load balancer.

Service settings #

The service created in the L4 layer provides the following configuration options for managing the data paths and connection behaviors.
relianoid v8 load balancer l4xnat scheduler

Load balancing scheduler #

This field specifies the load balancing algorithm to be used for determining the backend server. By default, the load balancing algorithm will Weight: connection linear dispatching by weight

Weight: connection linear dispatching by weight. Balances the connections depending on the weight value that has been assigned to each backend. The requests are delivered using a probabilistic algorithm using the defined weight.
Source Hash: Hash per Source IP and Source Port. Balances the packets that match the same source IP and port to the same backend using a hash scheduler.
Simple Source Hash: Hash per Source IP only. Balances the packets that match the same source IP to the same backend using a hash scheduler.
Symmetric Hash: Round trip hash per IP and Port. Balances the packets that match the same source IP and port, and the destination IP and port. So, it could hash a connection in both ways (during inbound and outbound).
Round Robin: Sequential backend selection. It balances each incoming connection to a backend, sequentially switching between backends.
Least Connections: connection always to the least connection server. Selects the backend with the least number of active connections to ensure that the traffic load of the active requests is balanced with the traffic load of the most connected available real server.

Persistence #

This field determines persistence is to be used in the configured farm. By default, No persistence is used.

relianoid v8 lslb farms update l4xnat persistence

No persistence. The farm will not use any persistence between the client and the backend.
IP: Source IP. With this option, the farm will assign the same backend for each incoming connection depending on the source IP address only.
Port: Source Port. With this option, the farm will assign the same backend for each incoming connection depending on the source port only.
MAC: Source MAC. With this option, the farm will assign the same backend for each incoming connection depending on the link-layer MAC address of the packet.
Source IP and Source Port. With this option, the farm will assign the same backend for each incoming connection depending on both, source IP and source port.
Source IP and Destination Port. With this option, the farm will assign the same backend for each incoming connection depending on both, source IP and destination port.

Farmguardian #

L4xNAT farms lack built-in health checks for backends, making it necessary to configure Farmguardian for this virtual service.

You can assign either the default or personalized advanced health checks to this service from any existing farmguardian check.

relianoid v8 load balancer lslb farms update l4xnat farmguardian

For further information about Farmguardian, go to the Monitoring > Farmguardian section.

Notice that after selecting the farmguardian, it will be automatically applied to the farm.

Backends #

In this section, you will be able to modify the configurations of backends or add new ones to a given farm.

Create backend. This button will show the Add backend form when clicked. The configurations are meant to add a new backend to a given farm.

relianoid v8 lslb farms update l4xnat backends create

  • Alias. This field shows the drop-down list with all the available backend aliases.
  • IP. The Network-Layer IP Address to be used when forwarding traffic to the backend.
  • Port. The Port to be used when forwarding traffic to the backend.
  • Priority. The priority value for the current real server. Lower values have higher priority. The default service priority value is 1. When a backend fails, the service priority will be increased by 1. When the backend goes live again, the service priority value will be decreased by 1. Active backends contain priority values less than or equal to the service priority.
  • Max. Conns. The number of connections that will be allowed to connect to the backend. If the limit is reached, the new connections will be discarded.
  • Weight. The backend weight for traffic balancing when the weight algorithm is set. This weight determines how preferable the backend is against other backends. This field allows integer values higher than or equal to 1 (lowest value).

Bulk actions. On the right side of Create Backend, you will see the following actions which could be performed for one or more backends at the same time.

relianoid v8 load balancer bulk actions dropdown
Actions: These are the actions for configuring the backends.

  • Enable Maintenance. This action is available if the backend is up. It puts a real backend server in maintenance mode. Therefore, no new connections will be redirected to it. There are two methods for enabling the maintenance mode:
    • Drain Mode. Keeps the established connections and persistence if enabled, but will not accept new connections.
    • Cut Mode. Directly drops all active connections against the backend, closing any connection between the backend and clients
  • Edit. Opens the edit form, the same as the add form, to change any backend value.
  • Disable Maintenance. This action is only available if the backend is in maintenance mode. It will enable new connections to be forwarded to the backend server again.
  • Delete. Remove the backend server of the virtual service. If the backend has an alias, the alias won’t be deleted.

Backends. This table shows all the backends already configured on the farm.

relianoid v8 lslb farms update l4xnat backends

  • Alias. A backend Alias if one alias has been previously defined for the backend.
  • IP. The IP address of the backend where the connections will be forwarded.
  • Port. The port where the connections will be redirected to at the backend. If a blank space or an asterisk‘*’ is set, connections will be redirected to the same port that was received.
  • Priority. The priority value for the backend server. The accepted value is an integer higher or equal to 1. A lesser value indicates higher priority to the current real server. By default, a priority value of 1 will be set.
  • Weight. The weight value for the current real server. A higher value indicates more connections delivered to the current backend. By default, a weight value of 1 will be set.
  • Max. Conns. This value will be the maximum number of flows or established connections to a certain backend. If the limit of clients connected to a given backend is reached, the backend will not accept more traffic. The client will reconnect to another suitable backend. The default value is 0, which means unlimited.

IPDS Rules for L4xNAT farms #

This section allows you to enable IPDS rules. The list displays different types of protection with a checkbox to enable them. For further information, please refer to the specific documentation for IPDS > Blacklists rules, IPDS > DoS rules, IPDS > RBL rules or IPDS > WAF rules specific documentation.

relianoid v8 load balancer lslb http farms update ipds

For each of the four types of IPDS rules —Blacklist, DoS, WAF, and RBL— there are two lists: Available and Enabled. A chain icon is also present. In the Available list, you’ll see all the rules of the same type that can be applied to a given farm. In the Enabled list, you’ll see the rules of the same type that are currently applied to the selected farm. Each rule has a status symbol indicating whether the rule is stopped (red) or running (green).

To modify a rule, click the edit icon, which will allow you to change the rule parameters or start/stop the rule. Note that you cannot create a new rule within this farm view; you must do so through the IPDS section.

To add a rule, click on the desired rule and then click the right single arrow. Alternatively, you can select multiple rules by holding the shift key while selecting the rules you want to add, then click the right single arrow. To add all available blacklists, click the right double arrow.

To delete one or more rules, select them and click the left arrow, or click the double arrow to remove all.

SHARE ON: #

Powered by BetterDocs