VPS侦探论坛

 找回密码
 注册
查看: 3278|回复: 3

请教军哥关于UFW防火墙的问题?

[复制链接]
发表于 2017-10-26 18:45:22 | 显示全部楼层 |阅读模式

我的服务器使用的是Ubuntu16.04系统,内置UFW防火墙,底层仍然是iptables。这几天测试发现启用了UFW防火墙,但是似乎屏蔽的I恶意P根本封锁不住。使用“UFW Status”命令显示IP已经被禁止,但是使用netstat命令发现被禁止的恶意IP依然在访问服务器。是我不会设置吗?还是其他原因?希望军哥能给与指点,谢谢!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-10-27 10:15:56 | 显示全部楼层


ufw没用过,貌似ufw只是前端,iptables才是真正进行管理的,可以iptables -L -n 看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-10-27 13:06:30 | 显示全部楼层

使用iptables -L -n命令查看后如下结果:
……
Chain ufw-user-input (1 references)
target     prot opt source               destination

ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:80
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            udp dpt:80

DROP       all  --  42.236.102.1/42.236.102.255  0.0.0.0/0
DROP       all  --  42.236.101.1/42.236.101.255  0.0.0.0/0
DROP       all  --  42.236.103.1/42.236.103.255  0.0.0.0/0
DROP       all  --  42.236.46.1/42.236.46.255  0.0.0.0/0
DROP       all  --  42.236.12.1/42.236.12.255  0.0.0.0/0
DROP       all  --  42.236.54.1/42.236.54.255  0.0.0.0/0
DROP       all  --  42.236.55.1/42.236.55.255  0.0.0.0/0
DROP       all  --  207.241.229.1/207.241.229.255  0.0.0.0/0
DROP       all  --  207.241.231.1/207.241.231.255  0.0.0.0/0
DROP       all  --  183.36.114.1/183.36.114.255  0.0.0.0/0
DROP       all  --  117.136.54.1/117.136.54.255  0.0.0.0/0
DROP       all  --  183.60.191.52        0.0.0.0/0
DROP       all  --  42.236.10.1/42.236.10.255  0.0.0.0/0
DROP       all  --  42.236.99.1/42.236.99.255  0.0.0.0/0
DROP       all  --  42.236.48.1/42.236.48.255  0.0.0.0/0
DROP       all  --  42.236.49.1/42.236.49.255  0.0.0.0/0
DROP       all  --  42.236.50.1/42.236.50.255  0.0.0.0/0
DROP       all  --  42.236.31.1/42.236.31.255  0.0.0.0/0
DROP       all  --  106.11.152.1/106.11.152.255  0.0.0.0/0
DROP       all  --  106.11.153.1/106.11.153.255  0.0.0.0/0
DROP       all  --  106.11.154.1/106.11.154.255  0.0.0.0/0
DROP       all  --  106.11.155.1/106.11.155.255  0.0.0.0/0
DROP       all  --  106.11.156.1/106.11.156.255  0.0.0.0/0
DROP       all  --  106.11.157.1/106.11.157.255  0.0.0.0/0
DROP       all  --  106.11.158.1/106.11.158.255  0.0.0.0/0
DROP       all  --  106.11.159.1/106.11.159.255  0.0.0.0/0
DROP       all  --  218.30.103.250       0.0.0.0/0
DROP       all  --  162.247.102.162      0.0.0.0/0

……

貌似这些IP已经被UFW加入iptables防火墙了,但是好像拦截无效。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-3 19:29 , Processed in 0.026308 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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