All of lore.kernel.org
 help / color / mirror / Atom feed
From: c0g <c0g@wp.pl>
To: Harald Welte <laforge@netfilter.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: "ip_conntrack_core: Frag of proto 17." error
Date: Mon, 22 Sep 2003 11:26:15 +0200	[thread overview]
Message-ID: <3F6EC037.2040702@wp.pl> (raw)
In-Reply-To: <20030921144557.GB22223@sunbeam.de.gnumonks.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

|>I'm getting lots of these errors. I read in ip_conntrack_core.c it
|>should "never happen" (so it's kind of assertion). Why does this
|>assertion fail?
|
|
| Indeed.  It seems like you have fragmens inside connection tracking.
| However, all packets are defragmented before connection tracking
| happens.
|
| Can you please tell us more about your setup?  Something special with
| regard to networking?  Tunnels? IPSec?
|
| Maybe you can add a printk to print out the address information (or use
| DUMP_TUPLE on the tuple) of the packet... maybe this way you can
| identify where it came from (through which interface[s], processing,
| ...).

Hi. My setup is simple. This is box with 5 nics, which is primary a PPTP
server for authorizing LAN users:
eth0 - 192.168.0.200/18 - users lan (big)
eth1 - 192.168.64.200/24 - users lan2 (small)
eth2 - 192.168.80.200/24 - dmz
eth3 - 192.168.72.200/24 - default route
eth4 - 192.168.112.200/24 - net containing loghost (tcpdump showed most
of fragments was syslog messages)

Transparent proxying, qos, nat is being done on next hops on default
route - outside this box.

For now, PPTP is used only on eth1 - there was no fragments from this
net (except some tests with icmp I have done). So PPTP is not important.

I attached tcpdump to every interface with a rule to catch fragments:
tcpdump -c 1000 -s 65000 -w ethx-frags.dump -pni eth1 ip[6:2] & 0x1fff != 0

Then I parsed kern.log* to find out when "frag of proto" warning and
subsequent "last message repeated x times" was appearing.

And then I compared times when:
- - fragments was captured by tcpdump
- - "Frag of proto" message was logged

It seems kernel barks only on fragments destined to Internet from lan at
eth0. It ignores fragments generated by syslog messages, because they
source and destination address is local.
So it confirms that problem is in raw table, because in my setup raw
table catches only local<->remote packets.

How to simply repeat the bug:
Host A and host B are separated by router.
On router: insert netfilter rule in raw table which does NOTRACK on
packets from A to B.
# iptables -t raw -I PREROUTING -s HOST_A -d HOST_B -j NOTRACK
On host A: send fragments to B.
# ping -s 2000 HOST_B

Result: Router logs "Frag of proto" message.

- --
c0g@wp.pl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/br/EPqmVt5WhbA8RAqLxAKCADuQ/A17uNSCjsk2oImoEJj/KfQCgjF4K
2kVIHqMDlT/LWaMtW6XqkgU=
=Ocpj
-----END PGP SIGNATURE-----

  reply	other threads:[~2003-09-22  9:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-18 15:32 "ip_conntrack_core: Frag of proto 17." error c0g
2003-09-21 14:45 ` Harald Welte
2003-09-22  9:26   ` c0g [this message]
2003-09-22  9:43     ` c0g
2003-09-22 10:03     ` Harald Welte

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=3F6EC037.2040702@wp.pl \
    --to=c0g@wp.pl \
    --cc=laforge@netfilter.org \
    --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.