我的 VPS 上有两个接口:eth0和eth0:0. 我想在eth0:0使用 iptables 时阻止端口 80 上的传入数据包。我试过这个,但它不起作用:
eth0
eth0:0
iptables -A INPUT -i "eth0:0" -p tcp --destination-port 80 -j DROP
如果我更改eth0:0为eth0它可以正常工作。问题是什么?
firewall iptables
firewall ×1
iptables ×1