1. 首页
  2. 操作系统
  3. Linux
  4. Linux防火墙iptables基本命令

Linux防火墙iptables基本命令

上传者: 2024-05-01 22:03:38上传 DOCX文件 11.38KB 热度 10次
  • iptables -A INPUT -p tcp --dport PORT -j ACCEPT # 允许 TCP PORT 端口
  • iptables -A INPUT -p tcp --dport PORT -j DROP # 阻止 TCP PORT 端口
  • iptables -D INPUT -p tcp --dport PORT -j ACCEPT # 删除允许规则
  • iptables -D INPUT -p tcp --dport PORT -j DROP # 删除阻止规则
下载地址
用户评论