How to configure the load balancer in the vault
  • 1 minute to read
  • Dark
  • PDF

How to configure the load balancer in the vault

  • Dark
  • PDF

Article summary

Once you've installed senhasegura Load Balancer, you must configure it within the senhasegura vault. To do this, follow the steps below:

  1. First, you need to create a network subinterface. To do this, open the subinterface configuration file by typing the command below:
vim /etc/network/interfaces.d/eth0:1
  1. In the configuration file, you must create the rules and properties for this subinterface. To do this, enter the information below:
 auto eth0:1
 iface eth0:1 inet static
 	address <VIP_IP_ADDRESS>
 	pre-up arptables -t filter -F INPUT
 	pre-up arptables -t filter -F OUTPUT
 	pre-up arptables -t filter -A INPUT -d <VIP_IP_ADDRESS> -j DROP
 	post-up arptables -t filter -A OUTPUT -s <VIP_IP_ADDRESS> -j mangle --mangle-ip-s <IP_DA_ETH0_DO_SERVIDOR>
  1. In the file, you'll notice two variables related to the environment you're configuring. So pay attention to these variables:
    1. <VIP_IP_ADDRESS> must be replaced by the same VIP address configured when installing the load balancer.
    2. <IP_DA_ETH0_DO_SERVIDOR>, which must be replaced by the IP address of the senhasegura vault's network interface.
  2. Save and close the file with the :wq! command.
  3. With the configuration file created, you'll need to apply the settings. To do this, run the command:
ifup eth0:1
  1. Validate the IP address configuration with the following command:
ip a

The command output should look like below:

1: 	lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
	link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
	inet scope host lo
		valid_lft forever preferred_lft forever

2: 	eth0: <BROADCAST,NULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
	link/ether 08:00:27:b3:b8:dc brd ff:ff:ff:ff:ff:ff
	inet brd scope global dynamic eth0
		valid_lft 82768sec preferred_lft 82768sec
	inet brd scope global secondary eth0:1
		valid_lft forever preferred_lft forever

Once the configuration is complete, the vault's license will expire and must be renewed.

Do you still have questions? Reach out to the senhasegura Community.

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.