#!/bin/sh

echo "net.ipv4.tcp_keepalive_time = 60" >> /etc/sysctl.conf
echo "net.ipv4.tcp_keepalive_intvl = 1" >> /etc/sysctl.conf
echo "net.ipv4.tcp_keepalive_probes = 30" >> /etc/sysctl.conf

echo "net.ipv4.ip_local_port_range = 51000 60999" >> /etc/sysctl.conf

sysctl -p
