[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100530215322.GA11253@gondor.apana.org.au>
Date: Mon, 31 May 2010 07:53:22 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Changli Gao <xiaosuo@...il.com>
Cc: jamal <hadi@...erus.ca>, "David S. Miller" <davem@...emloft.net>,
netdev@...r.kernel.org
Subject: Re: [PATCH v2] act_nat: fix the wrong checksum when addr isn't in
old_addr/mask
On Sun, May 30, 2010 at 09:33:22PM +0800, Changli Gao wrote:
>
> Thinking about this topologic:
>
> client -> DNAT -> router -> server.
>
> DNAT is used to map a public IP to server's private IP. If a
> DEST_UNREACH ICMP packet is sent out by router, in order to handle
> this ICMP packet correctly, I have to pass it to act_nat.c. How can I
> filter out the other packets? By inspecting the inner IP destination
> address of this ICMP packet? Maybe I can use u32 with complicate
> parameters.
You should filter out all the non-ICMP packets, just like you
do here.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists