The setting cannot be set on the default system because the ip_vs
module is not loaded by default and there is no reason to load it
just because we would be able to set the setting.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.log_martians = 1
-# Enable connection tracking for IPVS
-net.ipv4.vs.conntrack = 1
-
kernel.printk = 1 4 1 7
vm.swappiness=1
vm.mmap_min_addr = 4096
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = keepalived
-PAK_VER = 4
+PAK_VER = 5
DEPS = ""
case "${1}" in
start)
+ # Load IPVS module
+ modprobe ip_vs
+
+ # Enable connection tracking for IPVS
+ sysctl -w net.ipv4.vs.conntrack=1 &>/dev/null
+
boot_mesg "Starting keepalive daemon..."
loadproc /usr/sbin/keepalived ${KEEPALIVED_OPTIONS}
;;