1)用apt-get install安装。
按FireHare教程:http://wiki.ubuntu.org.cn/ShoreWall%E5% ... E%E7%BD%AE
在复制配置文件时出错。sudo gunzip -c /usr/share/doc/shorewall/default-config/interfaces.gz > /etc/shorewall/interfaces
sudo gunzip -c /usr/share/doc/shorewall/default-config/rules.gz > /etc/shorewall/rules
sudo gunzip -c /usr/share/doc/shorewall/default-config/hosts.gz > /etc/shorewall/hosts
sudo gunzip -c /usr/share/doc/shorewall/default-config/masq.gz > /etc/shorewall/masq
后面几个rules.gz host.gz masql.gz也出现同样错误。root@lihui-BuyerOrgCn:/# gunzip -c /usr/share/doc/shorewall/default-config/interfaces.gz > /etc/shorewall/interfaces
gunzip: /usr/share/doc/shorewall/default-config/interfaces.gz: No such file or directory
查看,原来在/usr/share/doc/shorewall/default-config/下面根本就没有这几个文件。(我用5.05时是有的)
但是其目录里有 interfaces rules host masql这四个已经解压了的文件。
于是,我直接将他们copy过去。
在配置时又出现以前5.05时的错误:
我把shorewall文件目录及interfaces文件都设置成777,还是出错。root@lihui-BuyerOrgCn:/# sudo gedit /etc/shorewall/interfaces
(gedit:14913): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
代码: 全选
我用root帐号,还是不能修改shorewall/下的配置。求助!
[quote]root@LHubuntu:/# gedit /etc/shorewall/interfaces
(gedit:12586): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
root@LHubuntu:/#
[/quote]