From cd7cb4869fa436184459be7a761b09d2c55ea274 Mon Sep 17 00:00:00 2001 From: trrgrnd Date: Mon, 12 Aug 2024 08:07:25 +0000 Subject: [PATCH] Update install.sh --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9823fa4..acccb6b 100644 --- a/install.sh +++ b/install.sh @@ -5,8 +5,11 @@ print_ylw(){ } print_ylw "[ ipv6 turn off ]" -sysctl -w net.ipv6.conf.all.disable_ipv6=0 -sysctl -w net.ipv6.conf.default.disable_ipv6=0 +cat << EOF >> /etc/sysctl.conf +net.ipv6.conf.all.disable_ipv6=0 +net.ipv6.conf.default.disable_ipv6=0 +net.ipv4.ip_forward=1 +EOF sysctl -p print_ylw "[ sshd_config backup ]"