* Re: [Ipsec-tools-devel] ipv4/ipv6 forwarding check
2004-10-29 7:05 ` [Ipsec-tools-devel] ipv4/ipv6 forwarding check Aidas Kasparas
@ 2004-10-29 7:04 ` David S. Miller
2004-10-29 7:23 ` Herbert Xu
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: David S. Miller @ 2004-10-29 7:04 UTC (permalink / raw)
To: Aidas Kasparas; +Cc: latten, ipsec-tools-devel, netdev
On Fri, 29 Oct 2004 10:05:39 +0300
Aidas Kasparas <a.kasparas@gmc.lt> wrote:
> 4) extend setkey's syntax to make explicit forward policy management
> possible and write docs for all the admins to change policies.
This is what we're advocating to happen.
There are reasons why people would want seperate INPUT, OUTPUT,
and FORWARD policies. So we're not taking that capability out
of the kernel. And by "auto-magically" making this happen
transparently you are taking the capability away, which is why
this idea won't fly either.
For the record, the freeswan tools handle all of this stuff
just fine.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Ipsec-tools-devel] ipv4/ipv6 forwarding check
[not found] <200410300506.i9U56Yse005815@faith.austin.ibm.com>
@ 2004-10-29 7:05 ` Aidas Kasparas
2004-10-29 7:04 ` David S. Miller
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Aidas Kasparas @ 2004-10-29 7:05 UTC (permalink / raw)
To: Joy Latten; +Cc: ipsec-tools-devel, netdev
Joy,
Need to have forward policies (which are not specified in RFC 2401 or
any other ipsec related RFC I've read) was like a thunder from the blue
sky to us. There is no way in setkey how to insert forward policies at
the moment. Which of the following directions to solve this problem we
have not decided yet:
1) push kernel developers to have rfc2401 semantics in kernel;
1a) have pfkey kernel part transform rfc2401 semantics into kernel
semantics;
2) have libpfkey generate extra policies transparently to the user;
3) have tools (setkey and racoon) generate extra policies transparently
to the user;
4) extend setkey's syntax to make explicit forward policy management
possible and write docs for all the admins to change policies.
Personally I would like to have (1). This would make setups simpler. I
believe, people with embeded applications would like very much to have
(1) too (as extra policies => extra memory use will drive them mad).
Yet, I have little hope this will happen :-//.
Second least worst thing IMHO would be a combination of (2) and (4).
Libpfkey functions have to be rewritten to generate extra forward
policies, and current functions should be renamed as to provide view to
real situation. Setkey should have a swith which tells to operate in
rfc2401 compliant fashion (generating forward policies) or kernel mode
(adding/removing/showing policies, including forward, as they are).
Oppinions anyone?
Meanwhile, I would like to recomend to abstain from upgrading to
anything above 2.6.9.
Joy Latten wrote:
> I understand there has been discussion and code change
> for checks with tunnel mode and forwarding packets.
> In 2.6.9 with latest patches all my decapsulated tunnel mode
> packets instead of being forwarded onto receiving subnet
> or dropped.
> How do I specify manually with setkey (syntax?), to forward
> decapsulated packets onto receiving subnet?
>
> Thanks for any help.
>
> Joy Latten
--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Ipsec-tools-devel] ipv4/ipv6 forwarding check
2004-10-29 7:05 ` [Ipsec-tools-devel] ipv4/ipv6 forwarding check Aidas Kasparas
2004-10-29 7:04 ` David S. Miller
@ 2004-10-29 7:23 ` Herbert Xu
2004-10-29 8:09 ` Aidas Kasparas
2004-10-29 9:27 ` Michal Ludvig
2004-11-05 10:27 ` Michal Ludvig
3 siblings, 1 reply; 6+ messages in thread
From: Herbert Xu @ 2004-10-29 7:23 UTC (permalink / raw)
To: Aidas Kasparas; +Cc: latten, ipsec-tools-devel, netdev
Aidas Kasparas <a.kasparas@gmc.lt> wrote:
>
> Meanwhile, I would like to recomend to abstain from upgrading to
> anything above 2.6.9.
Doesn't sound like a good idea as that's a massive security hole.
Racoon with a pre-2.6.9 kernel will allow source addresses to come
through the IPsec tunnel even if the violate IPsec policies.
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Ipsec-tools-devel] ipv4/ipv6 forwarding check
2004-10-29 7:23 ` Herbert Xu
@ 2004-10-29 8:09 ` Aidas Kasparas
0 siblings, 0 replies; 6+ messages in thread
From: Aidas Kasparas @ 2004-10-29 8:09 UTC (permalink / raw)
To: Herbert Xu; +Cc: latten, ipsec-tools-devel, netdev
Herbert Xu wrote:
> Aidas Kasparas <a.kasparas@gmc.lt> wrote:
>
>> Meanwhile, I would like to recomend to abstain from upgrading to
>>anything above 2.6.9.
>
>
> Doesn't sound like a good idea as that's a massive security hole.
>
> Racoon with a pre-2.6.9 kernel will allow source addresses to come
> through the IPsec tunnel even if the violate IPsec policies.
Ok, my dear coleagues admins, decide for yourself. Facts are:
If you upgrade, your system will not work.
If you do not upgrade, and on host c.c.c.c you have policy
a.a.a.a b.b.b.b any -P in esp/.../
where b.b.b.b is address different from any interface address of host
with address c.c.c.c and
1) some party h.h.h.h will be able to spoof packet to look from a.a.a.a
to b.b.b.b;
2) transport that packet to c.c.c.c
3) that packet will not be filtered out by rp_filter on c.c.c.c
then kernel will pass that packet through to b.b.b.b, even if that
packet is not protected by esp.
It is possible to prevent that from happening by marking esp packets and
later accepting for forwarding only marked packets from a.a.a.a to
b.b.b.b using iptables. Yes, I have insisted in the past this is not
necessary. I was wrong. I'm sorry. I did not knew about this kernel's
feature.
[Have I missed any other case?]
Which way to choose for the short term -- decission is after you.
--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Ipsec-tools-devel] ipv4/ipv6 forwarding check
2004-10-29 7:05 ` [Ipsec-tools-devel] ipv4/ipv6 forwarding check Aidas Kasparas
2004-10-29 7:04 ` David S. Miller
2004-10-29 7:23 ` Herbert Xu
@ 2004-10-29 9:27 ` Michal Ludvig
2004-11-05 10:27 ` Michal Ludvig
3 siblings, 0 replies; 6+ messages in thread
From: Michal Ludvig @ 2004-10-29 9:27 UTC (permalink / raw)
To: Aidas Kasparas; +Cc: Joy Latten, ipsec-tools-devel, netdev
On Fri, 29 Oct 2004, Aidas Kasparas wrote:
> 1) push kernel developers to have rfc2401 semantics in kernel;
> 1a) have pfkey kernel part transform rfc2401 semantics into kernel
> semantics;
> 2) have libpfkey generate extra policies transparently to the user;
> 3) have tools (setkey and racoon) generate extra policies
> transparently to the user;
> 4) extend setkey's syntax to make explicit forward policy management
> possible and write docs for all the admins to change policies.
At least we must provide #4 - now it doesn't work at all, with explicit
fwd policies things could be set up in most cases except for policy
autogeneration in racoon.
I hope to do the setkey part today.
Michal Ludvig
--
* A mouse is a device used to point at the xterm you want to type in.
* Personal homepage - http://www.logix.cz/michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Ipsec-tools-devel] ipv4/ipv6 forwarding check
2004-10-29 7:05 ` [Ipsec-tools-devel] ipv4/ipv6 forwarding check Aidas Kasparas
` (2 preceding siblings ...)
2004-10-29 9:27 ` Michal Ludvig
@ 2004-11-05 10:27 ` Michal Ludvig
3 siblings, 0 replies; 6+ messages in thread
From: Michal Ludvig @ 2004-11-05 10:27 UTC (permalink / raw)
To: Aidas Kasparas; +Cc: Joy Latten, ipsec-tools-devel, netdev
On Fri, 29 Oct 2004, Aidas Kasparas wrote:
> 4) extend setkey's syntax to make explicit forward policy management
> possible and write docs for all the admins to change policies.
I have uploaded a tarball of IPsec-tools 0.5-preview to sf.net. Among
other changes, setkey is now able (hopefully :-) to handle fwd policies.
Please test and report any problems to the IPsec-tools list.
Download here:
https://sourceforge.net/project/showfiles.php?group_id=74601&package_id=133565
Michal Ludvig
--
* A mouse is a device used to point at the xterm you want to type in.
* Personal homepage - http://www.logix.cz/michal
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-11-05 10:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200410300506.i9U56Yse005815@faith.austin.ibm.com>
2004-10-29 7:05 ` [Ipsec-tools-devel] ipv4/ipv6 forwarding check Aidas Kasparas
2004-10-29 7:04 ` David S. Miller
2004-10-29 7:23 ` Herbert Xu
2004-10-29 8:09 ` Aidas Kasparas
2004-10-29 9:27 ` Michal Ludvig
2004-11-05 10:27 ` Michal Ludvig
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).