Iptables 应用
1. 简介
2. 安装 iptables
systemctl stop firewalld
systemctl disable firewalldyum install -y iptables-services3. 命令
4. iptables 示例
4.1. 清空当前的所有规则和计数
4.2. 配置允许 ssh 端口连接
4.3. 允许本地回环地址可以正常使用
4.4. 设置默认的规则
4.5. 配置白名单
4.6. 开启相应的服务端口
4.7. 保存规则到配置文件中
4.8. 列出已设置的规则
4.9. 清除已有规则
4.10. 删除已添加的规则
4.11. 开放指定的端口
4.12. 屏蔽 IP
4.13. 指定数据包出去的网络接口
4.14. 查看已添加的规则
4.15. 启动网络转发规则
4.16. 端口映射
4.17. 字符串匹配
4.18. 阻止 Windows 蠕虫的攻击
4.19. 防止 SYN 洪水攻击
5. 参考资料
Last updated
Was this helpful?