

Setup a Ubuntu VPN server
source link: https://www.devroom.io/2010/10/11/setup-a-ubuntu-vpn-server/?utm_campaign=Feed%3A+ariejan+%28ariejan%7Cdevroom.io%29
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Setup a Ubuntu VPN server
I recently installed Ubuntu Linux on a home server (I hate that word, but it best describes what it is, so). Anyway, I’d like to be able to create a VPN network between my home server and my MacbookPro, which might be anywhere in the world.
This first part of the tutorial describes how to setup a VPN server in Ubuntu.
~
First, install the pptpd
package. pptpd
offers a PPTP
-type VPN which is
supported by Microsoft and other network vendors. This is also the easiest to
setup.
sudo apt-get install pptpd
Next up, edit /etc/pptpd.conf
with sudo vi /etc/pptp.conf
. At the bottom add the following lines:
localip 192.168.1.10
remoteip 192.168.1.230-239
Here localip
references the IP of my home server. The remoteip
variable
configures which IPs remote clients may use when the connect through VPN to my
network. In this case I reserve 10 IP address: 192.168.1.230 through
192.168.1.239.
With that out of the way, let’s tell PPTP
which users to allow. Edit
/etc/ppp/chap-secrets
, just like you did before using sudo
.
# client server secret IP Address
ariejan pptpd somepassword *
That’s all! Yes, seriously. Just restart the pptpd
daemon and you’re good to
go.
Now, go and watch my PPTP VPN setup for Mac OS X Snow Leopard
Note: This was tested on Ubuntu 10.10-amd64
My site is free of ads and trackers. I record privacy-respecting usage statistics with Fathom.
Was this post helpful to you? Why not ☕ Buy me a coffee
Copyright © 1999-2020 Ariejan de Vroom <[email protected]>
Live now; make now always the most precious time. Now will never come again.
– Jean-Luc Picard
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK