* alien TCP RST packets
@ 2003-07-07 8:46 Valentijn Sessink
2003-07-09 10:01 ` strange reboots Eicke Friedrich
0 siblings, 1 reply; 2+ messages in thread
From: Valentijn Sessink @ 2003-07-07 8:46 UTC (permalink / raw)
To: netfilter-devel
Hello netfilter developers,
I have a server with a really simple setup, that once in a while sends out
TCP resets from alien ports. The firewalling setup is really simple, it only
does -P DROP for all, then accepts traffic on lo, accepts ICMP, accepts tcp
--dport 80, 443 and --sport 80, 443. There's no statefull firewalling, no
DNAT, no REJECT rules. It logs outgoing traffic from non-http[s] ports. The
web server's IP address is 192.168.193.2, as it is behind a port forwarding
Cisco PIX.
Now this:
Jun 21 13:32:16 www kernel: IN= OUT=eth1 SRC=192.168.193.2 DST=142.123.43.59
LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=5365 PROTO=TCP SPT=39821 DPT=1041
WINDOW=7504 RES=0x00 ACK RST URGP=0 Jun 22 06:31:07 www kernel: IN= OUT=eth1
SRC=192.168.193.2 DST=184.111.49.2 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=22616
PROTO=TCP SPT=40865 DPT=28013 WINDOW=6432 RES=0x00 ACK RST URGP=0
... and does this a couple of times more (about ten times a week, sometimes
a whole bunch of RST's from one IP address).
I can't think of a reason why the Linux kernel would try to output a packet
with SPT=39821 and DPT=1041, as anything to this source port is DROPPED
totally. As we grew suspicious, we started to log traffic to/from this web
server and saw things like:
[time] 142.123.43.59.1041 > 192.168.193.2.https: R
... showing the exact source port number that the RST packets were directed
to. Note that this is regular https traffic where the client sends a RST.
Pleas also note that the source port for this reset is the destination port
for the spurious RST from the server. This reset from the client with the
same source port seems always the case when this spurious RST occurs. This,
unfortunately, still doesn't explain the high source port number the Linux
kernel shows in the logs.
I'm starting to think I'm stupid or I oversee something really simple, as I
can't think of a way a RST packet tries to find a way out of a port that has
no way in.
So, my questions: Is this sending of RST's a kernel thing? Is there a valid
way Websphere could "send" such packets? Or am I just being stupid (in this
case only, please ;-) ?
Finally some info: Linux 2.4.18 with LIDS (www.lids.org) patch, compiled
with GCC 2.95.4 20011002 (Debian Prerelease); HP 2000r SMP machine, Debian
GNU/Linux distribution, IBM Websphere 3.5-something.
(Oh, BTW, full disclosure: yes, there is a second network interface. This
one is internal, and only connects to two very small subnets with private IP
space. The first thing I suspected was spurious fake packets on the inside.
We did analyse the traffic on this subnet, but could not find a single trace
of any of the mentioned IP addresses, so I don't think this is alien source
traffic from the inside).
I sent this report to netfilter-users, to linux-net and to larc, but
the only answer I got was a link to
http://mailman.ds9a.nl/pipermail/lartc/2003q3/009189.html (which is a
totally different setup - it only shares the alien RST's)
BTW: I'm still not confident that these RST's really are generated by the
kernel, i.e. that an application cannot generate these RST's (except when
using raw sockets, of course), so if someone could confirm this, that would
really help as then it would be a kernel and/or netfilter issue, not some
silly IMBHttp-fault. I hope I'm not bothering the dev-list too much, but I
really don't know what's happening here and it doesn't seem normal.
Best regards,
Valentijn
--
http://www.openoffice.nl/ Open Office - Linux Office Solutions
Valentijn Sessink valentyn+sessink@nospam.openoffice.nl
^ permalink raw reply [flat|nested] 2+ messages in thread
* strange reboots
2003-07-07 8:46 alien TCP RST packets Valentijn Sessink
@ 2003-07-09 10:01 ` Eicke Friedrich
0 siblings, 0 replies; 2+ messages in thread
From: Eicke Friedrich @ 2003-07-09 10:01 UTC (permalink / raw)
To: netfilter-devel
Hi there,
I'm running a bridge with netfilter firewalling support. I wrote an
iptables extension (mainly a string-matching) that seemed to be pretty
stable during the test phase. Also I'm running a QoS module (HTB),
ipt_CONNMARK and ipt_MARK.
Now I notice a reboot from time to time but I can't find a reason. The
logs don't show anything. The reboots just occur if iptables and HTB
are loaded. If the system is just bridging (without firewalling) it
runs stable. Is it possible that netfilter causes a reboot? Any
experiences in this configuration?
Thanks,
Eicke.
The system:
Dual Athlon MP
512 MB RAM
Kernel 2.4.20 (SMP, 4GB) from kernel.org
iptables 1.2.8
patch-o-matic-20030107
Already applied: submitted/01_2.4.19
submitted/02_2.4.20
submitted/ipt_ULOG-mac_len-fix
submitted/ipt_multiport-invfix
pending/01_ip_conntrack_proto_tcp-lockfix
pending/03_REJECT-fwspotting-phrack60-fix
pending/04_ftp-conntrack-msg-fix
pending/05_ECN-tcpchecksum-littleendian-fix
base/ipt_unclean-ubit
base/mport
extra/CONNMARK
Jul 9 11:39:33 fink1 kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jul 9 11:45:28 fink1 kernel: ip_conntrack version 2.1 (4095 buckets,
32760 max) - 156 bytes per conntrack
Jul 9 11:45:32 fink1 kernel: HTB init, kernel part version 3.7
Jul 9 11:45:32 fink1 insmod: Warning: loading
/lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_CONNMARK.o will taint t
he kernel: no license
Jul 9 11:45:32 fink1 insmod: See
http://www.tux.org/lkml/#export-tainted for information about tainted
modules
Jul 9 11:45:32 fink1 insmod: Module ipt_CONNMARK loaded, with warnings
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-09 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-07 8:46 alien TCP RST packets Valentijn Sessink
2003-07-09 10:01 ` strange reboots Eicke Friedrich
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.