All of lore.kernel.org
 help / color / mirror / Atom feed
From: Franck JONCOURT <franck.mail@dthconnex.com>
To: netfilter@vger.kernel.org
Subject: Re: CONNMARK and ip rule fwmark
Date: Sun, 30 Mar 2008 13:23:10 +0200	[thread overview]
Message-ID: <bd29d6543567ecfd7c483671f163d14e@localhost> (raw)
In-Reply-To: <046B6BE8F9E1409CAF96941CED215BD0@shs1>


On Sun, 30 Mar 2008 13:03:09 +0200, "Steffen Heil" <lists@steffen-heil.de>

wrote:

> Hi



Hi,



> I want every reply packet belonging to every connection made through tun1

> to

> be send back through tun1 (not being the default gateway tough).

> (tun1 is P-t-P, so there is no routing nessessary.)

> 

> I tried the following:

> 

> # iptables -t mangle -A PREROUTING -i tun1 -p tcp --syn -j CONNMARK

> --set-mark 71

> # iptables -t mangle -A OUTPUT -p tcp -m connmark --mark 71 -j MARK

> --set-mark 71



What about using the nat table to add your mark on a whole connection 

instead of using the mangle table ?



[...]

No idea about that :p!



---

Franck Joncourt

http://www.debian.org/ - http://smhteam.info/wiki/




  reply	other threads:[~2008-03-30 11:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-30 11:03 CONNMARK and ip rule fwmark Steffen Heil
2008-03-30 11:23 ` Franck JONCOURT [this message]
2008-03-30 14:53   ` Jan Engelhardt
2008-03-30 15:08     ` Franck JONCOURT
2008-03-30 16:10     ` Pascal Hambourg
2008-03-30 18:27       ` Jan Engelhardt
2008-03-30 18:58         ` Pascal Hambourg
2008-03-30 16:21   ` Steffen Heil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd29d6543567ecfd7c483671f163d14e@localhost \
    --to=franck.mail@dthconnex.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.