Skip to contentSkip to conversation

fw and u32 together...

LARTC Michal Kustosik 2 participants 3 messages Nov 28, 2002

lore
Share & tools
lore
#0 lore raw

hello...

1.
Is it possible using u32 to filter marked packets? I have found only documents to fw filter to filter marked packets...

2.
If u32 cannot filter marked packets is it possible to use fw and u32 together? I wanted to filter packets marked by iptables by fw, and packets depended on ip destination, src and others by u32, but something goes wrong :(

the filters configuration is:
$TC filter add dev $DEV_OUT parent 1: protocol ip prio 1 handle 2 fw flowid 1:10

$TC filter add dev $DEV_OUT parent 1: protocol ip prio 1 u32 \
    match ip src 10.0.5.5 flowid 1:30

If I use one of them everything is ok, but they don't want to work together:
"RTNETLINK answers: Invalid argument"

thanks...
/michal
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 5 lines · Michal Kustosik

hello...

1.
Is it possible using u32 to filter marked packets? I have found only documents to fw filter to filter marked packets...

You need the fw filter.

Quoted 6 lines

2.
If u32 cannot filter marked packets is it possible to use fw and u32 together? I wanted to filter packets marked by iptables by fw, and packets depended on ip destination, src and others by u32, but something goes wrong :(

Quoted 6 lines

the filters configuration is:
$TC filter add dev $DEV_OUT parent 1: protocol ip prio 1 handle 2 fw flowid

1:10 $TC filter add dev $DEV_OUT parent 1: protocol ip prio 1 u32 \
    match ip src 10.0.5.5 flowid 1:30

If I use one of them everything is ok, but they don't want to work

I never tried it so I don't know if it can be done. What if you give them a different prio ??

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Michal Kustosik
Quoted 1 line · Stef Coene

On Thursday 28 November 2002 17:02, Michal Kustosik wrote:

[...]

Quoted 10 lines
Quoted 7 lines

the filters configuration is:
$TC filter add dev $DEV_OUT parent 1: protocol ip prio 1 handle 2 fw flowid

1:10 $TC filter add dev $DEV_OUT parent 1: protocol ip prio 1 u32 \
    match ip src 10.0.5.5 flowid 1:30

If I use one of them everything is ok, but they don't want to work

I never tried it so I don't know if it can be done. What if you give them a different prio ??

it works good with different prio...

thanks...
/michal

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/