[LARTC] Re: Example on using fwmark with masks. Please help!!
ArcosCom Linux User
linux at arcoscom.com
Sun Jan 14 22:19:55 CET 2007
El Vie, 12 de Enero de 2007, 21:26, ArcosCom Linux User escribió:
> could anyone provides any example about the use of ip route command to
> force the use of one route using masks in the mark?
> The configuration is:
> 1 LAN (zlan0) iface
> N WAN (wan0 ... wanN) ifaces with static IPs and load balanced.
> iptables 1.3.7
> kernel 18.104.22.168
> iproute 2.6.19
> I'm yet setting marks into packets for QoS and its working, I now want to
> set some bits (OR) at the end of the mark.
> For example, I want to use 0x8000 to add another mark to the packet for
> routing. The packet is market yet with a QoS mark (--set-mark), 0x5 (for
> I need:
> 1) The packet been marked with 0x8000 OR 0x0005 = 0x8005
> 2) Route the packet with 0x8005 AND 0x8000 = 0x8000 over wan0 (for
> 3) Classify the packet with 0x8005 AND 0x0005 into wan0 1:4 class (for
> I know how to do this not having sense about MASKs, but ... Could anybody
> put here how to do it with them?
> Another question: What is the length of the mask? 16bit? 32bit?
LARTC mailing list
LARTC at mailman.ds9a.nl
More information about the netfilter