请教:我的edgy在引入iptables后,无法正常登录

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
头像
netware_boy
帖子: 12
注册时间: 2007-05-15 13:26

请教:我的edgy在引入iptables后,无法正常登录

#1

帖子 netware_boy » 2007-06-19 16:16

请问各位,我在我的edgy下编辑了firewall.sh文件,并设置sudo chmod +x firewall.sh

并编辑/etc/rc.local中,加入firewall.sh

firewall.sh内容为:
iptables -F
iptables -X
iptables -P INPUT DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -P OUTPUT ACCEPT

现在在x的登录界面输入用户名密码后系统就停止了。请问如何自动挂载我的iptables脚本啊。
谢谢先。
chasye
帖子: 333
注册时间: 2007-05-13 15:20

#2

帖子 chasye » 2007-06-20 15:13


iptables -P INPUT DROP 下
加一行
iptables -A INPUT -i lo -j ACCEPT
试试
头像
netware_boy
帖子: 12
注册时间: 2007-05-15 13:26

#3

帖子 netware_boy » 2007-07-07 13:55

谢谢啦,继续研究中......
回复