* Re: vpn under linux
2004-04-10 9:18 ` Antony Stone
@ 2004-04-10 9:31 ` Gianni Pucciani
2004-04-10 9:44 ` Antony Stone
2004-04-10 9:41 ` Gianni Pucciani
2004-04-10 9:47 ` Victor Julien
2 siblings, 1 reply; 15+ messages in thread
From: Gianni Pucciani @ 2004-04-10 9:31 UTC (permalink / raw)
To: Netfilter
Antony Stone wrote:
>On Saturday 10 April 2004 10:01 am, Gianni Pucciani wrote:
>
>
>
>>Hi all,
>>some of you can give me some input about the best way to set up a vpn
>>under two Linux RH9 systems?
>>I heared there are different solution (PPP and SSH, PPTP...) and I'd
>>like to know your opinion about that.
>>
>>
>
>PPP is Point-to-Point Protocol, and has almost nothing to do with VPNs :)
>
>SSH is Secure Shell, and at least it contains some encryption, but again, is
>almost nothing to do with VPNs (but more on that later).
>
>
I thought that they could be used in conjuction to achieve vpn
functionalities...
>PPTP is Pretty Poor Tunneling Protocol (oh, no, sorry, it's a Point to Point
>Tunneling Protocol...), and is the way Microsoft systems do VPN.
>
>The "standard" way to do VPN (in other words, the method which is supported by
>most vendors, uses open standards, and also has the best security) is IPsec.
>
>The usual way to do IPsec under Linux is to use FreeS/WAN under kernel 2.4, or
>the built-in IPsec under kernel 2.6.
>
>I use FreeS/WAN, I like it, it works well with netfilter (once you've got used
>to the path the packets take at each end), and I'm happy with its 3DES/RSA
>security.
>
>
Ok, I'll investigate this solution :-), thanks.
>I said I'd mention more about SSH - that also uses good encryption and is
>therefore secure, and once you have an SSH connection between two machines,
>you can "tunnel" almost any network traffic you like between them, and it
>does work, although I wouldn't select this as a first choice for a VPN
>because there's a lot more manual setting up involved. IPsec is more like a
>network route - you just configure it, and let the two endpoint machines get
>on with negotiating the link, and then computers from whichever network
>ranges you've configured the VPN to support can connect to each other
>transparently through a nice secure tunnel across the Internet.
>
>Hope this helps,
>
>
Sure it helps :-)
Thank you very much!
Gianni
>Regards,
>
>Antony.
>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-10 9:31 ` Gianni Pucciani
@ 2004-04-10 9:44 ` Antony Stone
0 siblings, 0 replies; 15+ messages in thread
From: Antony Stone @ 2004-04-10 9:44 UTC (permalink / raw)
To: Netfilter
On Saturday 10 April 2004 10:31 am, Gianni Pucciani wrote:
> Antony Stone wrote:
> >
> >PPP is Point-to-Point Protocol, and has almost nothing to do with VPNs :)
> >
> >SSH is Secure Shell, and at least it contains some encryption, but again,
> > is almost nothing to do with VPNs (but more on that later).
>
> I thought that they could be used in conjuction to achieve vpn
> functionalities...
Er, well, actually, yes they can, however it is *really* ugly, it breaks some
of the ways in which TCP works, and I wouldn't normally even let someone know
it was possible until they'd exhausted all other sane ways to set up a VPN
and failed for some reason.
The most common reason I know of for people wanting to create a VPN using SSH
and PPP is when they're behind a firewall which doesn't allow them to create
VPNs (using PPTP or IPsec) but does allow SSH - ie: as a way to bypass an
organisation's security policy of not allowing personal VPN setups :)
As I said in my earlier reply, you can tunnel other protocols through an SSH
link, and it turns out that this includes PPP.
Regards,
Antony.
--
Wanted: telepath. You know where to apply.
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-10 9:18 ` Antony Stone
2004-04-10 9:31 ` Gianni Pucciani
@ 2004-04-10 9:41 ` Gianni Pucciani
2004-04-10 10:00 ` Antony Stone
2004-04-10 9:47 ` Victor Julien
2 siblings, 1 reply; 15+ messages in thread
From: Gianni Pucciani @ 2004-04-10 9:41 UTC (permalink / raw)
To: Netfilter
Hi,
I forget one things, waht about the CIPE solution. I read that in the
rh9 sec guide about VPN.
And then, I see this news: the FreeS/WAN project is no longer in
active development, it could be a problem?
thanks
Antony Stone wrote:
>On Saturday 10 April 2004 10:01 am, Gianni Pucciani wrote:
>
>
>
>>Hi all,
>>some of you can give me some input about the best way to set up a vpn
>>under two Linux RH9 systems?
>>I heared there are different solution (PPP and SSH, PPTP...) and I'd
>>like to know your opinion about that.
>>
>>
>
>PPP is Point-to-Point Protocol, and has almost nothing to do with VPNs :)
>
>SSH is Secure Shell, and at least it contains some encryption, but again, is
>almost nothing to do with VPNs (but more on that later).
>
>PPTP is Pretty Poor Tunneling Protocol (oh, no, sorry, it's a Point to Point
>Tunneling Protocol...), and is the way Microsoft systems do VPN.
>
>The "standard" way to do VPN (in other words, the method which is supported by
>most vendors, uses open standards, and also has the best security) is IPsec.
>
>The usual way to do IPsec under Linux is to use FreeS/WAN under kernel 2.4, or
>the built-in IPsec under kernel 2.6.
>
>I use FreeS/WAN, I like it, it works well with netfilter (once you've got used
>to the path the packets take at each end), and I'm happy with its 3DES/RSA
>security.
>
>I said I'd mention more about SSH - that also uses good encryption and is
>therefore secure, and once you have an SSH connection between two machines,
>you can "tunnel" almost any network traffic you like between them, and it
>does work, although I wouldn't select this as a first choice for a VPN
>because there's a lot more manual setting up involved. IPsec is more like a
>network route - you just configure it, and let the two endpoint machines get
>on with negotiating the link, and then computers from whichever network
>ranges you've configured the VPN to support can connect to each other
>transparently through a nice secure tunnel across the Internet.
>
>Hope this helps,
>
>Regards,
>
>Antony.
>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-10 9:41 ` Gianni Pucciani
@ 2004-04-10 10:00 ` Antony Stone
2004-04-10 10:15 ` Gianni Pucciani
2004-04-10 23:41 ` Alexander Samad
0 siblings, 2 replies; 15+ messages in thread
From: Antony Stone @ 2004-04-10 10:00 UTC (permalink / raw)
To: Netfilter
On Saturday 10 April 2004 10:41 am, Gianni Pucciani wrote:
> Hi,
> I forget one things, waht about the CIPE solution. I read that in the
> rh9 sec guide about VPN.
Yes, I should have mentioned that. It uses a different method for encrypting
the data than IPsec does (Blowfish instead of 3DES) and is therefore supposed
to be faster. However in my experience you need to have a *big* pipe to the
outside world in order to be encrypting so much data down your VPN that a
basic CPU can't handle it.
I've never used CIPE so can't comment on it in practice.
I tend to use the standard which is supported by most other vendors for
cross-compatibility, therefore I like IPsec.
> And then, I see this news: the FreeS/WAN project is no longer in
> active development, it could be a problem?
I don't regard it as a problem - I think people will continue to use the
latest version for setting up IPsec with Linux 2.4 kernels, and they'll
migrate to using the built-in IPsec for 2.6 kernels.
The main reason that FreeS/WAN is no longer being developed is because
although it works well as a VPN, the team don't think they can achieve one of
their goals, which was Opportunistic Encryption (using DNS to hold public
keys so that routers could create VPN tunnels on their own when they wanted
to talk to each other, instead of being manually configured to set up
specific tunnels).
In my opinion that doesn't stop it still being very useful as a way to
configure standard IPsec links.
Regards,
Antony.
--
The difference between theory and practice is that in theory there is no
difference, whereas in practice there is.
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: vpn under linux
2004-04-10 10:00 ` Antony Stone
@ 2004-04-10 10:15 ` Gianni Pucciani
2004-04-10 23:41 ` Alexander Samad
1 sibling, 0 replies; 15+ messages in thread
From: Gianni Pucciani @ 2004-04-10 10:15 UTC (permalink / raw)
To: Netfilter
Ok, I see.
Well, thank you very much for giving me such information and for being
so exhaustive.
regards
Gianni
Antony Stone wrote:
>On Saturday 10 April 2004 10:41 am, Gianni Pucciani wrote:
>
>
>
>>Hi,
>>I forget one things, waht about the CIPE solution. I read that in the
>>rh9 sec guide about VPN.
>>
>>
>
>Yes, I should have mentioned that. It uses a different method for encrypting
>the data than IPsec does (Blowfish instead of 3DES) and is therefore supposed
>to be faster. However in my experience you need to have a *big* pipe to the
>outside world in order to be encrypting so much data down your VPN that a
>basic CPU can't handle it.
>
>I've never used CIPE so can't comment on it in practice.
>
>I tend to use the standard which is supported by most other vendors for
>cross-compatibility, therefore I like IPsec.
>
>
>
>>And then, I see this news: the FreeS/WAN project is no longer in
>>active development, it could be a problem?
>>
>>
>
>I don't regard it as a problem - I think people will continue to use the
>latest version for setting up IPsec with Linux 2.4 kernels, and they'll
>migrate to using the built-in IPsec for 2.6 kernels.
>
>The main reason that FreeS/WAN is no longer being developed is because
>although it works well as a VPN, the team don't think they can achieve one of
>their goals, which was Opportunistic Encryption (using DNS to hold public
>keys so that routers could create VPN tunnels on their own when they wanted
>to talk to each other, instead of being manually configured to set up
>specific tunnels).
>
>In my opinion that doesn't stop it still being very useful as a way to
>configure standard IPsec links.
>
>Regards,
>
>Antony.
>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-10 10:00 ` Antony Stone
2004-04-10 10:15 ` Gianni Pucciani
@ 2004-04-10 23:41 ` Alexander Samad
2004-04-11 0:09 ` Aaron P. Martinez
2004-04-12 12:25 ` Scott MacKay
1 sibling, 2 replies; 15+ messages in thread
From: Alexander Samad @ 2004-04-10 23:41 UTC (permalink / raw)
To: Netfilter
[-- Attachment #1: Type: text/plain, Size: 2044 bytes --]
On Sat, Apr 10, 2004 at 11:00:25AM +0100, Antony Stone wrote:
> On Saturday 10 April 2004 10:41 am, Gianni Pucciani wrote:
>
> > Hi,
> > I forget one things, waht about the CIPE solution. I read that in the
> > rh9 sec guide about VPN.
>
> Yes, I should have mentioned that. It uses a different method for encrypting
> the data than IPsec does (Blowfish instead of 3DES) and is therefore supposed
> to be faster. However in my experience you need to have a *big* pipe to the
> outside world in order to be encrypting so much data down your VPN that a
> basic CPU can't handle it.
>
> I've never used CIPE so can't comment on it in practice.
>
> I tend to use the standard which is supported by most other vendors for
> cross-compatibility, therefore I like IPsec.
>
> > And then, I see this news: the FreeS/WAN project is no longer in
> > active development, it could be a problem?
>
> I don't regard it as a problem - I think people will continue to use the
> latest version for setting up IPsec with Linux 2.4 kernels, and they'll
> migrate to using the built-in IPsec for 2.6 kernels.
>
> The main reason that FreeS/WAN is no longer being developed is because
> although it works well as a VPN, the team don't think they can achieve one of
> their goals, which was Opportunistic Encryption (using DNS to hold public
> keys so that routers could create VPN tunnels on their own when they wanted
> to talk to each other, instead of being manually configured to set up
> specific tunnels).
>
> In my opinion that doesn't stop it still being very useful as a way to
> configure standard IPsec links.
Development has moved to openswan
>
> Regards,
>
> Antony.
>
> --
> The difference between theory and practice is that in theory there is no
> difference, whereas in practice there is.
>
> Please reply to the list;
> please don't CC me.
>
>
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-10 23:41 ` Alexander Samad
@ 2004-04-11 0:09 ` Aaron P. Martinez
2004-04-12 12:25 ` Scott MacKay
1 sibling, 0 replies; 15+ messages in thread
From: Aaron P. Martinez @ 2004-04-11 0:09 UTC (permalink / raw)
To: Netfilter
---snip----
>
> Development has moved to openswan
I believe openvpm is another good choice for ipsec vpn solution
>
> >
> > Regards,
> >
> > Antony.
> >
> > --
> > The difference between theory and practice is that in theory there is no
> > difference, whereas in practice there is.
> >
> > Please reply to the list;
> > please don't CC me.
> >
> >
> >
Aaron P. Martinez
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-10 23:41 ` Alexander Samad
2004-04-11 0:09 ` Aaron P. Martinez
@ 2004-04-12 12:25 ` Scott MacKay
2004-04-12 16:01 ` John A. Sullivan III
1 sibling, 1 reply; 15+ messages in thread
From: Scott MacKay @ 2004-04-12 12:25 UTC (permalink / raw)
To: Netfilter
I had a couple questions about the different methods
talked about here, probably focusing on CIPE,
FreeSWAN/OpenSWAN, and the OpenVPN (along with any
others users may chime in with)
1. Where in the netfilter path do these solutions
package up data? Important to know if we see
tunnel/VPN packets or the contents which are going
into them, both incoming and outgoing
2. Which of these guys support broadcast or
multicast?
3. Do any of these support non-encrypted
transmission? The reason for this would be if a
higher level/later service provided the encryption
over the risky sections of a transmission
4. What kind of overhead do these cost? I was
curious from the perspective of initialization/updates
and also any additional packet headers (rough guess).
Thanks ahead of time!!
-Scott
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-12 12:25 ` Scott MacKay
@ 2004-04-12 16:01 ` John A. Sullivan III
2004-04-12 18:58 ` Dick St.Peters
0 siblings, 1 reply; 15+ messages in thread
From: John A. Sullivan III @ 2004-04-12 16:01 UTC (permalink / raw)
To: Scott MacKay; +Cc: Netfilter
I'm afraid I don't have time to answer in depth today but here are a few
quick answers regarding *swan:
On Mon, 2004-04-12 at 08:25, Scott MacKay wrote:
> I had a couple questions about the different methods
> talked about here, probably focusing on CIPE,
> FreeSWAN/OpenSWAN, and the OpenVPN (along with any
> others users may chime in with)
> 1. Where in the netfilter path do these solutions
> package up data? Important to know if we see
> tunnel/VPN packets or the contents which are going
> into them, both incoming and outgoing
*swan makes this convenient by passing the traffic from the physical
interface to an ipsec interface, e.g., eth0 -> ipsec0. I believe there
are extensive diagrams of how this works in the training section at
http://iscs.sourceforge.net
> 2. Which of these guys support broadcast or
> multicast?
> 3. Do any of these support non-encrypted
> transmission? The reason for this would be if a
> higher level/later service provided the encryption
> over the risky sections of a transmission
> 4. What kind of overhead do these cost? I was
> curious from the perspective of initialization/updates
> and also any additional packet headers (rough guess).
There are some performance benchmarks buries somewhere in the extensive
*swan documentation.
>
<snip>
--
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan@nexusmgmt.com
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-12 16:01 ` John A. Sullivan III
@ 2004-04-12 18:58 ` Dick St.Peters
0 siblings, 0 replies; 15+ messages in thread
From: Dick St.Peters @ 2004-04-12 18:58 UTC (permalink / raw)
To: Netfilter; +Cc: Scott MacKay
I can fill in some gaps ...
John A. Sullivan III writes:
> I'm afraid I don't have time to answer in depth today but here are a few
> quick answers regarding *swan:
>
> On Mon, 2004-04-12 at 08:25, Scott MacKay wrote:
> > I had a couple questions about the different methods
> > talked about here, probably focusing on CIPE,
> > FreeSWAN/OpenSWAN, and the OpenVPN (along with any
> > others users may chime in with)
> > 1. Where in the netfilter path do these solutions
> > package up data? Important to know if we see
> > tunnel/VPN packets or the contents which are going
> > into them, both incoming and outgoing
> *swan makes this convenient by passing the traffic from the physical
> interface to an ipsec interface, e.g., eth0 -> ipsec0. I believe there
> are extensive diagrams of how this works in the training section at
> http://iscs.sourceforge.net
OpenVPN and CIPE also both use virtual devices, giving access to both
the encrypted packets and the unencrypted contents.
> > 2. Which of these guys support broadcast or
> > multicast?
OpenVPN and CIPE both support bridging modes.
> > 3. Do any of these support non-encrypted
> > transmission? The reason for this would be if a
> > higher level/later service provided the encryption
> > over the risky sections of a transmission
OpenVPN supports unencrypted transmission. I don't think CIPE does,
but I'm not 100% sure.
> > 4. What kind of overhead do these cost? I was
> > curious from the perspective of initialization/updates
> > and also any additional packet headers (rough guess).
> There are some performance benchmarks buries somewhere in the extensive
> *swan documentation.
The additional packet headers (of ANY tunnel protocol) can cause
problems when accessing servers with broken path mtu discovery. This
normally isn't a problem for internal VPN use, but you'll run into
this when using a VPN to get internet access via a remote site's
internet connection. (If you do this, Netfilter mss rewriting can be
a big help.)
OpenVPN implements emulation of full-size mtu. However, turning this
on can result in a significant (~30%) drop in speed, so I don't use
it.
Otherwise, OpenVPN and CIPE (and probably *SWAN) run essentially at
wirespeed - usually less than 1-2% speed cost. OpenVPN supports
compression, and compressible transfers can run even faster than
uncompressed wirespeed.
OpenVPN has become my personal VPN choice. I use it for a VPN linking
my office and home and for a demonstration tunnel between upstate NY
and New Zealand. (http://www.nz.netheaven.com) Previously I used
mostly CIPE, and for Linux I still regard the choice a close call.
--
Dick St.Peters, stpeters@NetHeaven.com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: vpn under linux
2004-04-10 9:18 ` Antony Stone
2004-04-10 9:31 ` Gianni Pucciani
2004-04-10 9:41 ` Gianni Pucciani
@ 2004-04-10 9:47 ` Victor Julien
2 siblings, 0 replies; 15+ messages in thread
From: Victor Julien @ 2004-04-10 9:47 UTC (permalink / raw)
To: Netfilter
On Saturday 10 April 2004 11:18, Antony Stone wrote:
> PPP is Point-to-Point Protocol, and has almost nothing to do with VPNs :)
>
> SSH is Secure Shell, and at least it contains some encryption, but again,
> is almost nothing to do with VPNs (but more on that later).
>
> PPTP is Pretty Poor Tunneling Protocol (oh, no, sorry, it's a Point to
> Point Tunneling Protocol...), and is the way Microsoft systems do VPN.
>
> The "standard" way to do VPN (in other words, the method which is supported
> by most vendors, uses open standards, and also has the best security) is
> IPsec.
>
> The usual way to do IPsec under Linux is to use FreeS/WAN under kernel 2.4,
> or the built-in IPsec under kernel 2.6.
>
> I use FreeS/WAN, I like it, it works well with netfilter (once you've got
> used to the path the packets take at each end), and I'm happy with its
> 3DES/RSA security.
>
> I said I'd mention more about SSH - that also uses good encryption and is
> therefore secure, and once you have an SSH connection between two machines,
> you can "tunnel" almost any network traffic you like between them, and it
> does work, although I wouldn't select this as a first choice for a VPN
> because there's a lot more manual setting up involved. IPsec is more like
> a network route - you just configure it, and let the two endpoint machines
> get on with negotiating the link, and then computers from whichever network
> ranges you've configured the VPN to support can connect to each other
> transparently through a nice secure tunnel across the Internet.
>
You can also take a look at OpenVPN (http://openvpn.sourceforge.net). It's
quite easy to set up, is crossplatform and can be made transparant. Also, it
doesn't require kernel modification.
Regards,
Victor
> Hope this helps,
>
> Regards,
>
> Antony.
^ permalink raw reply [flat|nested] 15+ messages in thread