All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Morris <dmorris@metaloft.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: REDIRECT differences in 2.6.12.2
Date: Fri, 08 Jul 2005 11:50:35 -0700	[thread overview]
Message-ID: <42CECAFB.6070709@metaloft.com> (raw)
In-Reply-To: <42CDD0DA.20303@trash.net>

eve: iptables -t nat -A PREROUTING -p tcp --destination-port 1234 -j 
REDIRECT --to-port 1234
eve: echo 255 > /proc/sys/net/ipv4/netfilter/ip_conntrack_log_invalid
eve: nc -p -l 1234

alice: telnet bob 1234

messages on eve (192.168.2.2) shows:

Jul  8 11:47:34 cartman kernel: ip_ct_tcp: invalid packet ignored IN= 
OUT= PHYSIN=eth0 SRC=192.168.2.1 DST=192.168.2.3 LEN=60 TOS=0x10 
PREC=0x00 TTL=64 ID=18927 DF PROTO=TCP SPT=33080 DPT=1234 SEQ=1119072953 
ACK=0 WINDOW=5840 RES=0x00 SYN URGP=0 OPT 
(020405B40402080A18B1070F0000000001030307)


192.168.2.1 is alice, 192.168.2.3 is bob

Thanks,
-Dirk

Patrick McHardy wrote:

> Dirk Morris wrote:
>
>> notice how the syn/ack comes from eve instead of bob, and it only 
>> matches 1 packet (the SYN I assume)
>> I suspect the syn/ack isnt matching in the conntrack table for some 
>> reason?
>> Could it be because the syn is marked, but the syn/ack isnt?
>
>
> No, that doesn't affect association with a conntrack entry. Please retry
> after doing "echo 255 > /proc/sys/net/ipv4/netfilter/ip_ct_log_invalid"
> and "modprobe ipt_LOG".
>
> Regards
> Patrick
>

  reply	other threads:[~2005-07-08 18:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05 19:10 REDIRECT differences in 2.6.12.2 Dirk Morris
2005-07-08  1:03 ` Patrick McHardy
2005-07-08 18:50   ` Dirk Morris [this message]
2005-07-09 14:52     ` Patrick McHardy
2005-07-11 23:01       ` Dirk Morris
2005-07-12 14:02         ` Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42CECAFB.6070709@metaloft.com \
    --to=dmorris@metaloft.com \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.