VPS侦探论坛

 找回密码
 注册
查看: 6497|回复: 9

系统 为什么每次重启 网站就访问不起来每次都得关闭防火墙下 才能打开

[复制链接]
发表于 2012-5-15 14:43:07 | 显示全部楼层 |阅读模式

系统  为什么每次重启 网站就访问不起来每次都得关闭防火墙下 才能打开

service iptables stop iptables服务禁用

=============================


而且 加规则的话 也没看到效果 大家怎么解决的。。
iptables -F
iptables -X
iptables -Z
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 20 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p all --dport 21 -j ACCEPT
iptables -A INPUT -p all --dport 20 -j ACCEPT
iptables -A INPUT -p all --dport 22 -j ACCEPT
iptables -A INPUT -p all --dport 80 -j ACCEPT
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-5-15 18:25:42 | 显示全部楼层


可能iptables没保存规则
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-5-15 21:13:09 | 显示全部楼层

rc.local
里加入iptables -F
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-5-15 21:13:41 | 显示全部楼层



可能selinux没关闭
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-5-16 14:36:52 | 显示全部楼层

回复 3# 的帖子


这个在哪里加也 啊

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2012-5-16 16:58:17 | 显示全部楼层

/etc/rc.local
/etc/rc.d/rc.local
 楼主| 发表于 2012-5-16 17:08:13 | 显示全部楼层

不知道怎么搞 哪位 指教下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-5-18 15:54:38 | 显示全部楼层

我也是这个情况 关闭防火墙就可以访问我自己的网站了 求解
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-5-27 23:12:24 | 显示全部楼层

遇到同样的问题。我也是这个情况 关闭防火墙就可以访问我自己的网站了 求解啊?

LINUC关闭防火墙命令  /etc/init.d/iptables stop

怎样操作,才能保存 iptables规则   呢?军哥

军哥运维代购:http://shop63846532.taobao.com/

发表于 2012-5-28 08:42:41 | 显示全部楼层

回复 9# 的帖子




/etc/init.d/iptables save 是保存
具体系统参考https://www.vpser.net/security/linux-iptables.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 03:14 , Processed in 0.029698 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表