All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] balancing behind NAT?
@ 2000-11-30 12:25 lethal
  2000-11-30 18:00 ` Sander
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: lethal @ 2000-11-30 12:25 UTC (permalink / raw)
  To: lartc

<PRE>Hi,

I'd like to setup cbq for my 7 lan users, but i'd like to do it only for the 
internet connect (LAN is accessing internet through masquerading), not for 
the whole server machine: i mean somebody on the lan should access the 
server at full rate(10Mbit/s), but internet at for example 30KB/sec).
i now i've setup only kbits, but those dramastic low-speed was to see easily 
if it was working or not :)

how could i do that?

my lan NIC is eth0 and internet eth1, i already tried the following thingie 
that doesn't work (i suppose it's logic, but i had to try it ;) )

And, How could i reset all the cbq existing config to remake a new one?

tc qdisc add dev eth1 root handle 10: cbq bandwidth 105Kbit avpkt 1000
tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 105Kbit rate \
   105Kbit allot 1514 weight 15Kbit prio 8 maxburst 20 avpkt 1000

tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 105Kbit rate 
\
   10Kbit allot 1514 weight 5Kbit prio 5 maxburst 20 avpkt 1000 bounded

tc qdisc add dev eth1 parent 10:100 sfq quantum 1514b perturb 15
tc qdisc add dev eth1 parent 10:200 sfq quantum 1514b perturb 15

tc filter add dev eth1 parent 10:0 protocol ip prio 25 u32 match ip dst \
    192.168.0.0/16 flowid 10:100



Same kind of thing for upstream

PS: where could i find a decent doc/faq/howto about cbq? Advanced-routing 
isn't that bad but it's far from explaining every little trick :/


Greetings,
          JY
_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : <A HREF="http://explorer.msn.com">http://explorer.msn.com</A>



</PRE>

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

end of thread, other threads:[~2000-12-02 22:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-30 12:25 [LARTC] balancing behind NAT? lethal
2000-11-30 18:00 ` Sander
2000-12-01 13:16 ` Sander
2000-12-02 22:54 ` Wingtung.Leung

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.