mysql 黑名单

AI-摘要
文章摘要 GPT
AI初始化中...
mysql 黑名单
Eucalyptus目的:使用iptables禁止121.43.122.130客户端连接140.143.94.243机器上部署的mysql
| 角色 | IP地址 |
|---|---|
| 部署MySQL的机器 | 140.143.94.243 |
| 客户端 | 121.43.122.130 |
安装 iptables-services 若没装
1 `yum install -y iptables-services`让 systemd 接管iptables
1 `systemctl start iptables`
在部署MySQL机器上的filter表INPUT链里加一条DROP规则
1 | iptables -I INPUT -s 121.43.122.130 -p tcp --dport 3306 -j DROP |
查看规则是否已插入
1 | iptables -nvL |
验证
这种情况下端口不通
删除规则
1 | iptables -D INPUT -s 121.43.122.130 -p tcp --dport 3306 -j DROP |
针对这类iptables禁用后使用wireshark分析抓包情况,可以看到tcp一直再重传
评论
匿名评论隐私政策
✅ 你无需删除空行,直接评论以获取最佳展示效果









