First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 26796
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Jay Pfeifer (RETIRED) <pfeifer@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: fbusse@gmx.de
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ipsec-tools-0.2.2.ebuild ipsec-tools-0.2.2 ebuild text/plain fbusse@gmx.de 2003-08-17 05:57 0000 503 bytes Details
ipsec-tools-0.2.2.ebuild My version the ebuild text/plain Sébastien ESTIENNE 2003-08-26 01:33 0000 903 bytes Details
racoon.conf.d racoon for /etc/conf.d text/plain Sébastien ESTIENNE 2003-08-26 01:33 0000 261 bytes Details
racoon.init.d raccon file for /etc/init.d text/plain Sébastien ESTIENNE 2003-08-26 01:34 0000 329 bytes Details
racoon.conf.d racoon.conf.d text/plain Sébastien ESTIENNE 2003-08-29 08:19 0000 330 bytes Details
racoon.init.d racoon.init.d text/plain Sébastien ESTIENNE 2003-08-29 08:20 0000 766 bytes Details
psk.txt Sample pre-shared key config file text/plain Jason McCormick 2003-09-22 19:05 0000 487 bytes Details
psk.txt Sample pre-shared key config file text/plain Jason McCormick 2003-09-22 19:06 0000 487 bytes Details
racoon.init.d-alt Altered init.d script for racoon that checks for psk security. text/plain Jason McCormick 2003-09-22 19:06 0000 1.10 KB Details
racoon.conf.d-alt Alternate conf.d/racoon config file that includes a PSK location. text/plain Jason McCormick 2003-09-22 19:08 0000 369 bytes Details
setkey.conf setkey.conf for tunnel mode text/plain Georg Müller 2003-12-01 10:56 0000 260 bytes Details
racoon.conf racoon.conf for tunnel mode (x509 certs) text/plain Georg Müller 2003-12-01 11:00 0000 1.79 KB Details
ipsec-tools-0.2.2.tar Tarball containing ipsec-tools/* application/octet-stream Bernhard Schmidt 2003-12-14 15:32 0000 10.00 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 26796 depends on: Show dependency tree
Bug 26796 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-08-17 05:57 0000
Kernel 2.5/2.6 have a built.-in IPsec-stack. To use the new IPsec-stack, we'll
need 
the ipsec-tools (alternative would be isakmpd from OpenBSD, but it doesn't
compile 
well) which contain the IKE-daemon racoon (KAME) and the SAD-tool setkey. 
Since racoon doesn't like any CFLAGS or HOST-settings, I had to unset them, but
I 
don't think, that will cause any performance-impact since the real IPsec-stuff
is 
handled in the kernel. 
I tested both racoon and setkey on x86, no problem establishing a tunnel
(tested 
AES, 3DES and Blowfish) and host-to-host. 
But should definitly marked testing until 2.6.0 becomes stable.

------- Comment #1 From fbusse@gmx.de 2003-08-17 05:57:32 0000 -------
Created an attachment (id=16211) [edit]
ipsec-tools-0.2.2 ebuild

------- Comment #2 From Sébastien ESTIENNE 2003-08-26 01:31:48 0000 -------
Hello,

I wrote an isakmpd ebuild:
http://bugs.gentoo.org/show_bug.cgi?id=27278

And i also wrote an ebuild for ipsec tools (didn't know, yours already exist)
I wrote some init script for racoon,i don't know if you'll find this usefull.

I attached them so you can chek it.

------- Comment #3 From Sébastien ESTIENNE 2003-08-26 01:33:25 0000 -------
Created an attachment (id=16624) [edit]
My version the ebuild

You can get the install part of the init.d and conf.d files

------- Comment #4 From Sébastien ESTIENNE 2003-08-26 01:33:51 0000 -------
Created an attachment (id=16626) [edit]
racoon for /etc/conf.d

------- Comment #5 From Sébastien ESTIENNE 2003-08-26 01:34:14 0000 -------
Created an attachment (id=16627) [edit]
raccon file for /etc/init.d

------- Comment #6 From fbusse@gmx.de 2003-08-26 08:28:34 0000 -------
Looks OK, but the init-script is quite useless without a way to call setkey and
the 
according policy. Without that, racoon won't start properly. 

------- Comment #7 From Sébastien ESTIENNE 2003-08-29 08:15:48 0000 -------
I did a new version of the init.d that call setkey before starting racoon
tell me what you think about it.

------- Comment #8 From Sébastien ESTIENNE 2003-08-29 08:19:59 0000 -------
Created an attachment (id=16764) [edit]
racoon.conf.d

------- Comment #9 From Sébastien ESTIENNE 2003-08-29 08:20:45 0000 -------
Created an attachment (id=16766) [edit]
racoon.init.d

------- Comment #10 From fbusse@gmx.de 2003-08-29 08:31:02 0000 -------
Looks good, no complaints from my side :) 

------- Comment #11 From Jason McCormick 2003-09-22 19:05:23 0000 -------
I would submit that the ebuild for ipsec-tools should also include a sample
pre-shared key file and also provide security checks for that file on the
system.   The PSK file that's called with the path command in racoon.conf needs
to exist and be mode 400 for proper operation.  Basically I've made the
following proposed changes:

* Added RACOON_PSK_FILE in /etc/conf.d/racoon
* Added a security and sanity check for the file in /etc/init.d/racoon
* Included a sample PSK file

If you defaultly specify /etc/racoon/psk.txt in the provided conf.d file and
everything's commented out, then you have no problems with default
configurations that don't use PSK and provide a valuable security check for
people who aren't aware of the sucurity needs for this file.


Just a thought....

------- Comment #12 From Jason McCormick 2003-09-22 19:05:56 0000 -------
Created an attachment (id=18182) [edit]
Sample pre-shared key config file

------- Comment #13 From Jason McCormick 2003-09-22 19:06:07 0000 -------
Created an attachment (id=18183) [edit]
Sample pre-shared key config file

------- Comment #14 From Jason McCormick 2003-09-22 19:06:59 0000 -------
Created an attachment (id=18184) [edit]
Altered init.d script for racoon that checks for psk security.

------- Comment #15 From Jason McCormick 2003-09-22 19:08:25 0000 -------
Created an attachment (id=18185) [edit]
Alternate conf.d/racoon config file that includes a PSK location.

------- Comment #16 From Georg Müller 2003-11-26 08:49:01 0000 -------
Why isn't it yet in the portage tree?

It works fine for me - I use it with x509-certs to connect to a freeswan server.

------- Comment #17 From Jay Pfeifer (RETIRED) 2003-11-27 21:08:39 0000 -------
that's a good question. let me see about getting this added...

------- Comment #18 From Sébastien ESTIENNE 2003-11-28 01:37:05 0000 -------
In the ipsec familly...
Why not adding this one too:
http://bugs.gentoo.org/show_bug.cgi?id=27278

------- Comment #19 From Georg Müller 2003-12-01 10:56:41 0000 -------
Created an attachment (id=21547) [edit]
setkey.conf for tunnel mode

this is from my setkey.conf using with x509 certs

I also want to add the following to the racoon - init-scripts in the
stop-section:

--begin--
flush;
spdflush;
-- end --

------- Comment #20 From Georg Müller 2003-12-01 11:00:21 0000 -------
Created an attachment (id=21548) [edit]
racoon.conf for tunnel mode (x509 certs)

I use this config to connect to an ipsec-freeswan-gateway (yyy.yyy.yyy.yyy)
My own ip is xxx.xxx.xxx.xxx 

(also in setkey.conf)

------- Comment #21 From Georg Müller 2003-12-13 08:43:18 0000 -------
hm, what is the reason why ipsec-tools doesn't go into portage tree?

------- Comment #22 From Brian Jackson (RETIRED) 2003-12-13 08:52:58 0000 -------
If a developer adds an ebuild he is ultimately responsible for it's upkeep, so
devs tend to not add stuff they don't use because they may be unable to
maintain it properly. When I get some more people added to the team, I'm going
to try to get all these utils (this one and others) added and kept up to date.
Thanks for all the hard work on this, hopefully it won't be too much longer.

------- Comment #23 From Tim Yamin (RETIRED) 2003-12-13 14:49:56 0000 -------
Can somebody stick this into a tarball as there seem to be too many
attachments; so I can commit into Portage?

------- Comment #24 From Bernhard Schmidt 2003-12-14 15:32:18 0000 -------
Created an attachment (id=22224) [edit]
Tarball containing ipsec-tools/*

Here we go...

The tarball basically contains

- the slightly altered ebuild (id=16211) by Fridtjof Busse. The changes were
  * reverted from econf back to configure due to python being a cpu pig
    when using econf (it failed here after running configure for more than
    five minutes). 
  * DEPENDs on "virtual/glibc". I'm not quite sure whether ipsec-tools depends
    on openssl, too.
  * Install the setkey.conf by Georg M

------- Comment #25 From Bernhard Schmidt 2003-12-14 15:32:18 0000 -------
Created an attachment (id=22224) [edit]
Tarball containing ipsec-tools/*

Here we go...

The tarball basically contains

- the slightly altered ebuild (id=16211) by Fridtjof Busse. The changes were
  * reverted from econf back to configure due to python being a cpu pig
    when using econf (it failed here after running configure for more than
    five minutes). 
  * DEPENDs on "virtual/glibc". I'm not quite sure whether ipsec-tools depends
    on openssl, too.
  * Install the setkey.conf by Georg Müller (id=21547) as
/etc/ipsec.conf.sample

- the unaltered initscript (id=18184) and conf.d-file (id=18185) by Jason 
  McCormick

TODO:
- Test :-)
- Patch the manpages racoon.8 and racoon.conf.5 to use "/etc" instead of
  "/usr/local/v6/etc"
- ChangeLog
- Something else?

The ebuild works fine on my gateway at home and correctly negotiates an IPsec
connection to my iBook, so I assume it will do what it should.

------- Comment #26 From Jason McCormick 2003-12-14 20:28:25 0000 -------
  This looks good to me.  I'd still recommend putting in a sample pre-shared
key because I think a lot of people using the VPN are going to be using PSK. 
As long as it's commented out of ipsec.conf it doesn't really affect anything.

------- Comment #27 From Bernhard Schmidt 2003-12-15 02:13:01 0000 -------
There already are sample configs for racoon (a racoon.conf and a psk.txt)
installed by the ipsec-tools makefile itself.

dir /etc/racoon
obj /etc/racoon/racoon.conf 36215d029879a12920fef5bf6254b97b 1071417749
obj /etc/racoon/psk.txt.dist f42a2efd32941ff33e88b0dea1731ddd 1071417749
obj /etc/racoon/racoon.conf.dist 36215d029879a12920fef5bf6254b97b 1071417749
obj /etc/racoon/psk.txt f42a2efd32941ff33e88b0dea1731ddd 1071417749

Hmm, perhaps we should patch the makefile to install the .dist-versions only?

------- Comment #28 From Tim Yamin (RETIRED) 2003-12-16 10:06:24 0000 -------
Now in portage in `net-firewall'. Thanks a lot for everybody involved; sorry
for the long wait and grief!

First Last Prev Next    No search results available      Search page      Enter new bug