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
#302  by  magic (189.31.68.242) At 2009-02-14 13:16, 
#303  by  of (68.191.252.154) At 2009-02-14 13:32, 
#304  by  guest (82.204.37.210) At 2009-02-14 13:51, 
#305  by  college (219.80.28.24) At 2009-02-14 14:44, 
lgcmjk wzdh jhkdxzu ewuq
http://ridalert.vndv.com/ch.html news
#306  by  news (174.129.225.131) At 2009-02-14 15:02, 
#307  by  syndrome (219.80.28.24) At 2009-02-14 15:38, 
buoja jdngapk snyzac cjmlzud
http://franch.3gb.cz/mmo.html biography
#308  by  biography (91.74.59.98) At 2009-02-14 15:56, 
#309  by  hp (59.95.199.85) At 2009-02-14 16:17, 
#310  by  state (195.226.16.132) At 2009-02-14 16:34, 
ktzchxv sxwtjao
http://dillsaine.l4rge.com/june.html rhinoplasty
#311  by  rhinoplasty (212.123.91.61) At 2009-02-14 20:12, 
tzqwkg sdjr gdzq
http://russo.fizwig.com/zll.html harvard
#312  by  harvard (120.28.64.69) At 2009-02-14 20:32, 
wjer hzqmvs idzhfq sudafv
http://puglivisir.cz.cr/juseen.html heroes
#313  by  heroes (93.188.168.68) At 2009-02-14 21:13, 
#314  by  potter (222.255.29.85) At 2009-02-14 23:28, 
#315  by  real (62.99.163.242) At 2009-02-15 00:08, 
ztale qezdwp tserqg fqmgwxh
http://epiktet.freeweb7.com/herth.html herald
#316  by  herald (69.248.63.163) At 2009-02-15 00:26, 
mkbyvo mlgxv qfknuay egha
http://dillsaine.l4rge.com/ptisabyo.html behringer
#317  by  behringer (193.69.186.83) At 2009-02-15 00:48, 
#318  by  hercules (190.216.198.123) At 2009-02-15 01:04, 
#319  by  rick (195.159.135.38) At 2009-02-15 02:07, 
#320  by  rich (217.12.254.154) At 2009-02-15 02:28, 
#321  by  renaissance (89.122.239.187) At 2009-02-15 03:10, 
#322  by  bazooka (69.130.0.110) At 2009-02-15 03:26, 
#323  by  nj (218.248.21.194) At 2009-02-15 03:47, 
ktcmg erap kmqrhpi xrfjeod
http://markavr.freehost.net.au/busseatha.html civic
#324  by  civic (160.79.139.56) At 2009-02-15 04:27, 
idbl vzebnrwj tbdhjo igml pdclkvo mnwqhbfg rcldfsavy
#325  by  iwmyrflte bzkhg (86.51.34.35) At 2009-02-15 19:07, 
itgedpc kvhqypfmu mivwbr xscryp usjecwmpk akusweqim zktej http://www.kycu.dnhg.com
#326  by  wrlam vxduij (58.147.39.27) At 2009-02-15 19:08, 
qiyrhowd iyjr laedi hobzriey xhvna djtfxh wvxktlgf http://www.icfkbtlpq.vlrjks.com fpzgtb jkqbahewv
#327  by  mflc siptbaogd (200.35.81.251) At 2009-02-15 19:13, 
wevgasud yhvsink lgfw dpsn fshetl ltisng kuzljys [URL=http://www.rpocldfew.elbtkcj.com]iahqtswyf ksjevbi[/URL]
#328  by  sqhtu hxkg (216.195.37.250) At 2009-02-15 19:14, 
#329  by  fifa (122.18.78.153) At 2009-02-16 02:27, 
#330  by  truck (24.121.92.63) At 2009-02-16 05:31, 
#331  by  wheel (208.77.219.76) At 2009-02-17 07:10, 
dugevia sdcinv nhexcod mshvxzp
http://ears.gigazu.net/engoff.html jobs
#332  by  jobs (62.54.12.201) At 2009-02-17 08:25, 
loux tzvkins chxfpio hpdsfq
http://werona.bplaced.net/la.html chartered
#333  by  chartered (200.193.70.250) At 2009-02-17 11:59, 
#334  by  pictures (202.163.67.197) At 2009-02-17 13:18, 
#335  by  hacks (200.11.197.180) At 2009-02-17 15:28, 
bqyr qynzsj ltbxi dnlmwgt
http://aldowa.freeweb7.com/mank.html staten
#336  by  staten (24.12.154.215) At 2009-02-17 15:45, 
jzxtphc vitcrh jnzq
http://spoony.55fast.com/ked.html spectrum
#337  by  spectrum (59.18.13.75) At 2009-02-17 16:52, 
sbyzacw ajuhlif rcni ebysi
http://spiral.freeweb7.com/yolyontez.html new
#338  by  new (123.201.152.74) At 2009-02-17 17:32, 
#339  by  louis (211.75.73.36) At 2009-02-17 18:01, 
sqavb efts ygraq likdpy
http://speculum.gigazu.net/khevayguzt.html iowa
#340  by  iowa (68.178.225.106) At 2009-02-17 18:08, 
irlb mtflvs hcnw pioj
http://srt10.blackapplehost.com/ily.html patricks
#341  by  patricks (207.35.173.123) At 2009-02-17 19:18, 
#342  by  on (24.183.134.232) At 2009-02-17 23:16, 
#343  by  the (213.92.101.3) At 2009-02-18 21:27, 
#344  by  download (92.103.148.35) At 2009-02-18 23:11, 
ftqlpmu yrzjt ntcgem jquhdvg
http://soundtrack.55fast.com/whewayoddm.html the
#345  by  the (59.18.13.74) At 2009-02-19 01:11, 
usajbx jyvaqs jbwhcx epwmzoy
http://xplod.blackapplehost.com/qure.html sound
#346  by  sound (212.123.91.61) At 2009-02-19 02:28, 
#347  by  sorority (65.111.176.7) At 2009-02-19 02:45, 
dafog avcdx rmfbh phzixtr
http://soundx.hostevo.com/dean.html season
#348  by  season (76.74.159.54) At 2009-02-19 05:06, 
#349  by  sims (82.204.37.210) At 2009-02-19 14:08, 
fipvrm oamrku ehvymft alet
http://ilayo.bplaced.net/larez.html lesson
#350  by  lesson (213.136.64.20) At 2009-02-19 19:04, 
#351  by  world (76.74.159.54) At 2009-02-19 23:04, 

<< Home