
Discover why haproxy serves as a reliable open-source proxy and load balancer, offering layer 4-7 traffic management, content switching, health checks, and detailed dashboards for performance and reliability.
https://linuxconfig.org/install-and-configure-haproxy-on-redhat-8
Master the four essential sections of haproxy configuration—global, defaults, frontend, and backend—and learn to tune sockets, timeouts, max connections, and ssl for optimized proxy performance.
Clone the GitHub repository to access HAProxy installation scripts and documentation for proxy configuration, install the config files on your web server, and configure round-robin with sticky sessions.
Install HAProxy on Ubuntu 18.04 and configure a safe proxy, including dependencies, upgrades, and a frontend on port 4840 with health checks and monitoring.
Install and configure HAProxy on CentOS 7, update packages, install and start proxy services, enable HAProxy, and verify health and traffic through the configured port.
Enable HAProxy logging by creating and applying a proxy configuration file, turning on log of transactions, and validating access through a proxy demo.
Upgrade HAProxy to secure 2.1.x by rebuilding from source, coordinate master and slave nodes, manage keep alive and monitoring dependencies, enable rollback to the old binary, and test before production.
Install ansible and the vmware plugin on ubuntu, then configure a simple playbook to provision a single virtual machine and demonstrate plugin setup and vm creation.
Install and verify Ansible on macOS and configure the VMware plugin, then run a simple playbook to validate the setup for managing a HAProxy load balancer.
Understand how to structure an ansible playbook directory, including inventory files for production and staging, roles and templates, and how to deploy web servers and databases.
Create a virtual machine for a HAProxy load balancer with an Ansible playbook, using inventory and a template to provision, install, and configure the proxy.
Learn to create an Ansible playbook task to install the HAProxy package on a VM, wire it into the inventory and management node, and restart the proxy service.
Create and connect an Ansible playbook template for HAProxy, map variables to a template, deploy the proxy configuration, and restart the HAProxy service across the inventory.
Create monit configurations for keepalived monitoring using an Ansible playbook, ensuring keepalived proxies stay up and automatically recover, and customize templates for reliable high availability.
Learn to defend a HAProxy proxy from slowloris-like attacks by configuring timeouts, such as five seconds for HTTP requests, and testing how slow requests are rejected.
Learn how to defend a proxy by limiting HTTP request rate at layer 7, using front-end and back-end configuration, a 10-second window, and rejection of excess requests to prevent abuse.
Learn how to implement content blocking in HAProxy by using content-length header checks and ACL rules to deny invalid requests before they reach backends.
Configure IP address restriction in HAProxy to allow access from specific IP addresses and block others, using frontend and backend configuration in the proxy.
Learn how a web application firewall operates at layer 7 to protect web apps from SQL injection and cross-site scripting, with a proxy and Apache or Nginx plus mod_security.
https://dasunhegoda.com/how-to-setup-haproxy-with-keepalived/833/
Compare layer 4 and layer 7 load balancing in HAProxy, showing how layer 4 uses IP addresses and ports while layer 7 inspects headers and application data to route requests.
Learn how to implement HAProxy round robin load balancing by configuring a proxy and multiple back-end servers, validate distribution, and monitor status, using an Ansible playbook.
Explore how HAProxy uses source IP address hash to achieve session stickiness without cookies, keeping a client on the same backend server across requests.
HAProxy url forwarding by configuring a front end in layer 7 mode, routing requests by path to specific servers, with a default backend and round-robin load balancing.
https://serversforhackers.com/c/using-ssl-certificates-with-haproxy
http://cbonte.github.io/haproxy-dconv/1.9/configuration.html
Learn how to configure and monitor HAProxy health checks with a proxy monitor, ensuring server uptime and directing connections based on health status.
Learn how sticky sessions in a proxy route a user to a single backend using cookies and headers, ensuring session persistence.
Configure HAProxy to support http/2 and http/1.1, leveraging multiplexing, binary protocol, and header compression for faster proxy performance.
Configure haproxy content switching using acl to route requests by header data and path to the correct backend. Explore layer 7 routing, host header filtering, and load balancing decisions.
Configure haproxy to redirect http requests based on the hostname, with DNS setup, header-based host checks, and optional path prefix preservation to forward to the target hostname and endpoint.
Append 'www.' prefix in front of all hosts not having
http-request redirect code 301 location http://www.%[hdr(host)]%[capture.req.uri] unless { hdr_beg(host) -i www }
If you're thinking to become HAProxy Load Balancing Administrator, or you want to start to understand Load Balancer Algorithm, then this course is perfect for you. You will see video after video, from beginners with explanations that are easy to understand. Also this course will provide many examples that make it easy for you to follow and understand. In the first section, you will learn how to get all file configurations that we used during the course. You can use that file configurations to reproduce it on your environment.
In this course, you will use Ansible Playbook to deploy HAProxy cluster, KeepAlived and monit monitoring in VMWare environment. Using this Ansible playbook will make easy to deploy/manage HAProxy cluster.
This course has 14 sections, 86 lectures, and about 13 hours 32 minutes duration. You can download all videos, and watch them without internet connection. Most videos are about how to build HAProxy configuration by examples. You will follow step by step how to use and manage HAProxy cluster.
In this course, you will learn how to:
Understanding HAProxy concept and architecture
Installing HAProxy using Ubuntu and CentOS
Creating HAProxy cluster HA using KeepAlived
Install HAProxy cluster using Ansible playbook
Install HAProxy HA KeepAlived using Ansible playbook
Install KeepAlived monit monitoring using Ansible playbook
Manage HAProxy Using API and curl samples
Forward HAProxy log to Logstash/elasticsearch, check log using Kibana
Managing HAProxy Load Balancing Algorithm
Managing(creating and removing) HAProxy type and mode
Configuring HAProxy kernel to get high performance
Configuring HAProxy Load Balancer base on any algorithm types
Configuring HAProxy Round Robin LBA
Configuring HAProxy Static-rr (Static Round Robin)
Configuring Least Connection LBA
Configuring HAProxy Source IP Address Hashed LBA
Configuring HAProxy with SSL Termination
Configuring HAProxy with SSL Pass-Through
Configuring HAProxy URL Forwarding
Configuring HAProxy Using Recipes
Understand HAProxy Server Bencmarking and Tuning
Configuring HAProxy with HTTP/2 and HTTP/1.1 support
Configuring HAProcy with gRPC support
Understanding WAF (Web Application Firewall) for HAProxy
Configuring HAProxy Defense Against DDOS
Tuning HAProxy Performance
Configuring WhiteList IP Address and Restrict Specific IP Address
Monitoring HAProxy using Zabbix
Creating Grafana Dashboard for HAProxy frontend and backend
etc.
After you finished this course, you will have confident to use and manage HAProxy cluster.
Please ping and message me if you need my help to follow this course.
Thanks,
Muhammad Yusuf Efendi
Zabbix Certified Professional
IT Cloud Expert