How to install and setup Snapt - Load Balancer in Centos

To install and setup Snapt- Load Balancer in Centos

Load Balancer is an agent to control the network traffic over your web server. It increases the capacity and reliability of all the applications. Snapt tool is used to setup load balancer in Graphical User Interface. Installation of Snapt is explained in this article.

Testing Environment

Load Balancer IP &ndash 192.168.5.141
Web Server 1 IP &ndash 192.168.5.142
Web Server 2 IP &ndash 192.168.5.148
Web Server 3 IP &ndash 192.168.5.149


Requirements
Make sure that your system contains http package and haproxy packages.
All the services should be active in all the above mentioned web server.

After setting up the requirements, download the Snapt tool from its official link https://www.snapt.net/


After downloading the package, extract it into the “ /” directory.

[root@linuxhelp ~]# ls 
anaconda-ks.cfg Desktop Documents Downloads initial-setup-ks.cfg Music Pictures Public SnaptBundle-10106769.tar.gz Templates Videos
[root@linuxhelp ~]# tar -C / -xzvf SnaptBundle-10106769.tar.gz 
usr/local/snapt/program/config/serial.snp
usr/local/snapt/program/config/license.snp
usr
usr/local
usr/local/snapt
usr/local/snapt/etc
usr/local/snapt/etc/lighttpd.conf
usr/local/snapt/etc/php.ini
usr/local/snapt/etc/pear.conf
usr/local/snapt/etc/mimetypes.conf
usr/local/snapt/share
.
.
.
usr/local/snapt/var
usr/local/snapt/var/log
usr/local/snapt/var/log/error.log
usr/local/snapt/var/run


Run the following command to install the lshw package for snapt.

[root@linuxhelp ~]# yum install lshw &ndash y 
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
Resolving Dependencies
-->  Running transaction check
--->  Package lshw.x86_64 0:B.02.17-5.el7 will be installed
-->  Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================
Installing:
lshw x86_64 B.02.17-5.el7 base 275 k

Transaction Summary
===================================================================================================================================================================================
Install 1 Package
.
.
.
Transaction test succeeded
Running transaction
Installing : lshw-B.02.17-5.el7.x86_64 1/1
Verifying : lshw-B.02.17-5.el7.x86_64 1/1
Installed:
lshw.x86_64 0:B.02.17-5.el7
Complete


Once the extraction is completed, start the snapt by running the following command.

[root@linuxhelp ~]# /usr/local/snapt/start.sh 
Starting Snapt Standalone Webserver..
o Cleanup
o LD setup.
o Copy files.
o PHP link created.
o SQLite3 found.
o www group added.
o Adding www user.
o Adding cron task.
o Setting permissions.
o Setting wrapper suid.
o Starting webserver.
Snapt started on port 8080.


Open the browser and call the URL https://localhost:8080

Now lets start with the basic installation of Snapt.

Choose your desired OS.


After the installation, Login to Snapt using the credentials.

Now we have successfully logged in. Add the necessary plugins to start using it.

Click “ Plugin Management” to add the required plugins.

Install the plugins such as “ Snapt Balancer” , “ Snapt Cache” , “ Snapt Accelerator” , etc., as required.

Inside the “ Misc” tab, install “ Snapt Backup” and “ Snapt Redundancy” .

Click on the Balancer tab and start installing “ Snapt Balancer SSL Termination” and “ Snapt Balancer HTTP Analyzer” .

Go to Balancer and choose Backend Management in order to setup the Load balancer services.

Then set the permission of the Snapt balancer.


Click Configure Integration to proceed further.

Verify the haproxy directory path and click Finalise integration to complete the integration process.

Now click “ Revert Config” to revert all the configuration.

Choose the installation wizard type.


Now set up the connection permissions and timeout limits.

Set the Snapt settings and click Save.

Configure the logging options and click Save

Now its time to create load balancer, click Create a load balancer.

Choose the type of load balancer and add the nodes, web servers to be configured.

After adding the node details, click Add a wizard group.

Then start the load balancer service.

The Dashboard now displays the Balancer status.

To Start/Stop the load balancer services, Click “ START/STOP” tab.

To view the complete server details, click Servers tab.


To view the balancer Live status, click on the Live Dashboard tab.


FAQ
Q
What is Snapt HTTPScan?
A
Snapt HTTPScan is a list of single IPs that have performed HTTP vulnerability scans over the last 30 days.
Q
Does snapt have graphical UI?
A
No, you have to start and stop from the terminal as a service by command line.
Q
What is snapt webspam?
A
Snapt WebSpam: a list of network ranges that contain a large number of known spammers, but can include legitimate users, use with caution.
Q
is it possible to make the load balancing in a single machine ?
A
That depends upon configuration of the load balance server
Q
What are the Snapt IP Blacklists?
A
Snapt provides a set of free IP blacklists to all WAF clients. These are automatically updated daily to show include the latest threats.