Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Guide to IPSec?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
XXD
n00b
n00b


Joined: 11 Jul 2003
Posts: 33

PostPosted: Thu Sep 09, 2004 2:49 pm    Post subject: Guide to IPSec? Reply with quote

I've searched on the forums, gentoo-wiki and also google for a good howto on using ipsec on Gentoo. But I can't seem to find any. Do you guys know of any good guide to using IPSec on machines on a LAN? I would sure like to hear about it.

If there aren't any good guides available, do you have any suggestions or tips on where to start?

Would really appreciate any help.
Thanks.
XXD
Back to top
View user's profile Send private message
Casper Gasper
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2004
Posts: 75
Location: London

PostPosted: Thu Sep 09, 2004 6:35 pm    Post subject: Reply with quote

Well, never tried this myself with linux let alone Gentoo, but...

The first thing you need to decide is whether to use the KAME IPSec implementation built-in to the 2.6 kernels, or the Free/OpenSwan implementation which works with 2.4. You say you'll be using this on a LAN? In which case ESP transport mode is probably what you want. If you haven't already found it, this HOWTO is probably a good place to start:
http://www.ipsec-howto.org/t1.html

hth,

Casper.
Back to top
View user's profile Send private message
XXD
n00b
n00b


Joined: 11 Jul 2003
Posts: 33

PostPosted: Thu Sep 09, 2004 10:40 pm    Post subject: Reply with quote

Thanks Casper. I'm reading up on that site. I want to set up IPSec on a LAN with both Gentoo and WinXP machines. And I would also want receive tunnelled SSH and RDP connections from the internet into the LAN.

It seems the site you mentioned only has details for 2.6 kernel.
Back to top
View user's profile Send private message
Casper Gasper
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2004
Posts: 75
Location: London

PostPosted: Mon Sep 13, 2004 6:02 pm    Post subject: IPSec stuff Reply with quote

Yep, that's because KAME is only in 2.6, AFAIK. If you want to use 2.4 you'll have to use the Free/OpenSwan implementation -- I think you'll have to patch the kernel, although it is included with gentoo server sources.
Ignore AH, as it only provides authentication and not encryption, so it's basically useless for network level stuff. ESP provides both encryption and authentication.
Something you'll need to decide on is whether you can use pre-shared keys (the simplest option) or certificates for authenticating other parties. And, if you want to connect from NAT-ed devices, you'll need an IPSec implementation (and routers) that support NAT-Traversal, or UDP 500 encapsulation as it's also called.
Sorry I can't give you any more help on specifics -- IPSec is truly complex stuff.

Casper.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum