* Confusing ipchains log message
@ 2000-01-27 5:00 Nate Slater
2000-01-28 5:00 ` Kenneth Crudup
2000-01-28 5:00 ` Tom Eastep
0 siblings, 2 replies; 6+ messages in thread
From: Nate Slater @ 2000-01-27 5:00 UTC (permalink / raw)
Hello--
I have a linux box (DEC Multia,RH6.0, kernel 2.2.13) running as a
firewall/gateway for a small network. I am using ipchains for the
firewalling and masquerading services. Rejected packets are logged to
/var/log/messages. Recent examination of this file reveals many entries
like the following:
Jan 27 00:12:35 schooner kernel: Packet log: input REJECT eth0 PROTO=17
192.168.10.20:138 192.168.10.255:138 L=214 S=0x00 I=8562 F=0x0000 T=128 (#2)
Jan 27 00:16:27 schooner kernel: Packet log: input REJECT eth0 PROTO=17
192.168.10.20:138 192.168.10.255:138 L=235 S=0x00 I=10354 F=0
According to the log, these packets are originating from machine
192.168.10.20, which is an NT server. These packets are rejected because I
have an input rule that rejects incoming packets from the internal network
on the external (eth0) interface (which is IP spoofing, I believe).
My question is: why would the NT machine try and send packets to the
internal network via the external interface?
There are several other windoze clients on the network that are set up to
use the same gateway machine, but I have not noticed ipchains log messages
pertaining to them. The NT box is a primary domain controller for the
windows domain (which uses NetBIOS names). Port 138 is designated in
/etc/services for NetBIOS datagrams, so my feeling is that the above log
messages are due to something related to the domain service running on the
NT box.
The other strange thing is that every 10-20 minutes, the NT machine stops
talking to the linux gateway. This outage will last 10 seconds or so.
During that time, the other 'doze clients can still see the linux machine on
the network, and the NT box is able to see the 'doze clients.
This only started occuring once I connected the all the machines via a hub.
Before, the linux box and NT box were connected NIC->NIC with cross-over
cable. In that configuration, the network would stay up indefinitely (but,
of course, I was limited to only having one machine use the gateway at a
time).
If anybody has any information pertaining to this, it would be most
appreciated.
Thanks in advance.
--
--
Nate Slater
Software Developer
Synergetic Consulting, LLC
nate.slater@synergeticconsulting.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Confusing ipchains log message
2000-01-27 5:00 Confusing ipchains log message Nate Slater
@ 2000-01-28 5:00 ` Kenneth Crudup
2000-01-31 5:00 ` Brad Ball
2000-01-28 5:00 ` Tom Eastep
1 sibling, 1 reply; 6+ messages in thread
From: Kenneth Crudup @ 2000-01-28 5:00 UTC (permalink / raw)
In article <86rcb3$dgp$1@news.bayarea.net>,
"Nate Slater" <nslater@bayarea.net> says:
>Jan 27 00:16:27 schooner kernel: Packet log: input REJECT eth0 PROTO=17
>192.168.10.20:138 192.168.10.255:138 L=235 S=0x00 I=10354 F=0
>According to the log, these packets are originating from machine
>192.168.10.20, which is an NT server. These packets are rejected because I
>have an input rule that rejects incoming packets from the internal network
>on the external (eth0) interface (which is IP spoofing, I believe).
>My question is: why would the NT machine try and send packets to the
>internal network via the external interface?
It's not. You're seeing packets come in off the external lan that are on the
private network range. Someone on that segment's spewing 'em.
Regardless, you should put in a rule near the top of your ipchains rules that
dumps w/o logging any packets not explicitly for you, and you should use
"DENY" instead of "REJECT" for 99% of your disallowed packets.
-Kenny
--
Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Washington, D.C.
Home1: PO Box 914 Silver Spring, MD 20910-0914
Home2: 38010 Village Cmn. #217 Fremont, CA 94536-7525 (510) 745-8181
Work: 19420 Homestead Road Cupertino, CA 95014-0606 (408) 447-6654
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Confusing ipchains log message
2000-01-27 5:00 Confusing ipchains log message Nate Slater
2000-01-28 5:00 ` Kenneth Crudup
@ 2000-01-28 5:00 ` Tom Eastep
1 sibling, 0 replies; 6+ messages in thread
From: Tom Eastep @ 2000-01-28 5:00 UTC (permalink / raw)
Nate Slater wrote:
>Hello--
>
>I have a linux box (DEC Multia,RH6.0, kernel 2.2.13) running as a
>firewall/gateway for a small network. I am using ipchains for the
>firewalling and masquerading services. Rejected packets are logged to
>/var/log/messages. Recent examination of this file reveals many entries
>like the following:
>
>
>Jan 27 00:12:35 schooner kernel: Packet log: input REJECT eth0 PROTO=17
>192.168.10.20:138 192.168.10.255:138 L=214 S=0x00 I=8562 F=0x0000 T=128 (#2)
>Jan 27 00:16:27 schooner kernel: Packet log: input REJECT eth0 PROTO=17
>192.168.10.20:138 192.168.10.255:138 L=235 S=0x00 I=10354 F=0
>
>According to the log, these packets are originating from machine
>192.168.10.20, which is an NT server. These packets are rejected because I
>have an input rule that rejects incoming packets from the internal network
>on the external (eth0) interface (which is IP spoofing, I believe).
>
>My question is: why would the NT machine try and send packets to the
>internal network via the external interface?
>
>There are several other windoze clients on the network that are set up to
>use the same gateway machine, but I have not noticed ipchains log messages
>pertaining to them. The NT box is a primary domain controller for the
>windows domain (which uses NetBIOS names). Port 138 is designated in
>/etc/services for NetBIOS datagrams, so my feeling is that the above log
>messages are due to something related to the domain service running on the
>NT box.
>
>The other strange thing is that every 10-20 minutes, the NT machine stops
>talking to the linux gateway. This outage will last 10 seconds or so.
>During that time, the other 'doze clients can still see the linux machine on
>the network, and the NT box is able to see the 'doze clients.
>This only started occuring once I connected the all the machines via a hub.
>Before, the linux box and NT box were connected NIC->NIC with cross-over
>cable. In that configuration, the network would stay up indefinitely (but,
>of course, I was limited to only having one machine use the gateway at a
>time).
>
>If anybody has any information pertaining to this, it would be most
>appreciated.
>
>Thanks in advance.
>
>
Are eth0 and eth1 both connected to the hub?
-Tom
--
Tom Eastep \ Opinions expressed here are
teastep@evergo.net \ my own and not necessarily
Shoreline, Washington USA \ those of my employer
ICQ #60745924 \____________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Confusing ipchains log message
2000-01-31 5:00 ` Brad Ball
@ 2000-01-31 5:00 ` Kenneth Crudup
2000-01-31 5:00 ` Brad Ball
0 siblings, 1 reply; 6+ messages in thread
From: Kenneth Crudup @ 2000-01-31 5:00 UTC (permalink / raw)
In article <8752kf$ivg$1@news.vancouver.zadall.com>,
"Brad Ball" <brad.ball@REMOVE_THISzadall.com> says:
>How would one do that? I get many of these in my log file too and I'd like
>to know how to dump traffic not destined for me.
[ near the top ]
ipchains -A input -d ! <your ip address> -j DENY
-Kenny
--
Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Washington, D.C.
Home1: PO Box 914 Silver Spring, MD 20910-0914
Home2: 38010 Village Cmn. #217 Fremont, CA 94536-7525 (510) 745-8181
Work: 19420 Homestead Road Cupertino, CA 95014-0606 (408) 447-6654
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Confusing ipchains log message
2000-01-28 5:00 ` Kenneth Crudup
@ 2000-01-31 5:00 ` Brad Ball
2000-01-31 5:00 ` Kenneth Crudup
0 siblings, 1 reply; 6+ messages in thread
From: Brad Ball @ 2000-01-31 5:00 UTC (permalink / raw)
Kenneth Crudup wrote in message ...
>Regardless, you should put in a rule near the top of your ipchains rules
that
>dumps w/o logging any packets not explicitly for you, and you should use
>"DENY" instead of "REJECT" for 99% of your disallowed packets.
How would one do that? I get many of these in my log file too and I'd like
to know how to dump traffic not destined for me. I have only figured out how
to deny or accept a specific ip address. Any help appreciated. Thanks.
Brad.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Confusing ipchains log message
2000-01-31 5:00 ` Kenneth Crudup
@ 2000-01-31 5:00 ` Brad Ball
0 siblings, 0 replies; 6+ messages in thread
From: Brad Ball @ 2000-01-31 5:00 UTC (permalink / raw)
Kenneth Crudup wrote in message ...
>
>ipchains -A input -d ! <your ip address> -j DENY
Thanks! Much appreciated.
Brad.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-01-31 5:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-27 5:00 Confusing ipchains log message Nate Slater
2000-01-28 5:00 ` Kenneth Crudup
2000-01-31 5:00 ` Brad Ball
2000-01-31 5:00 ` Kenneth Crudup
2000-01-31 5:00 ` Brad Ball
2000-01-28 5:00 ` Tom Eastep
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox