Last active
September 16, 2019 01:20
-
-
Save ShinChven/5bcef1735dacabd8fae66a37ba622689 to your computer and use it in GitHub Desktop.
This is an /etc/sysctl.conf file I found on bandwagonhost Linux server, it can enable your VPS to run some cannot-be-mentioned server app with full connectivity power. I used it on both CentOS and Ubuntu with docker. Enjoy your secured surfing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Kernel sysctl configuration file for Red Hat Linux | |
# | |
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
# sysctl.conf(5) for more details. | |
# | |
# Use '/sbin/sysctl -a' to list all possible parameters. | |
# Controls IP packet forwarding | |
net.ipv4.ip_forward = 0 | |
# Controls source route verification | |
net.ipv4.conf.default.rp_filter = 1 | |
# Do not accept source routing | |
net.ipv4.conf.default.accept_source_route = 0 | |
# Controls the System Request debugging functionality of the kernel | |
kernel.sysrq = 0 | |
# Controls whether core dumps will append the PID to the core filename. | |
# Useful for debugging multi-threaded applications. | |
kernel.core_uses_pid = 1 | |
# Controls the use of TCP syncookies | |
net.ipv4.tcp_syncookies = 1 | |
# Controls the default maxmimum size of a mesage queue | |
kernel.msgmnb = 65536 | |
# Controls the maximum size of a message, in bytes | |
kernel.msgmax = 65536 | |
# Controls the maximum shared segment size, in bytes | |
kernel.shmmax = 4294967295 | |
# Controls the maximum number of shared memory segments, in pages | |
kernel.shmall = 268435456 | |
net.core.default_qdisc=fq | |
net.ipv4.tcp_congestion_control=bbr | |
net.ipv4.neigh.default.base_reachable_time_ms = 600000 | |
net.ipv4.neigh.default.mcast_solicit = 20 | |
net.ipv4.neigh.default.retrans_time_ms = 250 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment