Linux Netfilter discussions
 help / color / mirror / Atom feed
* RE: New connection to windows boxes very slow, very fastafterinitial delay
@ 2004-03-16 16:06 Miguel Laborde
  2004-03-16 17:42 ` Chris Brenton
  0 siblings, 1 reply; 2+ messages in thread
From: Miguel Laborde @ 2004-03-16 16:06 UTC (permalink / raw)
  To: Chris Brenton; +Cc: Netfilter Mailing List

Hi Chris,

	thanks for the info, appears I probably am climbing up the wrong tree here. Is it possible that as the internal machine tries to establish a new session with the dmz machine, the dmz machine is trying to establish some sort of new connection back to the internal machine to query certain information about it? The internal machine is part of a windows domain while the dmz machine is standalone, so the dmz machine shouldn't be trying to contact a DC (since it doesn't know a windows domain exists) but then I'm not fully clued up on window's specific behaviour :P

	Thanks


Thanks Ray, my apologizies since you probably already explained this to me but I just didn't understand.




-----Original Message-----
From: Chris Brenton [mailto:cbrenton@chrisbrenton.org]
Sent: Tuesday, March 16, 2004 10:54 AM
To: Miguel Laborde
Cc: Netfilter Mailing List
Subject: RE: New connection to windows boxes very slow, very
fastafterinitial delay


On Tue, 2004-03-16 at 10:33, Miguel Laborde wrote:
> Hi Ray, 
> 	thanks for the reply however I don't think this is a netbios issue. I realize I said \\dmzmachine but really in this case I'm using an IP address and I'm connecting to the c$ drive so there shouldn't be any Netbios name lookups

I think you are confused. _NetBEUI_ is its own stand-alone protocol.
When older systems use IP, its actually NetBIOS/IP. Do a:
netstat -an

and you should see ports between 137-139 open. These are the NetBIOS
ports.

As for your question about Windows creating a new session based on an
ACK packet, this is false. Windows properly returns a RST to these
packets. SYN and SYN/PSH are the only two valid flag combinations I've
found on Windows for connection establishment. 

Now, it *could* be that you are banging your head against the state
table time out. This is 5 days by default, or less if one end signals a
Window size of zero (time-wait). If the session is sitting quieter for
longer than that, Netfilter could be killing the session. You could fix
this by writing a rule that passes ACK packets from the outside host,
but this would be a potential security hole. Best fix would be some kind
of a keep alive (file copy running on a scheduled process or something
similar).

HTH,
Chris




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

* RE: New connection to windows boxes very slow, very fastafterinitial delay
  2004-03-16 16:06 New connection to windows boxes very slow, very fastafterinitial delay Miguel Laborde
@ 2004-03-16 17:42 ` Chris Brenton
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Brenton @ 2004-03-16 17:42 UTC (permalink / raw)
  To: Miguel Laborde; +Cc: Netfilter Mailing List

Greets!

On Tue, 2004-03-16 at 11:06, Miguel Laborde wrote:
>
> 	thanks for the info, appears I probably am climbing up the wrong tree here.

Actually, I think you are on the right track. Its just a matter of
figuring out exactly where its falling apart. ;-)

> Is it possible that as the internal machine tries to establish a new session with the dmz machine, the dmz machine is trying to establish some sort of new connection back to the internal machine

Absolutely its possible. Its been a while since I've been into
NetBIOS/IP, but its possible that as you connect out the DMZ machine
queries back over another set of ports.

Easiest way to figure it out is to check your logs. See if you are
dropping any traffic from the DMZ system and if so, what is it trying to
do. If it is trying to do a call back, opening up the target port in
question between these two systems should fix the problem.

HTH,
Chris




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

end of thread, other threads:[~2004-03-16 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-16 16:06 New connection to windows boxes very slow, very fastafterinitial delay Miguel Laborde
2004-03-16 17:42 ` Chris Brenton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox