AndrzejL

/etc/sysctl.d/99-sysctl.conf

Oct 6th, 2013
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. # Configuration file for runtime kernel parameters.
  2. # See sysctl.conf(5) for more information.
  3.  
  4. # Have the CD-ROM close when you use it, and open when you are done.
  5. #dev.cdrom.autoclose = 1
  6. #dev.cdrom.autoeject = 1
  7.  
  8. # Protection from the SYN flood attack.
  9. net.ipv4.tcp_syncookies = 1
  10.  
  11. # See evil packets in your logs.
  12. #net.ipv4.conf.all.log_martians = 1
  13.  
  14. # Never accept redirects or source routes (these are only useful for routers).
  15. #net.ipv4.conf.all.accept_redirects = 0
  16. #net.ipv4.conf.all.accept_source_route = 0
  17. #net.ipv6.conf.all.accept_redirects = 0
  18. #net.ipv6.conf.all.accept_source_route = 0
  19.  
  20. # Disable packet forwarding.
  21. net.ipv4.ip_forward = 0
  22. net.ipv6.conf.all.forwarding = 0
  23.  
  24. # Tweak the port range used for outgoing connections.
  25. #net.ipv4.ip_local_port_range = 32768 61000
  26.  
  27. # Tweak those values to alter disk syncing and swap behavior.
  28. #vm.vfs_cache_pressure = 100
  29. #vm.laptop_mode = 0
  30. #vm.swappiness = 60
  31.  
  32. # Tweak how the flow of kernel messages is throttled.
  33. #kernel.printk_ratelimit_burst = 10
  34. #kernel.printk_ratelimit = 5
  35.  
  36. # Reboot 600 seconds after kernel panic or oops.
  37. #kernel.panic_on_oops = 1
  38. #kernel.panic = 600
  39.  
  40. # Disable SysRq key to avoid console security issues.
  41. kernel.sysrq = 0
  42.  
  43. # Added by AndrzejL
  44.  
  45. # Fix for Avast
  46. kernel.shmmax = 128000000
  47. #disable ipv6
  48. net.ipv6.conf.all.disable_ipv6=1
  49. #less caching less swap
  50. vm.swappiness=0
  51. # Fix for preloader: Warning: failed to reserve range 00000000-00010000
  52. # vm.mmap_min_addr = 0
Advertisement
Add Comment
Please, Sign In to add comment