Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-07-2009, 04:55 AM   #1
LQ Newbie
Registered: Mar 2004
Location: London, UK
Distribution: Debian
Posts: 14

Rep: Reputation: 0
Question PPTP Setup: How to put remote clients into a "virtual" local network?

Hi all,

Apologies for the possibly slightly confusing title - let me elaborate.

I have a Slicehost VPS and I'm trying to set up PPTPD on it. I only have one IP address (the public IP of the box). All the PPTPD howto's I've seen rely on assigning remote clients IPs from the local subnet (e.g. the PPTD server's local IP is, and remote IPs are taken from a pool of

However I don't think I can do that as I only have the one IP address on Slicehost's network - that public IP (and all other IPs in the segment are public).

So what I really want to do is to be able to create a private LAN segment or virtual network adapter and have VPN clients assigned addresses in that segment, then routed out onto the Internet effectively using the PPTPD box as a router.

Does this sound insane? Am I missing something obvious? If not, any tips on the configuration I would need to achieve this?

I am using Ubuntu Hardy (LTS).

Any help would be massively appreciated. Many thanks in advance!

Old 02-07-2009, 11:05 PM   #2
Registered: May 2005
Location: Belgium
Distribution: slackware 10.2
Posts: 43

Rep: Reputation: 15
my knowledge of vpn's is pretty sketchy but here's a few answers:

as for you just having one ip - correct but you will set up a 'dial up' service there which will connect and then assign the client a private ip adress i.e. 192.168.x.x
this virtal network you can connect to your home network

oh and dont worry -the software will do most of the work

i dont know if debian has a vpn software but i think this one will work on most distros:
Old 02-09-2009, 07:15 AM   #3
LQ Newbie
Registered: Mar 2004
Location: London, UK
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for your reply.

Having read around the subject a bit more, I am now more sure of what it is I need to do.

I need to know how to configure a virtual local network adapter and route packets from that network to the real network/Internet.

If what I'm thinking is right, I should then be able to assign addresses from that private network to incoming PPTP clients and have their traffic routed onto the Internet.

So it's less of a PPTP-specific issue and more of a general networking issue.

Any pointers to achieve this end would be hugely appreciated! I have tried a lot of Googling but my terminology must be a bit off, as I haven't turned up much.

Thanks again,



pptp, pptpd, ubuntu, vpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTABLES: interface on "" won't route clients from "" zivota Linux - Networking 2 06-09-2008 01:35 PM
SAMBA - cannot connect to local network: "Timeout on Server 'x'" v@ny@ Linux - Networking 5 02-16-2008 05:44 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Trying to get SAMBA working "Unable to find any workgroups in your local network." shodekiagari Linux - Networking 1 07-08-2005 01:32 PM
"connect: No buffer space available" in my local network area SpaceCowboy Linux - Networking 5 08-30-2004 02:44 AM

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration