From: "Gerd v. Egidy" <lists@egidy.de>
To: Patrick McHardy <kaber@trash.net>
Cc: jamal <hadi@cyberus.ca>,
timo.teras@iki.fi, herbert@gondor.apana.org.au,
netdev@vger.kernel.org
Subject: Re: Question about xfrm by MARK feature
Date: Thu, 24 Jun 2010 00:13:57 +0200 [thread overview]
Message-ID: <201006240013.58261.lists@egidy.de> (raw)
In-Reply-To: <4C223310.6090006@trash.net>
> > But does your feature also set the mark on packets decrypted by xfrm? I
> > need some way to find out from which tunnel the packet came to correctly
> > treat it.
>
> You should be able to use the policy match to distinguish the tunnels,
> f.i. by matching on the tunnel endpoints.
That would work for endpoints with fixed ips. But as soon as the endpoint has a
dynamic ip, I'd have to change the iptables depending on the vpns currently
connected. This is something I want to avoid in any case.
Reason is that I'd have to introduce some kind of locking around the calls to
iptables. Otherwise two connections established or disconnected nearly
simultaneously could result in loss of the rules for one of them.
Kind regards,
Gerd
next prev parent reply other threads:[~2010-06-23 22:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-23 16:03 Question about xfrm by MARK feature Gerd v. Egidy
2010-06-23 16:15 ` Patrick McHardy
2010-06-23 22:13 ` Gerd v. Egidy [this message]
2010-06-23 22:16 ` Herbert Xu
2010-06-24 12:04 ` jamal
2010-06-25 7:35 ` Gerd v. Egidy
2010-06-25 12:43 ` jamal
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=201006240013.58261.lists@egidy.de \
--to=lists@egidy.de \
--cc=hadi@cyberus.ca \
--cc=herbert@gondor.apana.org.au \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
--cc=timo.teras@iki.fi \
/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.