52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-23 21:26:14 | 芰閰脖 撣 |甇摨閬 |梯璅∪
砍敺 IT_man 2015-11-24 08:46 蝺刻摩
" X- m- x0 R/ l- \! l$ a5 K) B
5 p- y; i+ O9 \' C

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

扯隞乩甇仿炊摰鋆嚗

rm -fv csf.tgz
8 }3 p) g% t1 L4 h# k( H4 m( jwget http://www.configserver.com/free/csf.tgz
5 i3 ?% k+ g* ~; |$ U0 Z, s: k" xtar -xzf csf.tgz
2 R7 Y0 E8 _4 P0 }3 O0 ocd csf
6 o- ^. s# j6 |6 b/ f% X4 C0 ]sh install.sh

箇 Error:

Checking Perl modules...  R  W4 Z2 ]( Q. r+ ]' u, g
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.
9 [' `" k8 u4 `. YBEGIN failed--compilation aborted at (eval 22) line 2./ g" s! b& G* g
Can'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.. [! h6 F6 d0 ?
BEGIN failed--compilation aborted at (eval 27) line 2.
3 v: `( [% ?: f6 u) B0 bUsing configuration defaults
9 d5 T: t/ b7 v* g3 Q! ^
You need to install the missing perl modules and then install cxs閫瘙:  c, H; c$ a# W2 l+ w6 Y
拍 yum 隞支撠 LWP/UserAgent.pm
; F! `7 p4 n% A0 S( fyum provides "perl(LWP::UserAgent)"
9 U1 T' i( u/ M8 X+ @+ v蝯:! f" X5 j; \' Y- p$ b8 j* O+ A
perl-libwww-perl-5.833-2.el6.noarch : A Perl interface to the World-Wide Web1 s7 m, {1 l$ R, u
Repo        : base
' H  J% ~' z5 d' a+ Y8 r8 ~) H0 CMatched from:
  B& Z0 P0 H# ?* x! A% E% s! pOther       : perl(LWP::UserAgent)
4 E" ~  z" o' P2 }: L4 J% n, j+ vSo:7 O& @/ |: z* c; U+ }0 [, c$ f* _+ [
yum install perl-libwww-perl0 E: i9 U% _! D$ ~/ D8 P8 c+ @

) P& W  T) G8 gyum install perl-Time-HiRes
5 l0 c5 W  ], i5 `- d# _: g
  a1 s) G- A# s% {sh install.sh1 W3 c5 i/ Q3 b; z
( {6 w0 n% h0 l% z8 a

璉瘚iptalbes璅∪嚗

perl /etc/csf/csftest.pl

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

sh /etc/csf/remove_apf_bfd.sh

扯摰瘥嚗函CSF撠勗鋆銝鈭

蝵哽SF

CSF蝵格隞嗅啣嚗/etc/csf/csf.conf, v( W: I: _) }  K0 A
賢嚗/etc/csf/csf.allow
! {" n7 }: ?) g4 O0 W2 o' G0 m暺嚗/etc/csf/csf.deny

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

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

CONNLIMIT = "22;5,80;20"
7 ], G, _. [- n" @* nPORTFLOOD = "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
$ }9 T1 y- S; b: l' R7 ecsf -e 每SF" ?/ k+ `. H0 d6 V  K( m! m
csf -l 亦CSF


4 i) P8 Y/ z: O- t

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

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 02:06 , Processed in 0.065780 second(s), 20 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵