netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Wolfgang Walter <wolfgang.walter@studentenwerk.mhn.de>,
	netdev@oss.sgi.com
Subject: Re: Problem with IPSEC tunnel mode
Date: Thu, 21 Apr 2005 19:50:19 -0400	[thread overview]
Message-ID: <1114127419.10572.4.camel@localhost.localdomain> (raw)
In-Reply-To: <20050421214618.GA29991@gondor.apana.org.au>

On Fri, 2005-22-04 at 07:46 +1000, Herbert Xu wrote:

> 
> > src 10.148.0.0/23 dst 10.0.25.210/32 
> > 	dir fwd priority 0 
> 
> There you go.  This policy trumps your other policy.  This one
> says that forwarded traffic matching it must carry no tunnel
> IPsec transforms.  Therefore all IPsec packets matching it will
> be dropped.
> 
> > src 10.148.4.0/28 dst 10.0.25.210/32 
> > 	dir fwd priority 2084 
> > 	tmpl	src 192.168.9.237 dst 192.168.77.161
> > 		proto esp spi 0x00000000 reqid 16465 mode tunnel
> 
> The reason it worked with the old setkey and 2.6.7* is that all
> forwarded traffic would've been allowed, regardless of whether
> they matched the IPsec policy or not.
> 

Herbert,
What was the reason there exist a FWD direction in the policies?

Also - shouldnt the FWD policies closely match the OUT ones instead of
the IN direction (browsing the forwarding code)? i.e
does this look odd to you (picking a sample from Wolfgangs output):

------------
src 10.148.0.0/23 dst 10.148.3.32/28 
	dir out priority 2372 
	tmpl	src 192.168.77.161 dst 192.168.99.93
		proto esp spi 0x00000000 reqid 17757 mode tunnel
		

src 10.148.3.32/28 dst 10.148.0.0/23 
	dir fwd priority 2372 
	tmpl	src 192.168.99.93 dst 192.168.77.161
		proto esp spi 0x00000000 reqid 17757 mode tunnel


src 10.148.3.32/28 dst 10.148.0.0/23 
	dir in priority 2372 
	tmpl	src 192.168.99.93 dst 192.168.77.161
		proto esp spi 0x00000000 reqid 17757 mode tunnel

------

Just matched against reqid. 

cheers,
jamal 

  reply	other threads:[~2005-04-21 23:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-20 15:37 Problem with IPSEC tunnel mode Wolfgang Walter
2005-04-21 12:57 ` Herbert Xu
2005-04-21 14:40   ` Wolfgang Walter
2005-04-21 21:46     ` Herbert Xu
2005-04-21 23:50       ` jamal [this message]
2005-04-21 23:58         ` Herbert Xu
2005-04-22  0:13           ` Patrick McHardy
2005-04-22  0:18           ` jamal
2005-04-22  0:54             ` Herbert Xu
2005-04-22 11:42             ` Wolfgang Walter
2005-04-22 12:14               ` jamal
2005-04-22 13:22                 ` Wolfgang Walter
2005-04-22 13:27                   ` Herbert Xu
2005-04-22 13:48                     ` Wolfgang Walter
2005-04-22 13:53                       ` Herbert Xu
2005-04-23 17:49                   ` jamal
2005-04-23 17:52                     ` David S. Miller
2005-04-23 21:03                     ` Wolfgang Walter
2005-04-24 22:08                       ` jamal
2005-04-22  0:40       ` Wolfgang Walter
2005-04-22  1:04         ` Herbert Xu
2005-04-22  9:37           ` Wolfgang Walter

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=1114127419.10572.4.camel@localhost.localdomain \
    --to=hadi@cyberus.ca \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@oss.sgi.com \
    --cc=wolfgang.walter@studentenwerk.mhn.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).