From: Alexander Samad <alex@samad.com.au>
To: netfilter-devel@lists.netfilter.org
Subject: Re: [RFC, PATCH 5/5]: netfilter+ipsec - policy checks
Date: Sat, 20 Mar 2004 16:58:11 +1100 [thread overview]
Message-ID: <20040320055811.GG29442@samad.com.au> (raw)
In-Reply-To: <20040319063143.GC29442@samad.com.au>
[-- Attachment #1: Type: text/plain, Size: 2610 bytes --]
On Fri, Mar 19, 2004 at 05:31:43PM +1100, Alexander Samad wrote:
> I have applied these to 2.6.4 (debian source) and compiles okay and
> seems to work okay, ie the NAT + IPSEC
>
> my 2c
Done some more testing and there seems to be a problem with the NAT
table
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
12 720 all -- * * 0.0.0.0/0 192.168.5.2
0 0 DROP all -- * * 169.254.0.0/16 0.0.0.0/0
54378 5744K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
Chain POSTROUTING (policy ACCEPT 6 packets, 240 bytes)
pkts bytes target prot opt in out source destination
0 0 all -- * * 0.0.0.0/0 192.168.5.2
2872 537K MASQUERADE all -- * eth0 192.168.8.0/22 0.0.0.0/0
0 0 MASQUERADE all -- * ppp+ 192.168.8.0/22 0.0.0.0/0
165K 25M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 all -- * * 0.0.0.0/0 192.168.5.2
169K 25M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
There is an ipsec tunnel out of eth0 setup like
conn abcd
leftsubnet 192.168.8.0/22
rightsubnet 192.168.5.0/24
when I ping from 192.168.10.244 through to 192.168.5.2 it doesn't seem
to it through to POSTROUTING, the counter in PREROUTING increase.
My initial search for this was why I did not need a rule to stop the
MASQ from happening
This is using the 2.6 stack (2.6.4 debain)
Alex
>
> On Thu, Mar 18, 2004 at 10:19:04PM -0800, David S. Miller wrote:
> > On Thu, 18 Mar 2004 17:32:39 +0100
> > Patrick McHardy <kaber@trash.net> wrote:
> >
> > > This patch makes xfrm_policy_check locate the correct policy after NAT.
> > > For protocols which do policy checks in their receive routines the
> > > reference to nfct has to be kept until policy checks are done, the
> > > other ones still drop it in ip_local_deliver_finish.
> >
> > This patch looks fine to me.
> >
> > Other than the minor comments I've made the most unhappy I am
> > with the input patch, and you agree it's grotty too. Let's look
> > for a better solution, perhaps with new top-level SKB state,
> > and then we can put all of your work in after you're made the other
> > minor fixes I've asked for as well.
> >
> > Thanks Patrick.
> >
> >
> >
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-03-20 5:58 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-08 11:03 ip_route_me_harder -> xfrm_lookup Herbert Xu
2004-03-08 14:46 ` Patrick McHardy
2004-03-08 19:58 ` David S. Miller
2004-03-18 16:31 ` Patrick McHardy
2004-03-18 16:31 ` [RFC, PATCH 1/5]: netfilter+ipsec - nf_reset Patrick McHardy
2004-03-19 6:08 ` David S. Miller
2004-03-18 16:31 ` [RFC, PATCH 2/5]: netfilter+ipsec - output hooks Patrick McHardy
2004-03-19 6:09 ` David S. Miller
2004-03-19 10:59 ` Herbert Xu
2004-03-20 21:45 ` Alexander Samad
2004-03-18 16:32 ` [RFC, PATCH 3/5]: netfilter+ipsec - input hooks Patrick McHardy
2004-03-19 6:15 ` David S. Miller
2004-03-19 11:47 ` Herbert Xu
2004-03-19 16:17 ` Patrick McHardy
2004-03-19 21:05 ` Herbert Xu
2004-03-19 11:07 ` Herbert Xu
2004-03-19 11:46 ` Herbert Xu
2004-03-19 16:29 ` Patrick McHardy
2004-03-18 16:32 ` [RFC, PATCH 4/5]: netfilter+ipsec - policy lookup Patrick McHardy
2004-03-19 6:16 ` David S. Miller
2004-03-19 15:30 ` Patrick McHardy
2004-03-19 11:51 ` Herbert Xu
2004-03-19 16:34 ` Patrick McHardy
2004-03-19 21:05 ` Herbert Xu
2004-03-20 14:01 ` Patrick McHardy
2004-03-21 6:35 ` Herbert Xu
2004-03-21 22:16 ` Herbert Xu
2004-03-21 23:34 ` Patrick McHardy
2004-03-22 2:03 ` Herbert Xu
2004-03-22 2:29 ` Patrick McHardy
2004-03-24 2:15 ` Alexander Samad
2004-03-24 2:39 ` Patrick McHardy
2004-03-24 3:33 ` Alexander Samad
2004-03-18 16:32 ` [RFC, PATCH 5/5]: netfilter+ipsec - policy checks Patrick McHardy
2004-03-19 6:19 ` David S. Miller
2004-03-19 6:31 ` Alexander Samad
2004-03-20 5:58 ` Alexander Samad [this message]
2004-03-20 15:58 ` Patrick McHardy
2004-03-19 16:24 ` Patrick McHardy
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=20040320055811.GG29442@samad.com.au \
--to=alex@samad.com.au \
--cc=netfilter-devel@lists.netfilter.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.