book collections email follower instructable user
Picture of Setup a VPN for your iPhone/iPad or Computer
 The great thing about a netbook or an iPhone is that you can connect to the internet from anywhere, the bad thing is that most of this traffic is unencrypted. This unencrypted traffic is open to all the hackers, and all the web admins in the world. Luckily, there is a tool to counter this, every one of these devices can connect to a VPN, allowing encrypted traffic between your mobile device and your home network.

Step 1: Installing and setting up PPTPD on Ubuntu Server

Picture of Installing and setting up PPTPD on Ubuntu Server
ssh into your server, and install the package pptpd on your ubuntu server or desktop

sudo apt-get install pptpd

Next it's time to configure your settings on your pptpd server with the file '''/etc/pptpd.conf'''

sudo nano /etc/pptpd.conf

Find the bottom lines that say


or something like that. We need to uncomment these lines, and change the ip addresses so they look something like this

localip local_ip_address_of_my_server
remoteip ip_range_to_assign_to_clients

The localip should be the address your router assigns to your server (make sure that your server receives a static ip), while the remoteip should be a range within your routers assignment range, but out of the normal assignment range

i.e. my local ip is whereas my router assigns ip addresses between the ranges of, so i would set up my configuration like 


the remote ip is outside of my routers normal range, but still within the total range. 

s5314s2 years ago
Can I use this setup also for external connection?
SumitB303 years ago

Worked fine in ubuntu server for me. Thanks for sharing this needful information.

HaroldK24 years ago

Web security ought to be in the front of each ones personality. On the off chance that you are voyaging anyplace and utilizing your portable PC or cell phone then you have to utilize a VPN to secure your data and personality. I discovered a site looking at the best ones

AlanW44 years ago

I just gotta PureVPN subscription. The best thing is that they have their own iOS App, so we can connect it automatically or Setup manually both will gonna work. Here you can get it too:

BilalA4 years ago

Nice article. I know two more ways to set VPN on Ipad with in a few minutes. To go there just visit

RobK14 years ago

Hey guys, to get vpn connection I usually use online vpn servises. I think there are several things everyone should pay attention to: 1) TOS (provider must claim that it does not keep logs or your personal info); 2) ability to use your account on different devices simulteneously; 3) number of servers; 4) reputation of provider (read several reviews); 5) price (it must be adequate). As for my choice I really like

lindac14 years ago

I have tried many ways, free and paid ways to open blocked websites, I think vpn works better than others, this is what I can recommend,try the service before you pay for it!

I ordered my account from the price is great. 1Months $3.3 , 3Months $7 and 12 Months $16

It has free test account and you can try the service for free.

It supports all protocols(PPTP, L2TP, OpenVPN,CiscoVpn), And you don't have to buy different accounts for different devices(use 1 account to connect on your computer and your mobile at the same time)

spel3o8 years ago
Thank you so much! God, I think I was going to kill myself over all of the config files.. Plain clean and simple finally :)
afernie8 years ago
You need to forward tcp port 1723 for pptp from your router to your ubuntu server.
dtitzer9 years ago
Excellent write-up. I did this myself several months ago. I used to get DNS for my home ISP connection. Your write-up doesn't go into much detail on the external connection, but otherwise it's excellent. As advanced a topic as this, the reader should know about it.