VPS侦探论坛

 找回密码
 注册
查看: 4421|回复: 2

军哥你好,linode debian8.1 用lnmp1.3做好后总是自动生成iptables文件

[复制链接]
发表于 2016-3-16 02:11:41 | 显示全部楼层 |阅读模式

刚开始自动生成的是/etc/iptables.rule,内容如下:# Generated by iptables-save v1.4.21 on Wed Mar 16 02:02:21 2016
*security
:INPUT ACCEPT [809:80059]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [613:499418]
COMMIT
# Completed on Wed Mar 16 02:02:21 2016
# Generated by iptables-save v1.4.21 on Wed Mar 16 02:02:21 2016
*raw
REROUTING ACCEPT [822:84251]
:OUTPUT ACCEPT [613:499418]
COMMIT
# Completed on Wed Mar 16 02:02:21 2016
# Generated by iptables-save v1.4.21 on Wed Mar 16 02:02:21 2016
*nat
REROUTING ACCEPT [46:6121]
:INPUT ACCEPT [33:1929]
:OUTPUT ACCEPT [28:2299]
OSTROUTING ACCEPT [28:2299]
COMMIT
# Completed on Wed Mar 16 02:02:21 2016
# Generated by iptables-save v1.4.21 on Wed Mar 16 02:02:21 2016
*mangle
REROUTING ACCEPT [822:84251]
:INPUT ACCEPT [810:80099]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [613:499418]
OSTROUTING ACCEPT [613:499418]
COMMIT
# Completed on Wed Mar 16 02:02:21 2016
# Generated by iptables-save v1.4.21 on Wed Mar 16 02:02:21 2016
*filter
:INPUT ACCEPT [5:301]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [613:499418]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 59998 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j DROP
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20000:30000 -j ACCEPT
-A OUTPUT -p tcp -m tcp --sport 59998 -j ACCEPT
COMMIT
# Completed on Wed Mar 16 02:02:21 2016
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-3-16 02:13:52 | 显示全部楼层


然后我按照网上复制了一份防火墙代码,并把这个文件设为不可写,重启VPS,结果又自动生成了iptables.rules,内容同上。。
这个是系统什么软件自动生成的。。如何禁用呢
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-3-16 08:23:01 | 显示全部楼层

https://www.vpser.net/security/linux-iptables.html 将文章后面说明的执行文件删除就行了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 19:49 , Processed in 0.025328 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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