Bug 674219

Summary: Incorrect statement in iptables manpage (--syn)
Product: [Fedora] Fedora Reporter: Akira TAGOH <tagoh>
Component: man-pages-jaAssignee: Akira TAGOH <tagoh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: enakai0, i18n-bugs, tagoh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 669002 Environment:
Last Closed: 2011-02-25 10:44:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 669002, 745374    
Bug Blocks:    

Description Akira TAGOH 2011-02-01 02:02:01 UTC
+++ This bug was initially created as a clone of Bug #669002 +++

Japanese translation of iptables manpage for --syn option is incorrect.

The following English description looks correct.

       [!] --syn
              Only  match TCP packets with the SYN bit set and the ACK,RST and
              FIN bits cleared.  Such packets are used to request TCP  connec-
              tion initiation; for example, blocking such packets coming in an
              interface will prevent incoming TCP  connections,  but  outgoing
              TCP  connections will be unaffected.  It is equivalent to --tcp-
              flags  SYN,RST,ACK,FIN  SYN.   If  the  "!"  flag  precedes  the
              "--syn", the sense of the option is inverted.

But Japanese page says a different thing and it looks incorrect. I write down the comment in Japanese (as it'll be reviewed by Japanese translator, right?)

現在の内容
              SYN  ビットが設定され ACK と RST ビットがクリアされている TCP パ
              ケットにのみマッチする。このようなパケットは TCP 接続の開始要 求
              に使われる。例えば、あるインターフェースに入ってくるこのようなパ
              ケットをブロックすれば、内側への TCP 接続は禁止されるが、外側 へ
              の TCP 接続には影響しない。これは --tcp-flags SYN,RST,ACK SYN と
              等しい。 "--syn" の前に "!" フラグを置くと、 SYN ビットがクリ ア
              さ れ ACK と RST ビットが設定されている TCP パケットにのみマッチ
              する。

修正案
              SYN  ビットが設定され ACK、RST、および、FIN ビットがクリアされている TCP パ
              ケットにマッチする。このようなパケットは TCP 接続の開始要求
              に使われる。例えば、あるインターフェースに入ってくるこのようなパ
              ケットをブロックすれば、内側への TCP 接続は禁止されるが、外側 へ
              の TCP 接続には影響しない。これは --tcp-flags SYN,RST,ACK,FIN SYN と
              等しい。 "--syn" の前に "!" フラグを置くと、この条件を満たさないパケットにマッチする。


※!フラグの解釈の違いにも注意下さい。

Comment 1 Akira TAGOH 2011-02-25 10:44:08 UTC
Fixed in man-pages-ja-20110215-1.fc16

Comment 2 Akira TAGOH 2011-10-24 07:49:53 UTC
*** Bug 745374 has been marked as a duplicate of this bug. ***