From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric B." Subject: Re: Success routing mark'ed packets - but still confused why it didn't work the first time.... Date: Wed, 9 Apr 2008 23:13:48 -0400 Message-ID: References: Return-path: Sender: netfilter-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@vger.kernel.org "Jan Engelhardt" wrote in message news:alpine.LNX.1.10.0804092310390.17930@fbirervta.pbzchgretzou.qr... >>Do the ip rules based on the fwmark work on the individual packet's mark >>value or the conntrack mark, or both? > > routing rules work on packet mark ("nfmark" "fwmark"), whch is > why --restore-mark is needed. But then, do you not need a --restore-mark in both the FORWARD and OUTPUT chains? -t mangle -A FORWARD -m connmark --mark 0 -m conntrack --ctstate NEW -j prefout -t mangle -A OUTPUT -m connmark --mark 0 -m conntrack --ctstate NEW -j prefout Or are you simply marking the connection and expecting the system to randomly choose whether to output on ppp0 or ppp1? Thanks, Eric