All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ed Wildgoose <lists@wildgooses.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] 2 Questions on filtering incoming stuff
Date: Tue, 18 May 2004 07:56:57 +0000	[thread overview]
Message-ID: <40A9C1C9.20509@wildgooses.com> (raw)
In-Reply-To: <40A92F1A.4030706@wildgooses.com>


>> This might also be useful for setting up a bandwidth filter PC using 
>> only a single net card for example (assuming you don't worry about 
>> people bypassing it manually)
>
> Yeah, i've wondered if you could do that and get it working.


Yeah, I have a very limited implementation of this "working" right now.  
The problem is that there is no concept of direction on a single interface.

I think that it could be bodged by creating a 100mbit queue with a small 
ADSL sized queue underneath, and using iptables to redirect to the 
actual classes based on source and dest ip (ie you keep stuff on the 
network in the 100mbit queue and just limit the stuff with a non local 
source address.  In the same way I guess I could also rate limit 
incoming stuff from the net using the IMQ attached to incoming device, 
and iptables only bringing in external traffic to the queue..

Can't see any reason why it wouldn't work, but hey, I only read the 
HOWTO and haven't tried it yet...

I wonder what can be attached to TAP/TUN devices though?  Sure would be 
useful to have a virtual net card so that you can acquire "direction" 
from a single physical card.

In my case I am interested because I am thinking about misusing this PC 
to do both traffic shaping, and perhaps run a few net services under 
usermode-linux.  The usermode sessions need to be shaped as well.

Thanks

Ed W
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2004-05-18  7:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-17 21:31 [LARTC] 2 Questions on filtering incoming stuff Ed Wildgoose
2004-05-17 23:19 ` Andy Furniss
2004-05-18  0:25 ` Damion de Soto
2004-05-18  1:55 ` Andreas Klauer
2004-05-18  6:54 ` Ed Wildgoose
2004-05-18  7:18 ` Damion de Soto
2004-05-18  7:21 ` Ed Wildgoose
2004-05-18  7:56 ` Ed Wildgoose [this message]

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=40A9C1C9.20509@wildgooses.com \
    --to=lists@wildgooses.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.