当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: (每个info和help本是英文的,为方便阅读我把它翻译成中文,
 

 

 ·linux核心源程序的文件组织    »显示摘要«
    摘要:一直想读linux内核,却总是没有实际行动,现在先来了解一下linux核心源程序的文件组织吧!核心源程序的文件组织: 1.linux核心源程序通常都安装在/usr/src/linux下,而且它有一个非常简单的编号约定:任何偶数的 核心(例如2.0.30)都是一个稳定地发行的核心,而任何奇数的核心(例如2.1.42)都是一个开发中的核心。 本文基于稳定的2.2.5源代码,第二部分的实现平台为 red......
 ·美国电影分级制度    »显示摘要«
    摘要:  美国的mpaa,它的全称为“the motion picture association of america ”即“美国电影协会”,总部设在加利福利(encino,california )。这个组织成立于1922年,最初是作为电影工业的一个交易组织而出现的。如今它涉足的领域不仅有在影院上映的电影,还有电视`家庭摄影(home video)以及未来有可能会出现的其他传送系统领域。   mpaa......


netfilter/iptables模块功能中文介绍
上一页   ...[root@kindgeorge patch-o-matic-ng-20050331]# cat string/help

this patch adds config_ip_nf_match_string which allows you to 【程序编程相关:IT从业人员必看的10大论坛

【推荐阅读:Repairing Important

match a string in a whole packet. 【扩展信息:在fedora中使用yum简化rpm包管

this patch does not work with kernel 2.4.9 !!!

翻译:这个补丁增加config_ip_nf_match_string,允许在一整个包里面匹配一个字符串.

译者:这个功能真是值得一用,实际上应该说是可以做内容过滤吧,令人兴奋啊.我测试过,连中文也支持,我是这样测试它的:

iptables -i forward -m string --string "腾讯" -j drop

iptables -i forward -s 192.168.3.159 -m string --string "qq.com" -j drop

iptables -i forward -d 192.168.3.0/24 -m string --string "宽频影院" -j drop

iptables -i forward -d 192.168.3.0/24 -m string --string "色情" -j drop

iptables -i forward -d 192.168.3.0/24 -p tcp --sport 80 -m string --string "广告" -j drop

至于怎么灵活运用就要看自己的需要了.

关于string其他安全应用这里有个转帖收录:

http://blog.chinaunix.net/article.php?articleid=16909&blogid=4543

2. comment (备注匹配,可以支持最多256个字符)

[root@kindgeorge patch-o-matic-ng-20050331]# cat comment/info

title: iptables comment match (标题: iptables 注释匹配)

author: brad fisher (作者(名字,email地址brad@info-link.net))

status: part of 2.6.x mainline(状况:2.6.x主流版本的一部分) [由于mainline我还在犹豫怎么翻译,高手请提示]

repository: submitted (贮仓库: 顺从的)

requires: linux == 2.4 (要求: linux == 2.4)

recompile: netfilter, iptables(重新编译:netfilter|iptables)

[root@kindgeorge patch-o-matic-ng-20050331]# cat comment/help this option adds config_ip_nf_match_comment, which supplies a comment

match module.  this match allows you to add comments (up to 256 characters)

to any rule.

supported options:

--comment comment

翻译:这个选项增加config_ip_nf_match_comment,补充一个注释匹配模块.这个匹允许你增加一个备注都任何规则,这个备注最多支持256个字符,例如

example:(例子:)

 -a input -s 192.168.0.0/16 -m comment --comment "a privatized ip block"

译者:我是这样测试使用这个comment

iptables -i forward -s 192.168.3.159 -p tcp --dport 80 -j drop -m comment --comment "the bad guy can not online"


...   下一页
 ·fc3 下中文输入法的安装    »显示摘要«
    摘要:网上有很多关于中文输入法安装的例子,但有的写的很深,不适合我等菜鸟。下面把我自己的安装过程帖出来,和大家共享,希望对和我一样菜的朋友有些帮助。这里我用的是 fcitx ,其他的 scim 就不属于此次讨论的范围了. 首先,安装fcitx之前建议删除系统自带的输入法 rpm -qa iiim* ; 2)下载fcitx 到http://www.fcitx.org/main/?q=node/view/9......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE