WEB开发网
开发学院网络安全防火墙 iptables基础和应用(2) 阅读

iptables基础和应用(2)

 2006-04-03 12:37:29 来源:WEB开发网   
核心提示:陆、应用实例#!/bin/sh## 石牌国小防火墙设定指令稿# 2002/8/27# 设定者:李忠宪(修改自 iptables tutorial 1.1.11 by Oskar Andreasson )# 原文件是依 DMZ 需求设计,已根据校园 NAT 网络之需求修改,iptables基础和应用(2),其余改动部份包

陆、应用实例

#!/bin/sh

#

# 石牌国小防火墙设定指令稿

# 2002/8/27

# 设定者:李忠宪(修改自 iptables tutorial 1.1.11 by Oskar Andreasson )

# 原文件是依 DMZ 需求设计,已根据校园 NAT 网络之需求修改,其余改动部份包括:

# 新增通讯协议定义区块

# 新增执行时,自动清除已设定之规则

# 支援 FTP

# 修改所有规则,改采 multiport 方式以简化规则

# 原文件仅支持 IP 伪装(多对一对应),已扩充为支持一对一对应及多对多对应

# 原文件仅支援 DNS 及 WEB,新增 ftp、mail、wam、PCAnywhere、ssh......等多种服务器

# 修改若干规则设定上的小错误

#

# Copyright (C) 2001 Oskar Andreasson <bluefluxATkoffeinDOTnet>

#

# This program is free software; you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation; version 2 of the License.

#

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

# GNU General Public License for more details.

#

# You should have received a copy of the GNU General Public License

# along with this program or from the site that you downloaded it

# from; if not, write to the Free Software Foundation, Inc., 59 Temple

1 2 3 4  下一页

Tags:iptables 基础 应用

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接