Skip to contentSkip to conversation

Routing based on fwmark

LARTC David Watson 2 participants 2 messages Mar 4, 2003

lore
Share & tools
lore
#0 lore raw

I'm having trouble routing on high fwmarks, I want to use a lot of
different marks for 2 routes so that I can QoS based on the marks ip rule looks like this:

0:      from all lookup local
32751:  from all fwmark       31 lookup dslout
32752:  from all fwmark       30 lookup dslout
32753:  from all fwmark       29 lookup dslout
32754:  from all fwmark       28 lookup dslout
32755:  from all fwmark       27 lookup dslout
32756:  from all fwmark       26 lookup dslout
32757:  from all fwmark       25 lookup dslout
32758:  from all fwmark       24 lookup dslout
32759:  from all fwmark       21 lookup dslout
32760:  from all fwmark       11 lookup dslout
32761:  from all fwmark       10 lookup fibout
32762:  from all fwmark        8 lookup dslout
32763:  from all fwmark        7 lookup fibout
32764:  from all fwmark        2 lookup dslout
32765:  from all fwmark        1 lookup fibout
32766:  from all lookup main
32767:  from all lookup default

now when I mark say web traffic with 8 or 2 it goes to the dslout table, but if I use 11 or 21 it doesn't. I guess I've a limited number of marks to play with?

kernel 2.4.20, iptables 1.2.7.a with wrr and imq

Thanks
_____________________________________________________________
David Watson, Network Manager, Team17 Software Ltd.
Phone: +44-1924-267776 Fax: +44-1924-267658
_____________________________________________________________

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

#1 lore raw

David,

I have a hunch that it's a hexadecimal vs decimal issue. Try converting your fwmark numbers to hex and adding the fwmark rules again.

Ciao for now,

-Martin

: I'm having trouble routing on high fwmarks, I want to use a lot of
: different marks for 2 routes so that I can QoS based on the marks : ip rule looks like this:
:

 : 0:      from all lookup local
 : 32751:  from all fwmark       31 lookup dslout
 : 32752:  from all fwmark       30 lookup dslout
 : 32753:  from all fwmark       29 lookup dslout
 : 32754:  from all fwmark       28 lookup dslout
 : 32755:  from all fwmark       27 lookup dslout
 : 32756:  from all fwmark       26 lookup dslout
 : 32757:  from all fwmark       25 lookup dslout
 : 32758:  from all fwmark       24 lookup dslout
 : 32759:  from all fwmark       21 lookup dslout
 : 32760:  from all fwmark       11 lookup dslout
 : 32761:  from all fwmark       10 lookup fibout
 : 32762:  from all fwmark        8 lookup dslout
 : 32763:  from all fwmark        7 lookup fibout
 : 32764:  from all fwmark        2 lookup dslout
 : 32765:  from all fwmark        1 lookup fibout
 : 32766:  from all lookup main
 : 32767:  from all lookup default
Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

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