Allow ping and ipv6 for the mesh variant
This commit is contained in:
parent
9e39aa67f8
commit
9ce7e1ab70
|
@ -5746,13 +5746,15 @@ function configure_internet_protocol {
|
|||
sed -i "s/#net.ipv4.conf.all.rp_filter=1/net.ipv4.conf.all.rp_filter=1/g" /etc/sysctl.conf
|
||||
sed -i "s/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=0/g" /etc/sysctl.conf
|
||||
sed -i "s/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=0/g" /etc/sysctl.conf
|
||||
echo '# ignore pings' >> /etc/sysctl.conf
|
||||
echo 'net.ipv4.icmp_echo_ignore_all = 1' >> /etc/sysctl.conf
|
||||
echo 'net.ipv6.icmp_echo_ignore_all = 1' >> /etc/sysctl.conf
|
||||
echo '# disable ipv6' >> /etc/sysctl.conf
|
||||
echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.conf
|
||||
echo 'net.ipv4.tcp_synack_retries = 2' >> /etc/sysctl.conf
|
||||
echo 'net.ipv4.tcp_syn_retries = 1' >> /etc/sysctl.conf
|
||||
if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
|
||||
echo '# ignore pings' >> /etc/sysctl.conf
|
||||
echo 'net.ipv4.icmp_echo_ignore_all = 1' >> /etc/sysctl.conf
|
||||
echo 'net.ipv6.icmp_echo_ignore_all = 1' >> /etc/sysctl.conf
|
||||
echo '# disable ipv6' >> /etc/sysctl.conf
|
||||
echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.conf
|
||||
echo 'net.ipv4.tcp_synack_retries = 2' >> /etc/sysctl.conf
|
||||
echo 'net.ipv4.tcp_syn_retries = 1' >> /etc/sysctl.conf
|
||||
fi
|
||||
echo '# keepalive' >> /etc/sysctl.conf
|
||||
echo 'net.ipv4.tcp_keepalive_probes = 9' >> /etc/sysctl.conf
|
||||
echo 'net.ipv4.tcp_keepalive_intvl = 75' >> /etc/sysctl.conf
|
||||
|
|
Loading…
Reference in New Issue