52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-23 21:26:14 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2015-11-24 08:46 蝺刻摩   X" j  a& O: ^2 I

3 Z; r* Q% k1 r- Z( R2 B# I

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

扯隞乩甇仿炊摰鋆嚗

rm -fv csf.tgz
3 O3 G5 s; o8 A$ ~wget http://www.configserver.com/free/csf.tgz" o7 x1 ^1 l" f2 J% z
tar -xzf csf.tgz. w1 s+ J- s* ~& Z5 d. x
cd csf
" S# e2 W% I5 w8 c/ R8 i( z* Dsh install.sh

箇 Error:

Checking Perl modules...
0 F0 ]# j) t% R/ K9 X3 d% n5 KCan'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.
0 d; N) W" e; Z( j! yBEGIN failed--compilation aborted at (eval 22) line 2.  A* K" h( U1 K, \
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.
; a! Z& R$ U% F( U. r/ q: `BEGIN failed--compilation aborted at (eval 27) line 2.8 N1 l8 y6 ~- T, I" S
Using configuration defaults

( f9 E" l% |2 V0 ?: m( R3 q8 L* _You need to install the missing perl modules and then install cxs閫瘙:
( ~* x8 p+ ^! H8 X$ L9 k9 P拍 yum 隞支撠 LWP/UserAgent.pm7 P/ {/ }' m5 m- n
yum provides "perl(LWP::UserAgent)"$ }5 F: G$ U, I( m1 \( d
蝯:
$ i4 v9 r4 x- `$ P; W  r- [perl-libwww-perl-5.833-2.el6.noarch : A Perl interface to the World-Wide Web
: H5 c' u" |3 j9 ?4 aRepo        : base* b: [( ~# D- u) ~% r
Matched from:
2 O4 `9 f# n1 Q+ R) N8 e! {Other       : perl(LWP::UserAgent)
2 A( y6 k; G! k: I. N- B& ^! T( f8 q( lSo:7 i3 N, j. y7 A$ C+ \* E. [3 F4 P
yum install perl-libwww-perl
: x$ E2 l. ~' R$ o8 _- Y$ N6 v! Z

6 p  ?4 ]& \3 h$ I  ]3 Ayum install perl-Time-HiRes7 ]4 T2 k+ f7 A4 C; s9 Z) d' W
6 ]* n/ N1 S2 C" X/ |$ X* A
sh install.sh4 Y+ x0 Y1 w& e, F

' t4 Y8 p5 h# X- a. W

璉瘚iptalbes璅∪嚗

perl /etc/csf/csftest.pl

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

sh /etc/csf/remove_apf_bfd.sh

扯摰瘥嚗函CSF撠勗鋆銝鈭

蝵哽SF

CSF蝵格隞嗅啣嚗/etc/csf/csf.conf, C/ H. Q1 W8 Z( {
賢嚗/etc/csf/csf.allow
. u: m% t6 D0 W9 C/ U6 t3 k! y; a暺嚗/etc/csf/csf.deny

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

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

CONNLIMIT = "22;5,80;20"
, G4 I  q; [6 ~" `# TPORTFLOOD = "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. O) b$ p' O$ k
csf -e 每SF
  T- }; t0 m# [  v; Fcsf -l 亦CSF

+ |% ?& g2 x7 e; V

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

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 08:51 , Processed in 0.065376 second(s), 19 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵