From 864d415eea4932c98038e467d47c248fc26822d7 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 15 Sep 2023 12:59:31 +0200 Subject: [PATCH] TP Load Balancer --- sio2/SISR/LB/ipvsadm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 sio2/SISR/LB/ipvsadm diff --git a/sio2/SISR/LB/ipvsadm b/sio2/SISR/LB/ipvsadm new file mode 100755 index 0000000..eef871f --- /dev/null +++ b/sio2/SISR/LB/ipvsadm @@ -0,0 +1,9 @@ +#!/bin/bash +echo "1" > /proc/sys/net/ipv4/ip_forward +ipvsadm -A -t 192.168.0.140:80 -s rr + +ipvsadm -a -t 192.168.0.140:80 -r 172.16.1.11:80 -m +ipvsadm -a -t 192.168.0.140:80 -r 172.16.1.12:80 -m + + +