文档介绍:湖南安全技术职业学院
Hunan Vocational Institute of Safety Technology
设计(论文)题目:IPTables下防火墙的研究与实现
学生姓名:
专业班级:
指导老师:
系主任(院长):
评阅人:
2012 年 4 月
摘要
计算机网络的迅速发展给人类社会带来了前所未有的飞跃,极大的提高了工作效率,丰富了人们的精神生活,而与此同时也带来了一个日益严峻的问题--网络安全。防火墙作为一种行之有效的网络安全机制,已经得到广大用户的接受和认同。另一方面,网络应用的日益广泛使得各种不同的应用层协议不断涌现,这些协议在方便使用网络的同时也带了各种问题。例如P2P 协议在有多个用户同时进行下载的情况下会占用大量的网络资源,严重影响网络的正常服务。因此,如何识别这些协议并在需要的时候对其加以过滤具有很高的实用价值。作者在研究包过滤、代理服务、状态检测等防火墙基本实现技术的基础上,提出一种基于应用层协议过滤的iptables 防火墙解决方案。
关键词:Linux;网络安全;防火墙;iptables
ABSTRACT
With the rapid development work, the problem work security is ing increasingly serious. As an effective way to guarantee the safety work, firewall has been widely accepted and used. In the meantime, the wide use work has result in more and more application protocols been introduced. These protocols make it easy for people to obtain information, but also cause inconvenience. For example, although P2P protocol makes download efficient, network bandwidth will be exhausted quickly if many people use P2P download simultaneously, which will work service degrade. Therefore, it is important to identify these protocols and filter them. On the basis of the studies of firewall, such as package filter, application gateway, status inspection, the author introduced a solution of iptables firewall system based on layer7-filter.
Keywords: Linux; network security; firewall; iptables;
目录
摘要 I
第一章 Linux防火墙概述 4
4
防火墙的功能 4
防火墙的发展史 4
防火墙的分类 5
Linux 包过滤防火墙的架构 6
Linux防火墙是安装,启动和关闭 7
第二章 IPTables 简介 9
IPTables的基本概念 9
IPTables数据包的传输过程 10
激活IP包转发功能 10
第三章 IPTables的使用 12
IPTables的基本格式 12
IPTables命令的使用 13
第四章IPTables实现NAT功能 18
NAT服务概念 18
利用 IPTables服务实现NAT服务 19
第五章 IPTables技巧实例 24
禁止访问不健康的网站 24
禁止某些客户上网 24
禁止客户使用某些服务 25
禁止使用ICMP协议 25
过滤网站 26
利用IPTables的定时功能 27
利用IPlimit参数设置最大连接数 28
结论 30
参考文献 31
致谢 32
第一章 Linux防火墙概述
防火墙的功能
防火墙是位于不同网络(如可信的企业内部网和不可信的公共网)或网络安全域之间,对网络进行隔离并实现