Linux防火墙iptables基本命令
- 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 # 删除阻止规则
下载地址
用户评论