日志文章

2006年09月11日

iptables安装配置尝试

尝试一: O}$HX<P }  
iptables(1.2.7) ^Tm!q  
操作系统:Red Hat 9.0 :gC=SG${  
内核版本:2.4.20-8 aw5i\R|)XW  
所用软件包:patch-o-matic-20031219.tar.gz2 r~!   
编译过程: Cx> $%|D  
shell>tar -jxvf patch-o-matic-20031219.tar.gz2 YAnDx<*)  
shell>cd patch-o-matic-20031219 0 qVC %Hm  
shell>./runme V g.t@ b{,  
选择安装更新包。 /T <{Z1-F  
shell>cd /usr/src/linux-2.4.20-8 o,lpc)|  
shell>make mrproper d\Ve"!2AHR  
shell>make menuconfig *ZNZ']@K  
选择网络相关项,编译模块 Bs]2kS?~5  
shell>make clean ke\#pc 0  
shell>make dep eAa4b E  
shell>make modules 6W">72Tldc  
shell>make modules_install = ;9PY9C  
shell>reboot ._ l'8D  
rASALN?rfA  
内核编译完成,测试: 0`7su&Ps  
shell>iptables -m iplimit p9!?p5 w  
iptables v1.2.7a: You must specify `--iplimit-above' ]r}9l70c  
Try `iptables -h' or 'iptables --help' for more information. f"?_7q  
shell>iptables -t mangle -I PREOUTING -p tcp -m iplimit --iplimit-above 12 --iplimit-mask 255.255.255.255 -j MARK --set-mark nf$e7B`~fb  
eKvE#hT(  
1234 FRS(Py{R  
j COrF}8)L  
iptables: No chain/target/match by that name ?@*`Lck/  
报错!/lib/modules/2.4.20-8/kernel/net/ipv4/netfilter中的模块都存在! $`p3H;:  
xps2El;H5u  
尝试二: y{'=5  
iptables(1.3.1) Bv^\?N2<  
操作系统:Red Hat 9.0 u=NDq  
内核版本:2.4.20-8 \#s5O$kB  
所用软件包:patch-o-matic-20031219.tar.gz2 Zaz_,qOJ;U  
iptables-1.3.1.tar.bz2 16riv4H  
编译过程: v(Wr*]  
shell>cd /usr/src a+KN Rm  
shell>tar jxvf iptables-1.3.1.tar.bz2 _!1>O7|  
shell>cd iptables-1.3.1 ;\^ T,9/>  
shell>export KERNEL_DIR=/usr/src/linux-2.4.20-8/ 6$h!HX=  
shell>export IPTABLES_DIR=/usr/src/iptables-1.3.1 #ryq,b"  
shell>make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man install jt N{fk  
shell>cd ../../ Qa>Y#,.  
shell>tar -jxvf patch-o-matic-20031219.tar.gz2 ZA6E`7  
shell>cd patch-o-matic-20031219 '2b eqaU  
shell> KERNEL_DIR=/usr/src/linux-2.4.20-8/ IPTABLES_DIR=/usr/src/iptables-1.3.1 ./runme base 6a l9#kd  
选择安装更新包 Cdr s 7  
shell>cd /usr/src/linux-2.4.20-8 l>6%,J  
shell>make mrproper ;Tn&hJs  
shell>make menuconfig xE./T=`7  
选择网络相关选项,编译模块 08V]|}J  
shell>make dep Oskuy&  
shell>make clean -fT v'zJ  
shell>make modules $?+KO@G  
shell>make modules_install [xhse9_w  
报错: {bnD`X^u:  
make -C kernel modules_install >&B'y4'a~  
make[1]: Entering directory `/usr/src/linux-2.4.20-8/kernel' I72KR,  
mkdir -p /lib/modules/2.4.20-8/kernel/kernel/ a kA.yNL  
cp cpufreq.o /lib/modules/2.4.20-8/kernel/kernel/ FB+O[\fLQ  
cp: cannot stat `cpufreq.o': No such file or directory ^BC-zK;},  
make[1]: *** [_modinst__] Error 1 m!J}NH6  
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel' q7N! /'  
make: *** [_modinst_kernel] Error 2 {$ 4<"_.  
P4VC8z,  
期待高手指点一下。E-mail: ypch97@mail.sdu.edu.cn }%nC_:)Tm  

类别: 无分类 |  评论(16) |  浏览(10440) |  收藏
ma9hz6g5 2009年01月09日 Says:
%5Burl=http://www.17shnet.cn/powerq/%5D%E7%94%B5%E8%83%BD%E8%B4%A8%E9%87%8F%E5%88%86%E6%9E%90%E4%BB%AA%5B/url%5D%0D%0A%5Burl=http://www.17shnet.cn/Ictest-online/%5D%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%95%85%E9%9A%9C%E6%A3
nim5q60w 2009年01月07日 Says:
%3Ca%20href="http://www.chinanet2000.com/zckjs/"%3E%E6%B3%A8%E5%86%8C%E4%BC%9A%E8%AE%A1%E5%B8%88%E8
ftyredv99 2009年01月05日 Says:
%E4%B8%9C%E5%8D%97%E4%BA%9A%E8%AF%81%E4%BB%B6%E9%9B%86%E5%9B%A2%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8QQ:781593880%E8%AF%9A%E4%BF%A1%E4%B8%93%E4%B8%9A%E5%8A%9E%E7%90%86%20:%20%201%EF%BC%9A%E6%AF%95%E4%B8%9A%E8%AF%81%E3
ewrer1wa 2009年01月01日 Says:
%E7%8E%AF%E7%90%83%E8%AF%81%E4%BB%B6QQ:573790566%E8%AF%9A%E4%BF%A1%E4%B8%93%E4%B8%9A%E5%8A%9E%E5%90%84%E7%B1%BB%E6%AF%95%E4%B8%9A%E8%AF%81%E3
qq9e6sa4 2008年12月29日 Says:
%5Burl=http://www.086hh.com%5D%E6%B2%88%E9%98%B3%E5%AE%8F%E6%B5%B7%E6%9C%BA%E6%A2%B0%E5%88%B6%E9
guest 2006年10月24日 Says:
ni tai bang le
发表评论
看不清楚,换一张