From 593fdac09bd28779b288737dc0d93217055ee52b Mon Sep 17 00:00:00 2001 From: Cameron Desrayaud Date: Wed, 15 Sep 2021 11:08:12 +0200 Subject: [PATCH] lvs --- lvs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lvs diff --git a/lvs b/lvs new file mode 100644 index 0000000..a5cf96f --- /dev/null +++ b/lvs @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "1" > /proc/sys/net/ipv4/ip_forward + +ipvsadm -A -t 192.168.0.151:80 -s rr +ipvsadm -a -t 192.168.0.151:80 -r 172.16.0.1:80 -m +ipvsadm -a -t 192.168.0.151:80 -r 172.16.0.2:80 -m +