News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

PPTP VPN - iPhone VPN access

Started by donpaul, August 27, 2009, 06:30:03 AM

Previous topic - Next topic

donpaul

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

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

Quote from: dlewis 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.

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

dlewis

:) ... when will the script be completed?

donpaul

Quote from: dlewis on August 27, 2009, 04:28:25 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

Translate your excitement into a script... lol.

hari

just a script? dlewis, we want this integrated into the web admin ;-))

br, Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

krys

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

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

Quote from: donpaul on August 27, 2009, 05:25:19 PM
Here you go

On the core:

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.

./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

Quote from: dlewis 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.

Correct.

dlewis

Correct to the web admin tie in? ;)

donpaul

Quote from: dlewis on August 27, 2009, 06:00:59 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

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

#14
Nice! Please provide the files for users to test. Once we've tested it fully, we can submit it to SVN.