LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-07-2009, 05:55 AM   #1
BigglesZX
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 192.168.0.20, and remote IPs are taken from a pool of 192.168.0.30-40).

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!

Biggs
 
Old 02-08-2009, 12:05 AM   #2
jimjones
Member
 
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: http://en.wikipedia.org/wiki/OpenVPN
 
Old 02-09-2009, 08:15 AM   #3
BigglesZX
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,

Biggs
 
  


Reply

Tags
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 "192.168.1.0/24" won't route clients from "10.65.0.0" zivota Linux - Networking 2 06-09-2008 02:35 PM
SAMBA - cannot connect to local network: "Timeout on Server 'x'" v@ny@ Linux - Networking 5 02-16-2008 06:44 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
Trying to get SAMBA working "Unable to find any workgroups in your local network." shodekiagari Linux - Networking 1 07-08-2005 02:32 PM
"connect: No buffer space available" in my local network area SpaceCowboy Linux - Networking 5 08-30-2004 03:44 AM


All times are GMT -5. The time now is 03:18 AM.

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