[问题]防火墙启动无法启动。

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
networker
帖子: 419
注册时间: 2006-02-06 21:06
来自: Shanghai,China
联系:

[问题]防火墙启动无法启动。

#1

帖子 networker »

这是错误日志。
Processing /etc/shorewall/shorewall.conf...
Loading Modules...
Starting Shorewall...
Initializing...
Shorewall has detected the following iptables/netfilter capabilities:
NAT: Available
Packet Mangling: Available
Multi-port Match: Available
Extended Multi-port Match: Available
Connection Tracking Match: Available
Packet Type Match: Available
Policy Match: Not available
Physdev Match: Available
IP range Match: Available
Recent Match: Available
Owner Match: Available
Determining Zones...
/usr/share/shorewall/functions: line 287: =firewall: command not found
Zones: net loc $FW sam
Validating interfaces file...
Error: Invalid zone (horewall) in rec
ord "horewall 2.2 -- Interfaces File"
这个是错误日志。
=====================
jerry@Jerry:~/BlueDJGames-2.3.0$ sudo vi /etc/shorewall/zones
#ZONE DISPLAY COMMENTS
net Net Internet
loc Local Local Networks
#ZONE TYPE OPTION
$FW firewall
sam ipv4
#net ipv4
#loc ipv4
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE
==============================
jerry@Jerry:~/BlueDJGames-2.3.0$ sudo vi /etc/shorewall/masq
#INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC
ppp0 eth0

=========================
jerry@Jerry:~/BlueDJGames-2.3.0$ sudo vi /etc/shorewall/rules
#
# 允许 DNS 从 防火墙 连接到 Internet
#
AllowDNS fw net
#
# 允许本地网络可以使用 SSH 来管理服务器
#
AllowSSH loc fw
#
# 允许 Ping 到防火墙和允许防火墙 Ping 其它网络
#
AllowPing loc fw
AllowPing net fw
AllowPing fw loc
AllowPing fw net
#
# 允许 Internet 访问防火墙上的 WEB 服务
#
AllowWeb net fw
#
# 允许 Internet 访问防火墙上的 FTP 服务
#
AllowFTP net fw
#
# 允许 Internet 访问防火墙上的 邮件 服务
#
AllowSMTP net fw
AllowIMAP net fw
#
# 允许本地网络可以访问 Internet
#
AllowWeb loc net
#
# 允许本地网络可以收发邮件
#
AllowSMTP loc net
AllowIMAP loc net
AllowPOP3 loc net
#
# 允许本地网络使用 FTP 到 Internet
#
AllowFTP loc net
#
# 允许本地网络从 Internet 查询 DNS
#
AllowDNS loc net
#
# 允许本地网络使用 NSM
#
ACCEPT loc net tcp 1863
ACCEPT loc net tcp 443
ACCEPT loc net:gateway.messenger.hotmail.com all
#
# 将WEB访问重新定向到 3128 ,通过squid完成访问 ,访问服务器地址 192.168.0.1 除外。
#
#REDIRECT loc 3128 tcp www - !192.168.0.1
=================================
用的是内网dhcp自动获取ip。单网卡。
回复