iptablesの-oは、OUTPUT、FORWARD、およびPOSTROUTINGのインタフェースを指定するために使用されます。そうですか?

iptablesの-oは、OUTPUT、FORWARD、およびPOSTROUTINGのインタフェースを指定するために使用されます。そうですか?

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.

おすすめ記事