All of lore.kernel.org
 help / color / mirror / Atom feed
* [Documentation] SNAT in INPUT chain
@ 2016-04-26 14:17 Lion Yang
  2016-04-26 16:14 ` Florian Westphal
  0 siblings, 1 reply; 3+ messages in thread
From: Lion Yang @ 2016-04-26 14:17 UTC (permalink / raw)
  To: netfilter-devel

netfilter after about (linux kernel) 2.4.x (or 2.6.x?) [1] can put SNAT into hook NF_IP_LOCAL_IN.
However, official docs(including 'man') doesn't change, so far.

It's hard to me to write something correctly and precisely in English.
Would someone improve the docs please?

ps: Maybe add some descriptions about 'where did the de-SNAT and de-DNAT processes placed.' is a good idea.

[1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c68cd6cc21eb329c47ff020ff7412bf58176984e
-- 
IV.26.16
Lion Yang
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Documentation] SNAT in INPUT chain
  2016-04-26 14:17 [Documentation] SNAT in INPUT chain Lion Yang
@ 2016-04-26 16:14 ` Florian Westphal
  2016-04-26 16:46   ` Lion Yang
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Westphal @ 2016-04-26 16:14 UTC (permalink / raw)
  To: Lion Yang; +Cc: netfilter-devel

Lion Yang <lion@aosc.io> wrote:
> netfilter after about (linux kernel) 2.4.x (or 2.6.x?) [1] can put SNAT into hook NF_IP_LOCAL_IN.
> However, official docs(including 'man') doesn't change, so far.
> 
> It's hard to me to write something correctly and precisely in English.
> Would someone improve the docs please?

Is this enough?

--- a/iptables/iptables.8.in
+++ b/iptables/iptables.8.in
@@ -103,8 +103,9 @@ the built-in chains \fBINPUT\fP (for packets destined to local sockets),
 .TP
 \fBnat\fP:
 This table is consulted when a packet that creates a new
-connection is encountered.  It consists of three built-ins: \fBPREROUTING\fP
-(for altering packets as soon as they come in), \fBOUTPUT\fP
+connection is encountered.  It consists of four built-ins: \fBPREROUTING\fP
+(for altering packets as soon as they come in), \fBINPUT\fP (for altering
+packets destined for local sockets), \fBOUTPUT\fP
 (for altering locally-generated packets before routing), and \fBPOSTROUTING\fP
 (for altering packets as they are about to go out).
 IPv6 NAT support is available since kernel 3.7.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Documentation] SNAT in INPUT chain
  2016-04-26 16:14 ` Florian Westphal
@ 2016-04-26 16:46   ` Lion Yang
  0 siblings, 0 replies; 3+ messages in thread
From: Lion Yang @ 2016-04-26 16:46 UTC (permalink / raw)
  To: Florian Westphal; +Cc: netfilter-devel

Yes, enough.

27.04.2016, 00:13, "Florian Westphal" <fw@strlen.de>:
> Is this enough?
>
> --- a/iptables/iptables.8.in
> +++ b/iptables/iptables.8.in
> @@ -103,8 +103,9 @@ the built-in chains \fBINPUT\fP (for packets destined to local sockets),
>  .TP
>  \fBnat\fP:
>  This table is consulted when a packet that creates a new
> -connection is encountered. It consists of three built-ins: \fBPREROUTING\fP
> -(for altering packets as soon as they come in), \fBOUTPUT\fP
> +connection is encountered. It consists of four built-ins: \fBPREROUTING\fP
> +(for altering packets as soon as they come in), \fBINPUT\fP (for altering
> +packets destined for local sockets), \fBOUTPUT\fP
>  (for altering locally-generated packets before routing), and \fBPOSTROUTING\fP
>  (for altering packets as they are about to go out).
>  IPv6 NAT support is available since kernel 3.7.

--
Lion Yang
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-26 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26 14:17 [Documentation] SNAT in INPUT chain Lion Yang
2016-04-26 16:14 ` Florian Westphal
2016-04-26 16:46   ` Lion Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.