Linux Netfilter discussions
 help / color / mirror / Atom feed
* fwmark & iptables
@ 2010-01-28 10:37 Matt Hakim
  2010-01-28 11:36 ` Pascal Hambourg
  2010-01-28 11:37 ` Oskar Berggren
  0 siblings, 2 replies; 8+ messages in thread
From: Matt Hakim @ 2010-01-28 10:37 UTC (permalink / raw)
  To: netfilter

Hi,
I want to mark packets for a particular user (iptables -t mangle -A
OUTPUT -mowner --uid-owner rtorrent -j MARK --set-mark 1), and then
route these packets to a VPN (ip rule add fwmark 1 lookup 200; ip
route add default dev ppp0 table 200). Unfortunately, after I do this
tcpdump shows that the default interfaces source address is being put
out on the ppp0 link which I don't understand, as I would have
expected the ppp0 interface address to be the source address. Anyway
it fails.
Without using MARK and ip routing based on destination works OK though
(from all to 66.102.11.104 lookup 200; ip route add default dev ppp0
table 200).
Any tips? I'll hack around in the source now see what i can find.
Thanks,
Matt

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

end of thread, other threads:[~2010-01-29  6:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 10:37 fwmark & iptables Matt Hakim
2010-01-28 11:36 ` Pascal Hambourg
2010-01-28 13:26   ` Matt Hakim
2010-01-28 13:35     ` Pascal Hambourg
2010-01-28 20:50       ` Matt Hakim
2010-01-28 23:06         ` Matt Hakim
2010-01-29  6:24           ` Pascal Hambourg
2010-01-28 11:37 ` Oskar Berggren

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