From: Willy Tarreau <willy@w.ods.org>
To: Adam Denenberg <adam@dberg.org>
Cc: Kyle Moffett <mrmacman_g4@mac.com>,
linux-kernel@vger.kernel.org,
Jan Engelhardt <jengelh@linux01.gwdg.de>
Subject: Re: bind() udp behavior 2.6.8.1
Date: Thu, 16 Dec 2004 07:03:46 +0100 [thread overview]
Message-ID: <20041216060346.GH17946@alpha.home.local> (raw)
In-Reply-To: <57782EC8-4E40-11D9-B971-003065B11AE8@dberg.org>
On Tue, Dec 14, 2004 at 09:23:43PM -0500, Adam Denenberg wrote:
> i think you guys are all right. However there is one concern. Not
> clearing out a UDP connection in a firewall coming from a high port is
> indeed a security risk. Allowing a high numbered udp port to remain
> open for a prolonged period of time would definitely impose a security
> risk which is why the PIX is doing what it does.
Absolutely NO ! it is not "keeping the port open", it is "keeping a SESSION
open". The firewall should allow traffic from the same ip:port to the other
ip:port and from no other server on the net. You new session is totally
unrelated to the old one.
> The linux server is
> "reusing" the same UDP high numbered socket however it is doing so
> exactly as the firewall is clearing its state table (60 ms) from the
> first connection which is what is causing the issue.
it is not the same session if you connect to a different remote server,
and there is absolutely no reason to arbitrary prevent an internal server
from connecting to two external ones from the same IP:port. Of course, if
you reconnect to the same destIP:port, it should work because in this case
it is a continuation of the same session.
> I think a firewall ought to be aware of such behavior, but at the same
> time be secure enough to not just leave high numbered udp ports wide
> open for attack. I am trying to find out why the PIX chose 60 ms to
> clear out the UDP state table. I think that is a random number and
> probably too short of a span for this to occur however i am still
> researching it.
it is not the timing which causes trouble, it is the way it confuses new
and already established sessions. Although 60 ms may seem short (you can
probably never resolve anything on ADSL with a loaded link), it may be
perfectly valid if the firewall agrees to open several sessions when you
connect to several servers. And if you connect several times to the same
server, of course it must re-open the session.
> Any other insight would be greatly appreciated.
unfortunately, googling for "pix udp problem" returns 25600 responses...
Regards,
willy
next prev parent reply other threads:[~2004-12-16 6:21 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-14 15:38 Adam Denenberg
2004-12-14 16:04 ` Jan Engelhardt
2004-12-14 16:42 ` Adam Denenberg
2004-12-14 16:44 ` Jan Engelhardt
2004-12-14 17:01 ` Adam Denenberg
2004-12-14 17:10 ` Jan Engelhardt
2004-12-14 17:38 ` Adam Denenberg
2004-12-14 17:49 ` Jan Engelhardt
2004-12-15 0:43 ` Wichert Akkerman
2004-12-16 5:49 ` Willy Tarreau
2004-12-14 22:07 ` Kyle Moffett
2004-12-15 2:23 ` Adam Denenberg
2004-12-15 3:19 ` Kyle Moffett
2004-12-15 14:16 ` Adam Denenberg
2004-12-15 19:07 ` Jan Harkes
2004-12-15 19:22 ` Adam Denenberg
2004-12-15 20:06 ` linux-os
2004-12-15 20:19 ` Adam Denenberg
2004-12-15 20:45 ` Doug McNaught
2004-12-15 20:48 ` Adam Denenberg
2004-12-15 20:57 ` Doug McNaught
2004-12-16 6:10 ` Willy Tarreau
2004-12-16 14:24 ` Adam Denenberg
2004-12-16 14:51 ` Jan Harkes
2004-12-16 15:00 ` Adam Denenberg
2004-12-16 6:03 ` Willy Tarreau [this message]
2004-12-16 14:17 ` Adam Denenberg
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=20041216060346.GH17946@alpha.home.local \
--to=willy@w.ods.org \
--cc=adam@dberg.org \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mrmacman_g4@mac.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome