Linux Netfilter discussions
 help / color / mirror / Atom feed
* Policy routing with mark not working.
@ 2006-05-10 20:26 Andre Kalamandeen
  2006-05-10 21:24 ` Alexandru Dragoi
  0 siblings, 1 reply; 8+ messages in thread
From: Andre Kalamandeen @ 2006-05-10 20:26 UTC (permalink / raw)
  To: netfilter

Hey all im trying to mark packets and use the kernel
routing table to get the packets to go where i want.
The problem that i have with this is that even though
the packets are being marked (I checked using
"iptables -t mangle -vnL") it doesnt seem to be going
through the correct route. I;ve followed this guide : 

http://edseek.com/archives/2006/05/01/configuring-multipath-routing-for-ports-without-balancing/

but all traffic goes through the default route and not
the marked one. 

# ip rule gives:
0: from all lookup local
200: from all fwmark 0x4 lookup 201
32766: from all lookup main
32767: from all lookup default

# ip route show table 201
default via 192.168.77.2 dev eth3

the iptables command i use to mark is:
# iptables -t mangle -A PREROUTING -m string --algo bm
--string "yahoo.com" -j MARK --set-mark 0x4

i've also flushed the route cache,....any help?

Thanks.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-05-22 20:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-10 20:26 Policy routing with mark not working Andre Kalamandeen
2006-05-10 21:24 ` Alexandru Dragoi
2006-05-12  0:01   ` Frank
2006-05-12 10:54     ` Pascal Hambourg
2006-05-12 13:53       ` Andre Kalamandeen
2006-05-12 19:45         ` Pascal Hambourg
2006-05-13  0:10       ` Frank
2006-05-22 20:38         ` Andre Kalamandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox