netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iptables -t nat -A OUTPUT -j DNAT ... checksum incorrect
@ 2009-08-05 12:53 Giacomo
       [not found] ` <9e9f4e5f0908051512v5651ea7ah8be49fa19f3577dc@mail.gmail.com>
  2009-08-10 15:23 ` Jan Engelhardt
  0 siblings, 2 replies; 3+ messages in thread
From: Giacomo @ 2009-08-05 12:53 UTC (permalink / raw)
  To: netfilter-devel

Hi to all.

With the rule


iptables -t nat -A OUTPUT -p tcp -j DNAT -d 151.8.71.28
--to-destination 140.105.5.88:8080


I see the GET http request with checksum incorrect (on the wireshark
traffic analyzer):

Checksum: x incorrect, should be y (maybe caused by "TCP checksum offload?)

Is it normal?

Why does this happen?

Thanks

Giacomo

--

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

* Re: iptables -t nat -A OUTPUT -j DNAT ... checksum incorrect
       [not found] ` <9e9f4e5f0908051512v5651ea7ah8be49fa19f3577dc@mail.gmail.com>
@ 2009-08-06  7:02   ` Giacomo
  0 siblings, 0 replies; 3+ messages in thread
From: Giacomo @ 2009-08-06  7:02 UTC (permalink / raw)
  To: Fabricio Archanjo; +Cc: netfilter-devel

2009/8/6 Fabricio Archanjo <farchanjo@gmail.com>:
> Giacomo,
> You need use the PREROUTING table. I guess so.
>
> Att.

Hi, thanks for your answer.
No, this rule changes destination address/port of outgoing packets
(redirection).

Regards, Giacomo

>
> On Wed, Aug 5, 2009 at 9:53 AM, Giacomo <delleceste@gmail.com> wrote:
>>
>> Hi to all.
>>
>> With the rule
>>
>>
>> iptables -t nat -A OUTPUT -p tcp -j DNAT -d 151.8.71.28
>> --to-destination 140.105.5.88:8080
>>
>>
>> I see the GET http request with checksum incorrect (on the wireshark
>> traffic analyzer):
>>
>> Checksum: x incorrect, should be y (maybe caused by "TCP checksum
>> offload?)
>>
>> Is it normal?
>>
>> Why does this happen?
>>
>> Thanks
>>
>> Giacomo
>>
>> --
>> --
>> 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
>
>



-- 
Giacomo S.
http://www.giacomos.it

- - - - - - - - - - - - - - - - - - - - - -

* Aprile 2008: iqfire-wall, un progetto
  open source che implementa un
  filtro di pacchetti di rete per Linux,
  e` disponibile per il download qui:
  http://sourceforge.net/projects/ipfire-wall

* Informazioni e pagina web ufficiale:
  http://www.giacomos.it/iqfire/index.html

- - - - - - - - - - - - - - - - - - - - - -

 . ''  `.
:   :'    :
 `.  ` '
    `- Debian GNU/Linux -- The power of freedom
        http://www.debian.org
--
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: iptables -t nat -A OUTPUT -j DNAT ... checksum incorrect
  2009-08-05 12:53 iptables -t nat -A OUTPUT -j DNAT ... checksum incorrect Giacomo
       [not found] ` <9e9f4e5f0908051512v5651ea7ah8be49fa19f3577dc@mail.gmail.com>
@ 2009-08-10 15:23 ` Jan Engelhardt
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Engelhardt @ 2009-08-10 15:23 UTC (permalink / raw)
  To: Giacomo; +Cc: netfilter-devel


On Wednesday 2009-08-05 14:53, Giacomo wrote:

>Hi to all.
>
>With the rule
>
>
>iptables -t nat -A OUTPUT -p tcp -j DNAT -d 151.8.71.28
>--to-destination 140.105.5.88:8080
>
>
>I see the GET http request with checksum incorrect (on the wireshark
>traffic analyzer):

Normally the checksum should be recalculated at the same time
the NAT transformation is applied, but I think there is also
a way where this might not happen - TSO, GSO or hardware
checksumming, or something.
If that is the case, skb->checksum should be containing an
approprivate value (CHECKSUM_NONE/CHECKSUM_UNNECESSARY/etc.)
Best is: try to printk skb->checksum. (was it skb->csum?)

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

end of thread, other threads:[~2009-08-10 15:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 12:53 iptables -t nat -A OUTPUT -j DNAT ... checksum incorrect Giacomo
     [not found] ` <9e9f4e5f0908051512v5651ea7ah8be49fa19f3577dc@mail.gmail.com>
2009-08-06  7:02   ` Giacomo
2009-08-10 15:23 ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).