小编sin*_*ohe的帖子

为什么我的 iptables 规则不起作用?

我的 VPS 上有两个接口:eth0eth0:0. 我想在eth0:0使用 iptables 时阻止端口 80 上的传入数据包。我试过这个,但它不起作用:

iptables -A INPUT -i "eth0:0" -p tcp --destination-port 80 -j DROP
Run Code Online (Sandbox Code Playgroud)

如果我更改eth0:0eth0它可以正常工作。问题是什么?

firewall iptables

9
推荐指数
1
解决办法
5847
查看次数

标签 统计

firewall ×1

iptables ×1