Guest User

Untitled

a guest
Jun 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. # ----- My sysctl.conf ----- #
  2.  
  3. # ... Processus/User ...
  4. security.bsd.see_other_uids=0
  5.  
  6. # ... Optimize TCP/IP
  7. net.inet.ip.random_id=1
  8. net.inet.tcp.sendspace=33137
  9. net.inet.tcp.recvspace=33137
  10. net.inet.ip.ttl=99
  11.  
  12. # ... secure tcp ...
  13. net.inet.tcp.drop_synfin=1
  14. net.inet.tcp.sack.enable=0
  15. net.inet.tcp.rfc1323=0
  16.  
  17. # ... No response on error packet ...
  18. net.inet.tcp.blackhole=2
  19. net.inet.udp.blackhole=1
  20.  
  21. # ... See connect on no listen socket ...
  22. net.inet.tcp.log_in_vain=1
  23. net.inet.udp.log_in_vain=1
  24.  
  25. # ... Protect DDoS ...
  26. net.inet.icmp.maskrepl=0
  27. net.inet.icmp.bmcastecho=0
  28. net.inet.icmp.icmplim=300
  29. kern.ipc.somaxconn=4096
  30. kern.ipc.maxsockets=16424
  31. net.inet.tcp.always_keepalive=1
  32.  
  33. # ... Protect DDoS system ...
  34. kern.maxprocperuid=128
  35. #kern.maxfiles=65536
  36.  
  37. # ... Fix Bind File Descriptor ...
  38. kern.maxfilesperproc=4096
  39.  
  40. # ... Anti ARP poison ...
  41. net.inet.ip.rtexpire=60
  42. net.inet.ip.rtminexpire=10
Add Comment
Please, Sign In to add comment