Last active
March 10, 2016 00:16
-
-
Save gretel/6e7568f35dd3c3284600 to your computer and use it in GitHub Desktop.
collection of useful, useless, dangerous sysctl settings for pinguin os
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
# https://gist.github.com/gretel/6e7568f35dd3c3284600 | |
fs.file-max=65535 | |
fs.inotify.max_queued_events=65536 | |
fs.inotify.max_user_watches=65536 | |
fs.suid_dumpable=0 | |
kernel.core_uses_pid=1 | |
kernel.kptr_restrict=1 | |
kernel.pid_max=65536 | |
kernel.printk=4 4 1 7 | |
kernel.randomize_va_space=1 | |
kernel.sem=250 32000 100 128 | |
kernel.shmall=1011983 | |
kernel.shmmax=2181622298 | |
kernel.shmmni=4096 | |
kernel.sysrq=0 | |
net.core.netdev_max_backlog=100000 | |
net.core.rmem_default=33554432 | |
net.core.rmem_max=33554432 | |
net.core.wmem_default=33554432 | |
net.core.wmem_max=33554432 | |
net.ipv4.conf.all.accept_redirects=0 | |
net.ipv4.conf.all.accept_source_route=0 | |
net.ipv4.conf.all.arp_announce=2 | |
net.ipv4.conf.all.arp_ignore=1 | |
net.ipv4.conf.all.log_martians=1 | |
net.ipv4.conf.all.rp_filter=1 | |
net.ipv4.conf.all.rp_filter=1 | |
net.ipv4.conf.all.secure_redirects=0 | |
net.ipv4.conf.all.send_redirects=0 | |
net.ipv4.conf.all.shared_media=1 | |
net.ipv4.conf.default.accept_redirects=0 | |
net.ipv4.conf.default.accept_source_route=0 | |
net.ipv4.conf.default.log_martians=1 | |
net.ipv4.conf.default.rp_filter=1 | |
net.ipv4.conf.default.secure_redirects=0 | |
net.ipv4.conf.default.send_redirects=0 | |
net.ipv4.conf.default.shared_media=1 | |
net.ipv4.icmp_echo_ignore_broadcasts=1 | |
net.ipv4.icmp_ignore_bogus_error_responses=1 | |
net.ipv4.icmp_ratelimit=100 | |
net.ipv4.icmp_ratemask=88089 | |
net.ipv4.ip_forward=0 | |
net.ipv4.ip_local_port_range=2000 65000 | |
net.ipv4.tcp_fin_timeout=30 | |
net.ipv4.tcp_keepalive_time=1800 | |
net.ipv4.tcp_max_syn_backlog=30000 | |
net.ipv4.tcp_max_tw_buckets=2000000 | |
net.ipv4.tcp_mem=786432 1048576 26777216 | |
net.ipv4.tcp_no_metrics_save=1 | |
net.ipv4.tcp_rfc1337=1 | |
net.ipv4.tcp_rmem=10240 87380 33554432 | |
net.ipv4.tcp_sack=1 | |
net.ipv4.tcp_synack_retries=2 | |
net.ipv4.tcp_syncookies=1 | |
net.ipv4.tcp_timestamps=1 | |
net.ipv4.tcp_tw_recycle=0 | |
net.ipv4.tcp_tw_reuse=0 | |
net.ipv4.tcp_window_scaling=1 | |
net.ipv4.tcp_wmem=10240 87380 33554432 | |
net.ipv6.conf.all.accept_ra=0 | |
net.ipv6.conf.all.accept_ra_defrtr=0 | |
net.ipv6.conf.all.accept_ra_pinfo=0 | |
net.ipv6.conf.all.accept_redirects=0 | |
net.ipv6.conf.all.accept_source_route=0 | |
net.ipv6.conf.all.autoconf=0 | |
net.ipv6.conf.all.disable_ipv6=1 | |
net.ipv6.conf.all.forwarding=0 | |
net.ipv6.conf.all.use_tempaddr=2 | |
net.ipv6.conf.default.accept_ra=0 | |
net.ipv6.conf.default.accept_ra_defrtr=0 | |
net.ipv6.conf.default.accept_ra_pinfo=0 | |
net.ipv6.conf.default.accept_redirects=0 | |
net.ipv6.conf.default.accept_source_route=0 | |
net.ipv6.conf.default.autoconf=0 | |
net.ipv6.conf.default.dad_transmits=0 | |
net.ipv6.conf.default.forwarding=0 | |
net.ipv6.conf.default.max_addresses=1 | |
net.ipv6.conf.default.router_solicitations=0 | |
net.ipv6.conf.default.use_tempaddr=2 | |
vm.dirty_background_ratio=5 | |
vm.dirty_expire_centisecs=1000 | |
vm.dirty_ratio=10 | |
vm.min_free_kbytes=65535 | |
vm.mmap_min_addr=65535 | |
vm.overcommit_memory=0 | |
vm.swappiness=0 | |
vm.vfs_cache_pressure=50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment