Re: u32 and iptables do not work together

Linux Advanced Routing and Traffic Control

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

 



On 4/7/06, Nataniel Klug <nata@xxxxxxxxxxxx> wrote:
> Andreas,
>
> This is not the problem becouse if I disable the rules I am using, and
> use other script just with rules using fwmark them the other script
> works fine.
>
> Att,
>
> Nataniel Klug
>
> Andreas Klauer escreveu:
> > On Fri, Apr 07, 2006 at 03:26:00PM -0300, Nataniel Klug wrote:
> >
> >> RTNETLINK answers: Invalid argument
> >> We have an error talking to the kernel
> >>
> >
> > This message usually translates to: 'tc understood your syntax just
> > fine, and tried to tell the kernel about it, but the kernel did not
> > understand, most likely because it does not support this feature.'
> >
> > Do you have 'Netfilter marks support' enabled?
> > (Just a guess, may be a different setting)
> >
> > Regards
> > Andreas Klauer
> >
> >

When comparing your commands to mine, i noticed that you are never
incrementing the prio.  Possibly try your command but with prio 2.  I
seem to recall having issues when i was only using one prio for
everything, but incrementing it with each group of filters seemed to
work better.

Currently i have filter rules like this:

tc filter add dev $DEV parent 1:0 protocol ip prio 8 handle ${MARKP2P}
fw classid 1:13

which is followed by

tc filter add dev $DEV parent 1: protocol ip prio 12 u32 \
   match ip tos 0x10 0xff \
   flowid 1:11

If this doesn't work, then it is likely some kernel options you need
to enable, or possible you need to recompile iptables/tc?

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


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