Advertisement
Guest User

Untitled

a guest
May 18th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. # /etc/sysctl.conf - Configuration file for setting system variables
  2. # See /etc/sysctl.d/ for additonal system variables
  3. # See sysctl.conf (5) for information.
  4. #
  5.  
  6. #kernel.domainname = example.com
  7.  
  8. # Uncomment the following to stop low-level messages on console
  9. #kernel.printk = 3 4 1 3
  10.  
  11. ##############################################################3
  12. # Functions previously found in netbase
  13. #
  14.  
  15. # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
  16. # Turn on Source Address Verification in all interfaces to
  17. # prevent some spoofing attacks
  18. net.ipv4.conf.default.rp_filter=0
  19. net.ipv4.conf.all.rp_filter=0
  20.  
  21. # Uncomment the next line to enable TCP/IP SYN cookies
  22. # See http://lwn.net/Articles/277146/
  23. # Note: This may impact IPv6 TCP sessions too
  24. net.ipv4.tcp_syncookies=1
  25.  
  26. # Uncomment the next line to enable packet forwarding for IPv4
  27. net.ipv4.ip_forward=1
  28.  
  29. # Uncomment the next line to enable packet forwarding for IPv6
  30. # Enabling this option disables Stateless Address Autoconfiguration
  31. # based on Router Advertisements for this host
  32. #net.ipv6.conf.all.forwarding=1
  33.  
  34.  
  35. ###################################################################
  36. # Additional settings - these settings can improve the network
  37. # security of the host and prevent against some network attacks
  38. # including spoofing attacks and man in the middle attacks through
  39. # redirection. Some network environments, however, require that these
  40. # settings are disabled so review and enable them as needed.
  41. #
  42. # Do not accept ICMP redirects (prevent MITM attacks)
  43. #net.ipv4.conf.all.accept_redirects = 0
  44. #net.ipv6.conf.all.accept_redirects = 0
  45. # _or_
  46. # Accept ICMP redirects only for gateways listed in our default
  47. # gateway list (enabled by default)
  48. # net.ipv4.conf.all.secure_redirects = 1
  49. #
  50. # Do not send ICMP redirects (we are not a router)
  51. #net.ipv4.conf.all.send_redirects = 0
  52. #
  53. # Do not accept IP source route packets (we are not a router)
  54. net.ipv4.conf.all.accept_source_route = 0
  55. #net.ipv6.conf.all.accept_source_route = 0
  56. #
  57. # Log Martian Packets
  58. #net.ipv4.conf.all.log_martians = 1
  59. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement