All of lore.kernel.org
 help / color / mirror / Atom feed
From: emo terziev <foxy202@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] NAT+mangle+tc
Date: Mon, 11 Oct 2004 16:45:02 +0000	[thread overview]
Message-ID: <a763a15b0410110945381b4bb@mail.gmail.com> (raw)
In-Reply-To: <a763a15b0410110429231ff35@mail.gmail.com>

Hi , Jason
   I know LARTC HOWTO. mi download shapers work fine, but 
I don't know can i limit upload when i have NAT because source IP
address is changed
and i cannot make u32 src filter. 

in other hand package marking isn't usable in my case because i want 
  user A to have for example 128K to Group A networks  and 64K to group B
  user B to have   256k to group A and 1Mbit to group B

download is easy, but for upload i unfortunatly don't know how should  to be  :(
 ,This is over my knowlage i think. 

Please anyone with more experience just to give mi idea how can be done.


    +-----------+   |  S  |
    | User A |---+  W |                     +NAT  
    +----------+    |  I   |    eth1         eth0                    group A
    +----------+    |  T  |        +--------+        +--- 180 diferent
Networks -----------------+
    | User B |----+  C  +-----| Router |--------|                     
                         Internet
    +----------+    |  H  |        +--------+        +---all rest
internet  ---------------------------+
       ....    ... / ...                                              
      group B
    +----------+    |  H  |
    | User N |---+  U  |
    +-----------+   |  B  |           ---------------->
                     +-----+



Best Regards
emo terziev

On Mon, 11 Oct 2004 12:09:24 -0400, Jason Boxman <jasonb@edseek.com> wrote:
> On Monday 11 October 2004 07:29, emo terziev wrote:
> > Hi All,
> >   I wonder can I do NAT+mangle+tc on same maschine? I want to shape
> > outgoing traffic per IP on my gateway computer.
> 
> Sure, you can do that on the same machine.
> 
> You can do NAT with a variety of scripts or just hand written iptables rules.
> Personally, I use the gShield iptables firewall.  As for `tc`, you might look
> into the LARTC HOWTO.
> 
> http://lartc.org/
> 
> --
> 
> Jason Boxman
> Perl Programmer / *NIX Systems Administrator
> Shimberg Center for Affordable Housing | University of Florida
> http://edseek.com/ - Linux and FOSS stuff
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2004-10-11 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-11 11:29 [LARTC] NAT+mangle+tc emo terziev
2004-10-11 16:09 ` Jason Boxman
2004-10-11 16:45 ` emo terziev [this message]
2004-10-11 21:04 ` Alexander Samad
2004-10-12  2:20 ` Ethy H. Brito

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=a763a15b0410110945381b4bb@mail.gmail.com \
    --to=foxy202@gmail.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.