For optimal functioning of the virtual server, it is necessary to use a kernel with support for para-virtualised drivers. This kernel is regularly available in practically all modern distributions. Nevertheless, for problem-free running of your virtual server under the Linux operating system, we recommend the following configuration in /etc/sysctl.conf
Recommended setting VPS Unix/Linux
net.ipv4.tcp_ecn = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_syn_retries = 3
net.ipv4.tcp_no_metrics_save=1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.tcp_congestion_control = bic
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.log_martians = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.log_martians = 0
net.ipv6.conf.all.autoconf = 1
net.ipv6.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.all.hop_limit = 64
net.ipv6.conf.default.autoconf = 1
net.ipv6.conf.default.accept_redirects = 0
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.default.hop_limit = 64
net.ipv6.conf.eth0.accept_ra = 1
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.netdev_max_backlog = 2500
net.core.somaxconn = 1024
kernel.sysrq = 0
kernel.panic = 3
vm.vfs_cache_pressure = 60
vm.swappiness = 10
This configuration contains verified values for most Linux servers, but it can be modified at any time based on your needs and requirements. The specified values are intended particularly for websites, e-mail and other general internet services on the server.