Advertisement

12.04.2007 at 05:08PM PST, ID: 23001946
[x]
Attachment Details

How do I configure Ubuntu Server as a VPN server for virtual machines

Asked by mrgordonz in Virtual Private Networking (VPN), Ubuntu, VMware

Tags: ubuntu, server, vpn

Hi Experts,

This may be a slightly long winded question, but I want to make sure I include all the necessary info.

I am trying to set up a virtual LAN which is only accessible via a VPN connection.  Here is the setup so far...

I have placed a server in a co-location facility.  The OS on the server is Ubuntu Server 6.0.6 LTS.  I did a standard LAMP installation.  Next I installed VMware Server and created a few virtual machines.  All the VMs are Windows Server 2003 and they are all running Apache 2.0 and FileZilla FTP Server.  The VMs all work fine, as does the host server.

Currently the host server and each of the VMs has a public IP address (ie: they are all Internet facing).  I can connect to the host via HTTP, HTTPS, SSH, and FTP.  I can connect to the VMs via HTTP, FTP and RDP.  But, I see this setup as flawed from a security perspective - I would prefer to hide the VMs from the Internet by assigning private IP addresses and using the Linux host as a kind of proxy.

What I would like to do is setup a VPN server on the host so that the only way anyone can get to the VMs is via a VPN tunnel.  The exception to this would be HTTP.  I would like to configure Apache on the host to use Named Virtual Hosts to forward HTTP traffic to the appropriate VM.  This config I have done before so I know it works.  Where I am having trouble is the VPN side of things.

I have installed Poptop (http://www.poptop.org/), which is a PPTP server solution for Linux.  It seems to work fine in the sense that I can create a new VPN connection on my WIndows PC, and connect to the host server.  When I do an ipconfig on the my Windows PC I get a new PPP connection and IP address:

PPP adapter MyServer VPN:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 10.28.101.100
   Subnet Mask . . . . . . . . . . . : 255.255.255.255
   Default Gateway . . . . . . . . . : 0.0.0.0

When my Windows PC has a VPN connection active and I do an ifconfig on the host, I get this:

ppp0      Link encap:Point-to-Point Protocol
             inet addr:10.28.101.1  P-t-P:10.28.101.100  Mask:255.255.255.255
             UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1396  Metric:1
             RX packets:32 errors:0 dropped:0 overruns:0 frame:0
             TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:3
             RX bytes:2447 (2.3 KiB)  TX bytes:98 (98.0 b)

I tried giving each of the VMs a private IP address, for example, 10.28.101.10, 10.28.101.11, etc.  But my Windows PC was unable to ping any of the VMs either by IP address or host name.

In the Poptop config file (/etc/pptpd.conf), I have configured the local IP and remote IPs as follows:

localip 10.28.101.1
remoteip 10.28.101.100-200

I suppose I have a number of questions:

1.  Is my proposed design feasible?  Is it possible to "hide" the VMs from the Internet and only allow access via VPN (except for HTTP)?
2.  Is there a problem with my configuration on either the host or the VMs?  For example, should I use NAT or Bridged networking on the VMs?  Currently I am using Bridged because each VM is using a static public IP address.
3.  Is there a better (or alternative) solution?  I am happy to use a different VPN server product.  My preference is to use one that supports the built in MS VPN client so my customers don't need to install a VPN client (eg: Cisco).

Any help would be greatly appreciated.

Cheers,

Paul HobbsStart Free Trial
[+][-]12.04.2007 at 07:03PM PST, ID: 20408652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 08:23PM PST, ID: 20408951

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 08:46PM PST, ID: 20409020

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 09:28PM PST, ID: 20409161

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 09:32PM PST, ID: 20409175

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 09:38PM PST, ID: 20409217

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 09:44PM PST, ID: 20409236

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 10:26PM PST, ID: 20409375

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 03:30AM PST, ID: 20410392

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 03:47PM PST, ID: 20416306

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 04:43PM PST, ID: 20416571

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 06:23PM PST, ID: 20416891

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 06:35PM PST, ID: 20416959

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 06:53PM PST, ID: 20417030

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 07:07PM PST, ID: 20417067

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 08:04PM PST, ID: 20417311

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 09:11PM PST, ID: 20417538

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2007 at 09:57PM PST, ID: 20417646

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Virtual Private Networking (VPN), Ubuntu, VMware
Tags: ubuntu, server, vpn
Sign Up Now!
Solution Provided By: WizRd-Linux
Participating Experts: 1
Solution Grade: A
 
 
[+][-]12.05.2007 at 10:12PM PST, ID: 20417691

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.06.2007 at 05:05AM PST, ID: 20419145

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.06.2007 at 05:07AM PST, ID: 20419151

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628