From: don-lartc@isis.cs3-inc.com (Don Cohen)
To: lartc@vger.kernel.org
Subject: Re: [LARTC] why shape incoming traffic
Date: Fri, 01 Mar 2002 21:48:23 +0000 [thread overview]
Message-ID: <marc-lartc-101501943819368@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101494774514020@msgid-missing>
> From: "Michael T. Babcock" <mbabcock@fibrespeed.net>
> > It doesn't seem very important to shape the incoming traffic that will
> > be forwarded, since the same shaping can be done at output.
> Obviously ...
Bert didn't think it was so obvious.
(I don't understand yet what squid is doing.)
> > For example, suppose this machine is running a server that you want
> > to limit to 10 connections/minute. It seems reasonable to do this
> > by limiting the rate at which syns are delivered to that server.
> > That might be a lot easier than trying to modify the server.
> I use application-level software for that (iplimit in conjunction with
> tcpserver allows me to limit per-service connection rates on a per-source
> basis).
There are benefits to doing this sort of thing at the firewall.
For instance, it works for servers running different OS's.
And once you have the control working for your inside network it
seems unreasonable to have to change the implementation in order
to move a server to the firewall machine.
(Another advantage of doing it at the firewall is that you can then
control the aggregate of traffic to different hosts. But the ability
to shape traffic to the local host would not be enough to retain that
advantage when moving a server to the firewall.)
> > You might argue that doing it in the server would have the advantage
> > of being able to make more intelligent decisions about which ones to
> > accept and which to drop, but in fact the opposite could also be the
> > case. (I'm working on a project that provides an example.)
>
> I agree with the Unix-way of doing things usually, not the emacs way --
> don't build it into the program if it works just as well outside the
> program; thus iplimit. Programs that accept their own connections,
> like Apache, can't use an external program of course (yet), so it would
> make sense to build this in although I proxy my incoming connections
> through a Squid service set up as an accelerator with bandwidth pools
> turned on.
I'm not sure what the emacs reference was all about. I'm not
suggesting building the limit into the server, just the opposite.
(My solution also works with apache.)
> > What I find frustrating is that, as a firewall, I can already do this
> > stuff for the servers (and clients) running on OTHER hosts, but I
> > can't do it for those running on the local machine!
>
> I've got around that in some situations by teaching myself to treat the
> gateway/firewall box as a non-service box -- it runs nothing but the
> firewalls, tunneling, forwarding and shaping. This allows it to work as
> desired (all traffic goes out one of the two interfaces; none goes
> to the local host).
That's a solution dictated by the necessity imposed by our inability
to shape traffic to the local host. Clearly there are times when
you'd rather run something on the firewall. There are also times
when you have to - programs that are supposed to communicate with the
outside world to control the firewall. It's just as important (maybe
more) to shape the traffic to those programs as to others.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2002-03-01 21:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-01 1:53 [LARTC] why shape incoming traffic Don Cohen
2002-03-01 10:04 ` bert hubert
2002-03-01 15:47 ` Don Cohen
2002-03-01 15:50 ` bert hubert
2002-03-01 19:27 ` Michael T. Babcock
2002-03-01 19:34 ` Michael T. Babcock
2002-03-01 21:48 ` Don Cohen [this message]
2002-03-02 11:16 ` Michael T. Babcock
2002-03-04 5:05 ` Michael T. Babcock
2002-03-04 15:22 ` Don Cohen
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=marc-lartc-101501943819368@msgid-missing \
--to=don-lartc@isis.cs3-inc.com \
--cc=lartc@vger.kernel.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.