详细阅读 iptables / netfilter这里,当我读到这个-o
论点时:
“指示通过 INPUT、FORWARD 和 PREROUTING 链发送传出数据包的接口。”
在我看来,这是错误的,因为他们为-i
论证写了同样的东西。
在我看来,它应该是:
“指示通过 OUTPUT、FORWARD 和 POSTROUTING 链发送传出数据包的接口。”
正确的?
答案1
是的,debian 手册页;
[!] -o, --out-interface name
Name of an interface via which a packet is going to be sent (for packets entering the FORWARD, OUTPUT and POSTROUTING chains). When the "!" argument is used before the
interface name, the sense is inverted. If the interface name ends in a "+", then any interface which begins with this name will match. If this option is omitted, any
interface name will match.