Re: Packets Redirection

Linux Advanced Routing and Traffic Control

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

 



On Thursday 24 October 2002 10:43, Walter Haidinger wrote:
> On Thu, 24 Oct 2002, Tom wrote:
> > tc filter add dev $DEV parent 1:0 prio 0 protocol ip handle 20 fw flowid
> > 1:20 tc filter add dev $DEV parent 1:0 prio 0 protocol ip handle 21 fw
> > flowid 1:21 tc filter add dev $DEV parent 1:0 prio 0 protocol ip handle
> > 22 fw flowid 1:22
>
> This odd. With my setup (2.4.20pre10 and tc from the 3.6 tarball) I need
> to specify classid instead of flowid:
>
> # tc filter add fw help
> Usage: ... fw [ classid CLASSID ] [ police POLICE_SPEC ]
>        POLICE_SPEC := ... look at TBF
>        CLASSID := X:Y
from f_fw.c : 
                if (matches(*argv, "classid") == 0 ||
                    matches(*argv, "flowid") == 0) {

So both can be used.

> > iptables -t mangle -N MYSHAPER-OUT
> > iptables -t mangle -I POSTROUTING -o $DEV -j MYSHAPER-OUT
>
> Tried OUTPUT chain for locally generated packets?
You can use OUTPUT and POSTROUTING.  See www.docum.org under KPTD.

Stef

-- 

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

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


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