[问题]为什么我的防火墙起不来?找不到资料,请版主帮忙。

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

[问题]为什么我的防火墙起不来?找不到资料,请版主帮忙。

#1

帖子 networker » 2006-04-08 20:12

本机环境:局域网(client),dhcp
root@Ubuntu:/etc/shorewall# vi policy
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
loc net ACCEPT
net all DROP info
all all REJECT info
#LAST LINE -- DO NOT REMOVE
---------------------------------
root@Ubuntu:/etc/shorewall# vi interfaces
#ZONE INTERFACE BROADCAST OPTIONS
net eth0 detect dhcp
loc eth0 detect
#
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
----------------------------------------
root@Ubuntu:/etc/shorewall# vi 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 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
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
-------------------------------------------
root@Ubuntu:/etc/shorewall# vi zones
#ZONE DISPLAY COMMENTS
net Internet Internet
loc Local Local Networks
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE
-------------------------------------------

——————————————————————————————————————————————————
jerry@Ubuntu:~$ sudo /etc/init.d/shorewall start
Password:
Starting "Shorewall firewall": /etc/init.d/shorewall: line 77: 14092 Terminated $SRWL start >>$INITLOG 2>&1
not done (check /var/log/shorewall-init.log).
——————————————————————————————————————————
root@Ubuntu:~$ cat /var/log/shorewall-init.log
Loading /usr/share/shorewall/functions...
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...
Zones: net loc
Validating interfaces file...
Error: Invalid zone (horewall) in record "horewall 2.2 -- Interfaces File"
——————————————————————————————————————————————————
请版主帮忙,我陪了一天也没弄出来。而且找不到wiki里的帮助文件。谢谢~~~~~~~~~~
networker
帖子: 419
注册时间: 2006-02-06 21:06
来自: Shanghai,China
联系:

#2

帖子 networker » 2006-04-10 20:11

没人知道问题出在哪里吗?晕的~~
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2006-04-10 22:28

ubuntu的权限配置,可以让你基本不要防火墙。也别迷信这个。
记得有个firestarter,图形界面的。容易配置。
gtk program for managing and observing your firewall
● 鸣学
回复