完整的 iptables 启动脚本介绍
在网络安全配置中,使用 iptables 配置 netfilter 是常见的操作,它可以在 DMZ 服务器和保护它的防火墙中实现有效的网络过滤。下面将为大家介绍两个完整的 iptables 启动脚本,一个用于堡垒主机,另一个用于多宿主防火墙系统。
1. 堡垒主机(Woofgang)的 iptables 脚本
这个脚本用于运行 FTP 和 HTTP 服务的堡垒主机 Woofgang,以下是脚本的详细内容:
#! /bin/sh
# init.d/localfw
#
# System startup script for local packet filters on a bastion server
# in a DMZ (NOT for an actual firewall)
#
# Functionally the same as Example 3-10, but with SuSE-isms restored and
# with many more comments.
#
# Structurally based on SuSE 7.1's /etc/init.d/skeleton, by Kurt Garloff
#
# The following 9 lines are SuSE-specific
#
### BEGIN INIT INFO
# Provides: localfw
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 2 3 5
# D
超级会员免费看
订阅专栏 解锁全文
3920

被折叠的 条评论
为什么被折叠?



