|
|
#1 |
|
#parp
Join Date: Mar 2001
Location: London
Posts: 14,087
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
VPN Server on Ubuntu Tutorial
We use Ubuntu here on our internal development servers (apt-get love
) and this morning I needed to setup a VPN server so that I can access some tools that run here from home. I came across a bunch of hurdles and thought i'd document them here for anyone who needs to do the same.This will allow MS clients and probably Apple too. Firstly install pptpd Code:
sudo apt-get install pptpd Code:
localip 172.198.1.4 remoteip 172.198.2.50-51 remoteip: the IPs that clients are allowed to use (i allowed mine to use 172.198.2.50 through 172.198.2.51) Now we'll set up some users, so edit the chap-config config file(/etc/ppp/chap-secrets). I want to allow two users, so my chap-secrets file looks like this: Code:
# client server secret IP addresses rich pptpd apassword 80.40.0.0/13 geoff pptpd apassword 212.219.0.0/14 You may be good to go at this point. Restart pptpd (sudo /etc/init.d/pptpd restart) and attempt to connect. If it doesn't work, check /var/log/messages for a notice that looks a bit like this: Code:
Apr 10 09:49:42 beryllium pppd[9619]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4 This info kindly lifted from CyberAngel at the Ubuntuforums. We now need a few more things: Code:
sudo apt-get install libwrap0-dev debhelper sudo apt-get source pptpd cd pptpd-1.3.0/plugins sudo vim patchlevel.h Code:
#define VERSION "2.4.3" Code:
#define VERSION "2.4.4" Code:
cd ../.. sudo apt-get -b source pptpd sudo dpkg -i pptpd_1.3.0-1ubuntu1_i386.deb sudo dpkg -i bcrelay_1.3.0-1ubuntu1_i386.deb Code:
sudo /etc/init.d/pptpd restart All you need to do now is add a VPN network connection and connect with the username/password that you set up. Don't forget to hit the IPv4 TCP/IP settings on your client machines for the VPN connection and to untick "Use default gateway on remote network" if you need to (you probably will). You will also need to change some security settings (image): VPN Connection > Properties > [Security Tab] -> Advanced Allow these protocols: (tick) Microsoft CHAP Version2
__________________
This post is non-negotiable. All terms and conditions apply. Free UK Motorcycle classifieds - Buy a Motorbike |
|
|
|
|
|
#2 |
|
Multimodder
Join Date: Jan 2008
Location: Denmark
Posts: 140
![]() |
Hi RTT.
I like your guide on how to make a PPTP network. I followed your guide, and had no problems in setting up everything, however when i connect to my VPN server i get limited connection, and i am not able to access the website on my server if i call its remote address. Could you please help me? I am using Windows Vista by the way. |
|
|
|
|
|
#3 |
|
What's a Dremel?
Join Date: May 2008
Posts: 1
![]() |
Hangs at Starting PPTP Daemon:
I've been trying to follow this, but am getting close towards the beginning...
When trying to install the pptpd package, it just sits at "Starting PPTP Daemon: ", and doesn't go beyond that unless I interupt it. Any idea why it's stopping here? Thanks |
|
|
|
|
|
#4 |
|
What's a Dremel?
Join Date: Jul 2008
Posts: 1
![]() |
Hangs at Starting PPTP Daemon:
Make sure the config files has a line feed at the end.
If that doesn't work, try the debug option in pptpd.conf. Last edited by msilfver; 27th Jul 2008 at 11:53. |
|
|
|
|
|
#5 |
|
What's a Dremel?
Join Date: Dec 2008
Posts: 1
![]() |
Port
Hi,
I've completed the tutorial. I remain with one problem though: the default pptpd port 1723 is already in use. Is there a way to change this port? Thx in advance
|
|
|
|
|
|
#6 |
|
Hate your face
Join Date: Jan 2002
Location: Montreal, Canada
Posts: 7,666
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
four first posts in a row ! Damn , your howTo gets you love RTT !
__________________
| Intel i7 4770K | 12GB DDR3 2000 | Asus Maximus VI Hero | GTX 780 Ti | Samsung 840 Pro 256GB | 10.5TB total | Seasonic X-1250 | Auzentech Bravura X-Fi | Fractal Design Define R3 XL | Corsair H50 | BenQ XL2420T 120Hz | |
|
|
|
|
|
#7 | |
|
What's a Dremel?
Join Date: Dec 2009
Posts: 1
![]() |
Thank for TUT
And now I have a question Save the file and now do: Code: Quote:
![]() Could you tell me why error in line ? Build command 'cd pptpd-1.3.4 && dpkg-buildpackage -b -uc' failed. E: Child process failed Last edited by GahocIT; 1st Dec 2009 at 05:01. |
|
|
|
|
|
|
#8 |
|
Minimodder
Join Date: Jun 2010
Posts: 38
![]() |
thanks alot RTT for the great tutorial. peace
|
|
|
|
|
|
#9 |
|
What's a Dremel?
Join Date: May 2011
Location: USA
Posts: 1
![]() |
Followed your guide and everything worked perfectly
|
|
|
|
|
|
#10 |
|
What's a Dremel?
Join Date: Jun 2011
Location: Lakewood Ranch, FL
Posts: 1
![]() |
Hi RTT! Cool.. You're the first person that has posted a simple and direct How-To! Its funny because we IT folks tend to follow the most complex path and your How-To reminded me of how to get something up and running quickly (in under a minute) for a client of mine without resorting to a full on solution that requires special client software. Great Stuff!!
|
|
|
|
|
|
#11 |
|
What's a Dremel?
Join Date: Aug 2011
Posts: 3
![]() |
I have set up PPTP VPN server on ubuntu.
But accounts are open for concurrent simultaneous connections. means there can be many users using one account at the time. i need to limit that to one user at the time. anybody knows how it can be done? |
|
|
|
|
|
#12 |
|
What's a Dremel?
Join Date: Aug 2011
Posts: 3
![]() |
I have set up PPTP VPN server on ubuntu.
But accounts are open for concurrent simultaneous connections. means there can be many users using one account at the time. i need to limit that to one user at the time. anybody knows how it can be done? |
|
|
|
|
|
#13 | |
|
What's a Dremel?
Join Date: Sep 2011
Location: Essex UK
Posts: 1
![]() |
Quote:
|
|
|
|
|
|
|
#14 | |
|
What's a Dremel?
Join Date: Sep 2011
Posts: 1
![]() |
Quote:
|
|
|
|
|
|
|
#15 | |
|
What's a Dremel?
Join Date: Aug 2011
Posts: 3
![]() |
Quote:
If you do please let me know. my email: sa_toussi@yahoo.com thanks.. |
|
|
|
|
|
|
#16 | ||
|
What's a Dremel?
Join Date: Jan 2012
Posts: 1
![]() |
Hi,
Thanks for the info on how to set this up. I did it and it worked great on my iPad while in the house. I put the default port of 1723 in my router and sent it to my ubuntu server at 192.168.0.99 When I try to login using my dyndns account, it will not allow it. It shows VPN Connecting... and after about 30 seconds I get Quote:
# (Recommended) Quote:
Any ideas please on what to try next? Cheers Paul. |
||
|
|
|
|
|
#17 |
|
What's a Dremel?
Join Date: Feb 2012
Posts: 2
![]() |
Hi,
Thanks for the how-to.however,there are a few concept that i do not understand.While i am not new to linux,i am new to vpn and here is my scenario: I want to setup the pptp server on a ubuntu box,behind a pix firewall that has a public ip tht NATs to the ubuntu box.what i do not understand is whci i do i use,the public one or the private one in the conf file on the localip,also the users that i create in tht file,are they system users or anything in the file will login?my current server has a lan ip of 192.168.1.2,shd i use this on the localip? also,i use the default vpn client that comes with ubuntu 11.10 and it requires that i put a gateway when setting up a new vpn connection.what shd be put on the gateway? Thanks in advance. |
|
|
|
|
|
#18 | |
|
What's a Dremel?
Join Date: Feb 2012
Posts: 2
![]() |
Quote:
also,on my ubuntu 11.10 default vpn client,it asks for a gateway on setting up a connection,which ip shd i use for the gateway? thanks in advance |
|
|
|
|
|
|
#19 |
|
What's a Dremel?
Join Date: Oct 2012
Posts: 4
![]() |
Routers
I have read soewhere that some older routers do not support the VPN connection protocols. How relevant is that to the set up? Comments?
|
|
|
|
![]() |
| Tags |
| linux |
|
|