Update debian.sh
This commit is contained in:
parent
9aa71ea724
commit
7e3465269d
11
debian.sh
11
debian.sh
@ -287,8 +287,13 @@ function custom_sysctl() {
|
|||||||
printf "\E[0;35;40m"
|
printf "\E[0;35;40m"
|
||||||
echo '### Custom sysctl.conf ###'
|
echo '### Custom sysctl.conf ###'
|
||||||
printf "\E[0m"
|
printf "\E[0m"
|
||||||
cp -r /etc/sysctl.conf /etc/sysctl.conf.$(date +"%Y_%m_%d_%I_%M_%p").bak
|
|
||||||
cat /dev/null > /etc/sysctl.conf
|
# Backup sysctl.conf
|
||||||
|
if [ -f /etc/sysctl.conf ]; then
|
||||||
|
cp -r /etc/sysctl.conf /etc/sysctl.conf.$(date +"%Y_%m_%d_%I_%M_%p").bak
|
||||||
|
cat /dev/null > /etc/sysctl.conf
|
||||||
|
fi
|
||||||
|
|
||||||
cat > /etc/sysctl.d/local.conf << EOF
|
cat > /etc/sysctl.d/local.conf << EOF
|
||||||
net.ipv4.ip_forward = 1
|
net.ipv4.ip_forward = 1
|
||||||
net.ipv4.conf.all.proxy_arp = 0
|
net.ipv4.conf.all.proxy_arp = 0
|
||||||
@ -330,7 +335,9 @@ net.ipv4.ipfrag_high_thresh = 4194304
|
|||||||
net.ipv4.ipfrag_low_thresh = 3145728
|
net.ipv4.ipfrag_low_thresh = 3145728
|
||||||
net.ipv4.ping_group_range = 0 2147483647
|
net.ipv4.ping_group_range = 0 2147483647
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sysctl -p
|
sysctl -p
|
||||||
|
|
||||||
printf "\E[0;33;40m"
|
printf "\E[0;33;40m"
|
||||||
echo "### Custom sysctl.conf added ###"
|
echo "### Custom sysctl.conf added ###"
|
||||||
printf "\E[0m"
|
printf "\E[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user