Author Topic: PPTP VPN - iPhone VPN access  (Read 6045 times)

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
PPTP VPN - iPhone VPN access
« on: August 27, 2009, 06:30:03 am »
Has anyone installed pptpd on their core yet? With pptpd, we can use the iPhone (or any client) to vpn into the core. Really nice for using the web orbiter remotely. I set it up in 5 minutes, and it works great.

For those interested:

# Get the server installed.

sudo apt-get install pptpd

# Edit /etc/pptpd.conf file to setup the IP address for connected clients. Enable localip and remoteip to something like

localip 192.168.80.150
remoteip 192.168.80.151-155

# Use /etc/resolv.conf to find the DNS of the system, and edit /etc/ppp/pptpd-options to enable ms-dns – something like

ms-dns 192.168.80.1

# Set the VPN account by editing /etc/ppp/chap-secrets. Replace user and password with whatever you like.
user pptpd password *

# Restart the server by executing

sudo /etc/init.d/pptpd restart

# Open port 1723 to the core (Advanced > Network > Firewall Rules)

# Setup VPN in the iPhone by General > Network > VPN > PPTP. Enable Auto encryption level. Keep RSA SecurID off. Configure with the user and password you set up.

It should work now.


dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #1 on: August 27, 2009, 02:41:38 pm »
donpaul, maybe you should create a script that does this automatically for the users (on the LinuxMCE side). In the interim, please create a wiki for this.

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #2 on: August 27, 2009, 04:15:52 pm »
donpaul, maybe you should create a script that does this automatically for the users (on the LinuxMCE side). In the interim, please create a wiki for this.

LOL... I knew that was coming ;-)

dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #3 on: August 27, 2009, 04:28:25 pm »
:) ... when will the script be completed?

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #4 on: August 27, 2009, 04:37:39 pm »
:) ... when will the script be completed?

Soon... I have to say, PPTP on the core has me very excited!

Video feeds over PPTP to a PC or iPhone
Orbiter over PPTP on a PC or iPhone
Free SIP call from anywhere in the world, over PPTP
Stream movies/Music over PPTP to PC or iPhone


dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #5 on: August 27, 2009, 04:45:39 pm »
Translate your excitement into a script... lol.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Re: PPTP VPN - iPhone VPN access
« Reply #6 on: August 27, 2009, 05:08:20 pm »
just a script? dlewis, we want this integrated into the web admin ;-))

br, Hari
rock your home - http://www.agocontrol.com home automation

krys

  • Addicted
  • *
  • Posts: 583
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #7 on: August 27, 2009, 05:23:53 pm »
donpaul,
Im not sure I follow how this allows you to stream music and make calls via SIP from an iphone. What apps are you using?

dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #8 on: August 27, 2009, 05:25:29 pm »
hari, good point... This would actually be better suited if it had a tie into the we admin...

krys, I assume for the SIP calls, he's using some sort of SIP client on the iPhone and just entering his SIP credentials directly... Similarly for the music stream. Just point the music app to the directory to pull the music.

dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #9 on: August 27, 2009, 05:26:14 pm »
Here you go

On the core:

Code: [Select]
dcerouter:~# cd /usr/pluto/bin ; sudo wget http://donpaul.info/Setup_PPTP.sh.gz ; sudo gunzip Setup_PPTP.sh.gz
It will set everything up the first time you run it. Run it a subsequent time to create a new user.

Code: [Select]
./Setup_PPTP.sh [i]username [/i][i]password[/i]
Let me know if you run into a problem.

Yes, I will create a wiki once the script works for someone else.

Once the script is tested, please submit it to the devs to be uploaded to svn.

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #10 on: August 27, 2009, 05:58:37 pm »
hari, good point... This would actually be better suited if it had a tie into the we admin...

krys, I assume for the SIP calls, he's using some sort of SIP client on the iPhone and just entering his SIP credentials directly... Similarly for the music stream. Just point the music app to the directory to pull the music.

Correct.

dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #11 on: August 27, 2009, 06:00:59 pm »
Correct to the web admin tie in? ;)

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #12 on: August 27, 2009, 06:11:05 pm »
Correct to the web admin tie in? ;)

I wish I had the php knowledge to tie it in to the web admin. I am more than willing to assist someone who has the php knowledge... and time.

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #13 on: August 28, 2009, 06:56:03 am »
Ok, took a stab at learning some php today, this is what I have so far. Hopefully I will have a finished product and a patch in the next few days. Click the link, set a password, and whoa-la... pptp is installed and the user has access.


dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: PPTP VPN - iPhone VPN access
« Reply #14 on: August 28, 2009, 01:00:21 pm »
Nice! Please provide the files for users to test. Once we've tested it fully, we can submit it to SVN.
« Last Edit: August 28, 2009, 01:04:25 pm by dlewis »