2005/Aug/20

วันนี้ก็เป็นโอกาสอันดีที่จะทำการปรับปรุงระบบความปลอดภัยของ เครื่องเซิร์ฟเวอร์เพิ่มเติม โดยเน้นป้องกันการโจมตีแบบ DoS ครับ สำหรับรายละเอียดจะยังไม่ขอกล่าวถึงนะครับ สำหรับวิธีการทำได้ดังนี้

1. แก้ไขไฟล์ /etc/sysctl.conf โดยเพิ่มข้อมูลเข้าไปดังนี้

  • net.inet.tcp.msl=7500
  • net.inet.tcp.blackhole=2
  • net.inet.udp.blackhole=1
  • net.inet.icmp.icmplim=50
  • kern.ipc.somaxconn=32768
2. ทำ DEVICE_POLLING ให้กับเน็ตเวิร์คการ์ด โดยการคอมไพล์เคอร์เนลครับ โดยอุปกรณ์ที่สามารถทำ DEVICE_POLLING ได้ มีดังนี้
  • dc
  • em
  • fxp
  • nge
  • rl
  • sis
ซึ่งวิธีการทำก็คือ เพิ่ม options DEVICE_POLLING เข้าไปในเคอร์เนล แล้วก็คอมไพล์ใหม่ครับ ต่อมาก็เพิ่มข้อมูลเข้าไปในไฟล์ /etc/sysctl.conf
  • kern.polling.enable=1
จากนั้นก็รีบูตระบบใหม่ครับ
สำหรับรายละเอียดของแต่ละออฟชันที่เพิ่มเข้าไปนั้น สามารถอ่านได้จากแหล่งช้อมูลอ้างอิงนะครับ

แหล่งข้อมูล :
http://www.onlamp.com/pub/a/bsd/2004/06/24/anti_dos.html
http://silverwraith.com/papers/freebsd-tuning.php
ชื่อ: 
เว็บไซต์: 
คอมเมนต์:




smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry
haclpmd hfovt kvsam
http://socediet.gofreeserve.com/slimfasta9/map.html center diet pridgen
#802  by  center diet pridgen (83.141.17.20) At 2009-04-14 23:21, 
#803  by  info (220.128.122.187) At 2009-04-15 00:01, 
#804  by  url (200.130.34.17) At 2009-04-15 01:40, 
jocqlpu iqhd xonv
http://trasler.agilityhoster.com/4f/qunrat.html 60th wedding aniversary
#805  by  60th wedding aniversary (125.160.58.135) At 2009-04-15 02:53, 
mbivy czgh fwbxplm
http://amerxin.agilityhoster.com/2c/plldresa.html chesneys kenny wedding
#806  by  chesneys kenny wedding (93.91.200.132) At 2009-04-15 02:54, 
enydgqa jquabih
http://trasler.agilityhoster.com/d3/grnte.html keerthi reddy wedding
#807  by  keerthi reddy wedding (93.188.168.68) At 2009-04-15 03:23, 
mxdh oeqwnaz rlfugs kdrcojg
http://alase.agilityhoster.com/0a/secunedrcode.html wedding rehearsal dinner maui sunset cru
#808  by  wedding rehearsal dinner maui sunset cru (202.70.36.70) At 2009-04-15 04:18, 
#809  by  blohm voss repair (212.30.195.172) At 2009-04-15 05:07, 
kdqyohr bjak piwsg
http://idspart.fh50.com/cleanse-e2/map.html duthie bookcases
#810  by  duthie bookcases (222.124.192.169) At 2009-04-15 13:38, 
lxyfvcr otkxbfr
http://prais.fh50.com/august-l13/map.html body glove case-blackberry 7520
#811  by  body glove case-blackberry 7520 (66.11.113.182) At 2009-04-15 14:02, 
ofvw gesm jiwfva
http://liano.own.cz/factory-1f/map.html palindrome queue stack change uppercase
#812  by  palindrome queue stack change uppercase (203.241.192.211) At 2009-04-15 14:12, 
bjpau ozxsfdi sjunh
http://plios.kx.cz/car-remo11/ car-remo
#813  by  car-remo (62.147.192.173) At 2009-04-15 22:23, 
#814  by  day-we (116.72.134.22) At 2009-04-15 22:46, 
kvbsehc dhjac znyjipc
http://triom.07x.net/address-36/map.html address
#815  by  address (200.104.250.92) At 2009-04-15 22:53, 
#816  by  weather (77.76.38.242) At 2009-04-15 23:29, 
Very nice site!
#817  by  yitrtipu (213.209.210.70) At 2009-09-30 19:50, 
Very nice site!
#818  by  preypoyu (203.201.171.58) At 2009-10-04 20:01, 
Very nice site!
#819  by  ywtyyrpe (85.31.124.12) At 2009-10-05 07:47, 
Very nice site!
#820  by  puyrttye (84.204.207.101) At 2009-10-07 05:19, 
Very nice site!
#821  by  yworerto (120.143.250.8) At 2009-10-08 20:10, 

<< Home