52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 2913|敺: 0
銝銝銝駁 銝銝銝駁

[脩怎] CentOS蝟餌憒雿摰鋆CSF脩怠

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-23 21:26:14 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2015-11-24 08:46 蝺刻摩   ^( v' y, h9 G6 `
/ z* V' O/ U. |+ U! `  J5 L

CSF臬賢撘銝憟linux蝟餌韐寥脩怠嚗摰箔iptables撌乩嚗賣蝻閫∪典嚗瑟芸典賣游渲圾撖IP蝞∠撘曄垢怨蝠DDoSCC蝑蝑踝塚摰鋆雿輻其銝箇靘選冽隞砍虜函DACPX輯曉耦雿g銋舀銝芯犖桅冽瑕鋆鈭LNMP臬銝雿輻,銝颲孵停隡憭批振隞蝏CentOS蝟餌憒雿摰鋆CSF脩怠

扯隞乩甇仿炊摰鋆嚗

rm -fv csf.tgz
8 m9 ^3 {& @) t6 a( [- Ewget http://www.configserver.com/free/csf.tgz
5 ]& p7 ?+ d  F( Y. h6 Btar -xzf csf.tgz
' T  v) ?. U* I$ ncd csf/ x% B9 a, A1 N9 D
sh install.sh

箇 Error:

Checking Perl modules...* J" l" N0 s/ T- C
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/csf /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 22) line 2.; M/ n( _3 t# d- N3 R3 W
BEGIN failed--compilation aborted at (eval 22) line 2.
  t& c& D. X; ?& H6 MCan't locate Time/HiRes.pm in @INC (@INC contains: /etc/csf /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 27) line 2., K8 ~) t/ z1 y( _+ N! z# h4 U2 ?
BEGIN failed--compilation aborted at (eval 27) line 2.+ S4 I" V+ V3 t' @+ T5 B
Using configuration defaults

, f" M( N8 i- I/ V9 fYou need to install the missing perl modules and then install cxs閫瘙:6 y- }$ n$ {# L; i1 k
拍 yum 隞支撠 LWP/UserAgent.pm) q& m! w2 c- \, {" W. f- {' ?  B
yum provides "perl(LWP::UserAgent)"
- l7 I2 `3 n$ x% \% \" R蝯:
$ o# z$ ?) |7 p0 A) s# h7 J& }1 {perl-libwww-perl-5.833-2.el6.noarch : A Perl interface to the World-Wide Web
2 u5 @0 `8 q. F0 v$ eRepo        : base: s, B7 u, N# V+ z: ~  }
Matched from:1 i9 y) d; z7 o* U6 g; e/ h
Other       : perl(LWP::UserAgent)
/ g& ]9 Q: k5 ^. p" j8 fSo:
8 ~) L& A7 K4 Y: [; myum install perl-libwww-perl
8 f$ |9 A. S9 S  c3 ?# a& p

# ^0 W5 B6 S1 J9 }. y% Q$ Lyum install perl-Time-HiRes8 F; M( I7 y" E$ X

2 \2 p9 \  \3 U4 J/ Bsh install.sh$ w  F7 H$ J. i8 A6 _$ J

6 k+ S$ {8 m; k5 r; s

璉瘚iptalbes璅∪嚗

perl /etc/csf/csftest.pl

銝賢APF脩怠嗡蝙剁憒撌脩摰鋆餈APF閬貉蝸嚗

sh /etc/csf/remove_apf_bfd.sh

扯摰瘥嚗函CSF撠勗鋆銝鈭

蝵哽SF

CSF蝵格隞嗅啣嚗/etc/csf/csf.conf: F8 B9 L% b) O$ O
賢嚗/etc/csf/csf.allow$ u& {: T( w$ i1 l+ F* O
暺嚗/etc/csf/csf.deny

銝餉蝵桐縑荔牢sf.conf銝哨急撣貉祕蝏閫嚗雿臭誑芾蝛嗉挽摰

鈭箸頛刻靽格寧銝支葵霈曉嚗臭誑頧餅嗆CC餃餃笆∪券

CONNLIMIT = "22;5,80;20"+ o; I  r, Z' H# `1 t% b/ x
PORTFLOOD = "22;tcp;5;300,80;tcp;20;5"

閮剖摰敺嚗撠TESTING = "1"靽格寧摭ESTING = "0"嚗喲皜祈岫璅∪

csf -rservice csf start  隞亙 CSF嚗喳臭蝙閮剔蔭雿箇暸航炊:

Error: Invalid configuration line [ST_DISKW_DD = "if=/dev/zero of=/var/lib/csf/dd_test bs=1MB count=64 conv=fdatasync"], at line 125

Solution:

血撟曉函賭誘

csf -x 蝳每SF
# S% f6 {8 k, y- _5 Icsf -e 每SF) A: x& K2 \: B; {$ x
csf -l 亦CSF


1 W5 D7 x' n% Y9 r

http://www.thinkxen.com/help/1.html

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 07:20 , Processed in 0.068136 second(s), 17 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵