Re: [LARTC] Linux Bridge + QoS Shaper HOWTO available

2005-01-28 Thread Paras pradhan
hello:

nice article...

Does any one has same kind of article covering IMQ?


Thanks
Paras.

> I've created a pretty complete HOWTO on creating a Linux Bridge (using
> Fedora) to shape LAN <--> WAN traffic. It includes installation
> instructions, a script to configure the bridge (which you install as a
> service), and 2 scripts to configure the network interfaces using
> traffic  control.
>
> http://www.burnpc.com/website.nsf/all/3a64a6369757819686256f960068ad75!OpenDocument
>
>
>
> If anyone has any questions or feedback I'm very interested. This
> configuration has evolved over the past 6 months and is somewhat
> tweaked.  The highest priority traffic in my config, is of course, IAX2
> (Asterisk  VoIP protocol).
>
> Regards,
>
> Ron


Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.


___
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] shaping on tcp ports

2004-12-31 Thread Paras pradhan

> On Wednesday 29 December 2004 13:50, Paras pradhan wrote:
>> hi all:
>>
>> the following scipt is wokring perfectly with limiting ...on limimitng
>> per ip basis..
>>
>>
>> 
>> eth0=public static ip
>> eth2= private ip ( 192.168.2.1)
>> --
>> iptables -t mangle -A POSTROUTING -s ! 192.168.0.0/32 -d
>> 192.168.2.101/32 -j MARK --set-mark 21012
>>
>> tc class add dev eth2 parent 1:1 classid 1:2101 htb rate 32kbit ceil
>> 64kbit
>>
>> tc filter add dev eth2 parent 1:0 protocol ip prio 2 handle 21012 fw
>> classid 1:2101
>>
>> tc qdisc add dev eth2 parent 1:2101 handle 2101: sfq perturb 10
>>
>> -
>>
>> Now what i am trying to do is... limiting 192.168.2.101 75% for httpd
>> and 25% to rest..
>>
>> what i have to do? i am confused on iptables marking as well..
> You need 2 htb classes, 1 for httpd and 1 for the rest.
> And you need 2 iptables rules, 1 to mark httpd and 1 to mark the rest.
> And you need 2 filter rules, 1 to put the marked httpd traffic in the
> httpd  class and to put the other traffic in the other class.
>
> Stef
> ___
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


how do we mark in single iptables line using for ex: --dport 21 and -d
192.168.3.88
or have to do seperatly.



Thanks
Paras.


Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.


___
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] shaping on tcp ports

2004-12-29 Thread Paras pradhan
hi all:

the following scipt is wokring perfectly with limiting ...on limimitng per
ip basis..



eth0=public static ip
eth2= private ip ( 192.168.2.1)
--
iptables -t mangle -A POSTROUTING -s ! 192.168.0.0/32 -d 192.168.2.101/32
-j MARK --set-mark 21012

tc class add dev eth2 parent 1:1 classid 1:2101 htb rate 32kbit ceil 64kbit

tc filter add dev eth2 parent 1:0 protocol ip prio 2 handle 21012 fw
classid 1:2101

tc qdisc add dev eth2 parent 1:2101 handle 2101: sfq perturb 10

-

Now what i am trying to do is... limiting 192.168.2.101 75% for httpd and
25% to rest..

what i have to do? i am confused on iptables marking as well..

Thanks
Paras.


Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.


___
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] controlling uplinks per ip

2004-04-09 Thread Paras pradhan
hi all,

Newibe to tc and cbq

i have a linux (rh9) machine having one ethernet (eth0-public ip) to
internet  and second int (eth1) private ip ,to which all my workstation
connects.

scenario:

--|eth0--Linux Server---eth1|--192.168.2.11

i have used the following commands and my client 192.168.2.11 is limited
it's downlink to 96Kbit and it works great. now i want 192.168.2.11 not to
upload to outside world crossing 32Kbits. how do i do this?.



script that works for only downloads.
---

tc qdisc add dev eth1 root handle 10: cbq bandwidth 10Mbit avpkt 1000

tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000

tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 10Mbit rate
96kbit allot 1514 weight 10kbit prio 6 maxburst 20 avpkt 1000 bounded

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

tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip dst
192.168.2.11 flowid 10:100

tc -d qdisc
-


Thanks in ADv...
Paras.



___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Mangaing uplinks

2003-10-13 Thread Paras pradhan
hi all:

my network is like this:

Linux Router > Remote access server ( RAS) > Dialup users
(x.x.x.1)  (x.x.x.11) (x.x.x.20 - x.x.x.100)

Now i want to control bandwidth from Linux router.
What sud be done is:

x.x.x.30 ( let's assume) sud not get uplink more than 2Kbps, same for all
the dail up users.
NOt a single users get uplink more than 2Kbps.

if u have some scripts which is easier for me will be a great help.

Thanks
Paras.



Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] cbq

2003-09-21 Thread Paras pradhan
hi :


On one of my severs i have a shoutcast audio streaming server running at
ports 8000 and 8001.

Now my cbq rule in my gateway is as:

DEVICE=eth1,100Mbit,10Mbit
BOUNDED=yes
ISOLATED=yes
PRIO=5
RATE=2Kbit
WEIGHT=2Kbit
RULE=:8000,x.x.x.3
RULE=:8001,x.x.x.3

--

Now my question is, do the ppl from internet cannot cross the limit 2Kbit
of my uplink.


What i want is: for example:
I don't want the streaming  eat my uplink bandwidth more than 2Kbit.

What i have do?


Thanks
Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] cbq , htb guides

2003-03-24 Thread Paras pradhan
hello

Is there any simple starter guides for cbq, tc, qdisc and htb??

If yes let me get them.

Thanks.



Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] test/ignore

2003-03-19 Thread Paras pradhan



Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/