brubaker

Sysctl adjusts. No routing. No ipv6

Feb 5th, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. # Disables packet forwarding
  2. net.ipv4.ip_forward=0
  3. net.ipv4.conf.all.send_redirects=0
  4. net.ipv4.conf.default.send_redirects=0
  5. # Disables IP source routing
  6. net.ipv4.conf.all.accept_source_route=0
  7. net.ipv4.conf.default.accept_source_route=0
  8. # Accept Redirects? No, this is not router
  9. net.ipv4.conf.all.accept_redirects=0
  10. net.ipv4.conf.default.accept_redirects=0
  11. # Log packets with impossible addresses to kernel log
  12. net.ipv4.conf.all.secure_redirects=0
  13. net.ipv4.conf.default.secure_redirects=0
  14. # Enable Log Spoofed Packets
  15. net.ipv4.conf.all.log_martians=1
  16. net.ipv4.conf.default.log_martians=1
  17. # Disables IP source routing
  18. net.ipv4.conf.all.rp_filter=1
  19. net.ipv4.conf.default.rp_filter=1
  20. net.ipv4.conf.all.forwarding=0
  21. # Ignore all ICMP ECHO and TIMESTAMP requests sent to it via broadcast/multicast
  22. net.ipv4.icmp_echo_ignore_broadcasts=1
  23. net.ipv4.icmp_ignore_bogus_error_responses=1
  24. # Enable TCP SYN Cookie Protection
  25. net.ipv4.tcp_syncookies=1
  26. ### IPv6 networking start ####
  27. net.ipv6.conf.all.accept_ra=0
  28. net.ipv6.conf.default.accept_ra=0
  29. net.ipv6.conf.all.accept_redirects=0
  30. net.ipv6.conf.default.accept_redirects=0
  31. net.ipv6.conf.all.disable_ipv6=1
  32. net.ipv6.conf.default.disable_ipv6=1
  33. net.ipv6.conf.lo.disable_ipv6=1
  34. # ExecShield
  35. kernel.randomize_va_space = 2
  36. # Turn off the tcp_sack
  37. net.ipv4.tcp_sack = 0
Advertisement
Add Comment
Please, Sign In to add comment