Stateful Load Balancer with iptables and NAT Rumi, October 2, 2018October 2, 2018 Allow IP forwarding (Note: if your testing this on the same box your doing this on it won’t work, you need at least 3 machines to test this out, virtual ones work nicely) First we enable ipv4 forwarding or this will not work: # echo “1” > /proc/sys/net/ipv4/ip_forward XOR #… Continue Reading
DNS UDP Load Balancer using Nginx Rumi, June 14, 2018March 12, 2023 The plan is to build a DNS- UDP load balancer DNS recursive server (actually forwarding service). The design logic is simple- On client side a public recursive+forwarding DNS IP –> hits the Nginx Load Balancers –> sends traffic to Google Public DNS/IBM Public DNS/Own recursive DNS/OpenDNS. The configuration is quite… Continue Reading
Load Balancing using Ldirectord on Linux (Apache) web server Rumi, November 23, 2017 For this setup, we need four nodes (two Apache nodes and two load balancer nodes) and five IP addresses: one for each node and one virtual IP address that will be shared by the load balancer nodes and used for incoming HTTP requests. I will use the following setup here: Apache node… Continue Reading