[LARTC] A tc htb/iptables rate control script for ADSL

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 17 April 2002 10:34, Martin Devera wrote:
> Hi,
> I'm happy that HTB gained so much popularity ;) Only
> one hint for you - you can completely avoid all these
> tc filter add .... fw ...
> You can use only one
> tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 1 fw
>
> and set classid directly in iptables like:
> iptables -t mangle -A to-dsl -p tcp --dport 80 -j MARK --set-mark 0x100=
10
> iptables -t mangle -A to-dsl -p tcp --sport 24 -j MARK --set-mark 0x100=
20
>
> and so on ..
> devik
Thx.
Even I 'm learning from this list :)
But how do you translate xx:xx to HEX ?

Stef

>
> On 17 Apr 2002, alex wrote:
> >     /sbin/iptables -t mangle -A to-dsl -p tcp --dport 22   -j MARK
> > --set-mark 1
> >
> >     /sbin/iptables -t mangle -A to-dsl -p tcp --dport 80   -j MARK
> > --set-mark 2
> >
> >     /sbin/tc filter add dev ppp0 parent 1: protocol ip prio 1 handle =
1
> > fw classid 1:10
> >     /sbin/tc filter add dev ppp0 parent 1: protocol ip prio 2 handle =
2
> > fw classid 1:20
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

--=20

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux