52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-11-23 21:26:14 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2015-11-24 08:46 蝺刻摩
+ l8 d8 W2 P' ?4 }$ k" q2 A; ^: Y5 C0 h- n# |& b7 y. W

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

扯隞乩甇仿炊摰鋆嚗

rm -fv csf.tgz
; F2 N* P4 K7 Zwget http://www.configserver.com/free/csf.tgz
' J. H7 c3 e) E, F' ztar -xzf csf.tgz0 Z; d% n0 ~, g1 S* a0 C
cd csf- e& q5 L: B9 B! h
sh install.sh

箇 Error:

Checking Perl modules...
' |" D1 r9 B% [' w  oCan'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.# _! v7 `9 b6 t4 H% G, K9 @1 ~
BEGIN failed--compilation aborted at (eval 22) line 2.# z# I5 z* \+ F+ Z1 f
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.
' R6 Z/ \7 D  S2 MBEGIN failed--compilation aborted at (eval 27) line 2.
  W% o) b/ u% e9 s9 w8 VUsing configuration defaults

% y" }! a5 _9 O5 FYou need to install the missing perl modules and then install cxs閫瘙:
7 {4 V5 Y6 x' ~* G拍 yum 隞支撠 LWP/UserAgent.pm
6 _, I# f* o2 J5 Lyum provides "perl(LWP::UserAgent)"# Z- u  C8 ?4 v6 T) B. L
蝯:5 [; m, z3 M# F8 g+ d
perl-libwww-perl-5.833-2.el6.noarch : A Perl interface to the World-Wide Web
# j: t" w5 a, yRepo        : base) V+ l2 i+ H  u2 }# A2 G6 S
Matched from:' b, A: v: F4 e
Other       : perl(LWP::UserAgent)3 v5 Y7 q" s3 z; I, G
So:, u. X, I4 a8 g. H6 l+ b+ O
yum install perl-libwww-perl- M, p$ n8 M* R6 l
$ \6 [2 m6 e1 @8 [8 A4 N
yum install perl-Time-HiRes
8 V+ C3 ]# g0 b! I/ o- R/ c) ?. N
6 k$ z8 Z8 B: Zsh install.sh
1 X0 }9 U1 n8 d/ G! i' [# [; [( B' Q/ ], k% z* p1 |+ p. p: Z9 x

璉瘚iptalbes璅∪嚗

perl /etc/csf/csftest.pl

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

sh /etc/csf/remove_apf_bfd.sh

扯摰瘥嚗函CSF撠勗鋆銝鈭

蝵哽SF

CSF蝵格隞嗅啣嚗/etc/csf/csf.conf
% ?3 O" C) j' |/ L# l) s- c' N- l賢嚗/etc/csf/csf.allow
8 l! F" K) E/ [6 C* F暺嚗/etc/csf/csf.deny

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

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

CONNLIMIT = "22;5,80;20"1 O- e* v3 \1 U
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$ }( I- b7 F; Y  K4 J- z
csf -e 每SF
  e: F8 w& ^* s( }1 ^csf -l 亦CSF

  N1 D, \& b* x1 J2 w  {) V

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

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 00:26 , Processed in 0.066046 second(s), 19 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵