LARTC
[Top] [All Lists]

Re: [LARTC] Shape own router

To: lartc@mailman.ds9a.nl
Subject: Re: [LARTC] Shape own router
From: Luciano Ruete <luciano@lugmen.org.ar>
Date: Thu, 22 Mar 2007 23:54:20 -0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <4603336E.5060501@andyfurniss.entadsl.com>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <beb91d720703221459q3e25aebbhe3c58a73b120c70f@mail.gmail.com> <beb91d720703221812s5ee44298i9073709c3f0c7d5a@mail.gmail.com> <4603336E.5060501@andyfurniss.entadsl.com>
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: KMail/1.9.5
On Thursday 22 March 2007 22:54, Andy Furniss wrote:
> Salatiel Filho wrote:
> > Where can i read about IFB ? I try to google but i can not find too
> > much info. maybe i am looking for the wrong words.  Maybe this is the
> > solution, cause i would like to put both local traffic and forwarded
> > traffic in the same htb queue.
>
> It's quite new, it was designed as a replacement for imq, but doesn't
> quite do everything it can.
>
> Here's howto send all ip incoming on eth0 to ifb - it's called
> intermediate functional block in kernel config.
>
> IP=/sbin/ip
> TC=/sbin/tc
>
> $TC qdisc del dev ifb0 root &>/dev/null
> $TC qdisc del dev eth0 ingress &>/dev/null
> $IP link set ifb0 down &>/dev/null
>
> if [ "$1" = "stop" ]
> then
>          echo "stopping"
>          exit
> fi
>
> modprobe ifb
> $TC qdisc add dev eth0 ingress
> $IP link set ifb0 up
>
> tc filter add dev eth0 parent ffff: \
> protocol ip prio 10 u32 match u32 0 0 \
> flowid 1:0 \
> action mirred egress redirect dev ifb0
>
> Then just add tc rules on ifb like any other device.

Sorry i'm new to ifb, this means that i can match netfilter MARKs on the ifb 
device with tc...?
Couse i'm not ussing ifb cause i read somewhere that it is not possible to 
match netfilter MARKs, but never tested myself...

-- 
Luciano
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>