LinuxMCE Forums
June 19, 2013, 01:42:20 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1] 2 3
  Print  
Author Topic: PPTP VPN - iPhone VPN access  (Read 4371 times)
donpaul
Guru
****
Posts: 300


View Profile
« on: August 27, 2009, 05: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.

Logged
dlewis
Guru
****
Posts: 401


View Profile
« Reply #1 on: August 27, 2009, 01: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.
Logged
donpaul
Guru
****
Posts: 300


View Profile
« Reply #2 on: August 27, 2009, 03: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 ;-)
Logged
dlewis
Guru
****
Posts: 401


View Profile
« Reply #3 on: August 27, 2009, 03:28:25 pm »

Smiley ... when will the script be completed?
Logged
donpaul
Guru
****
Posts: 300


View Profile
« Reply #4 on: August 27, 2009, 03:37:39 pm »

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

Logged
dlewis
Guru
****
Posts: 401


View Profile
« Reply #5 on: August 27, 2009, 03:45:39 pm »

Translate your excitement into a script... lol.
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2414



View Profile WWW
« Reply #6 on: August 27, 2009, 04:08:20 pm »

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

br, Hari
Logged

rock your home - http://www.agocontrol.com home automation
krys
Addicted
*
Posts: 583


View Profile
« Reply #7 on: August 27, 2009, 04: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?
Logged
dlewis
Guru
****
Posts: 401


View Profile
« Reply #8 on: August 27, 2009, 04: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.
Logged
dlewis
Guru
****
Posts: 401


View Profile
« Reply #9 on: August 27, 2009, 04:26:14 pm »

Here you go

On the core:

Code:
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:
./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.
Logged
donpaul
Guru
****
Posts: 300


View Profile
« Reply #10 on: August 27, 2009, 04: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.
Logged
dlewis
Guru
****
Posts: 401


View Profile
« Reply #11 on: August 27, 2009, 05:00:59 pm »

Correct to the web admin tie in? Wink
Logged
donpaul
Guru
****
Posts: 300


View Profile
« Reply #12 on: August 27, 2009, 05:11:05 pm »

Correct to the web admin tie in? Wink

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.
Logged
donpaul
Guru
****
Posts: 300


View Profile
« Reply #13 on: August 28, 2009, 05: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.

Logged
dlewis
Guru
****
Posts: 401


View Profile
« Reply #14 on: August 28, 2009, 12: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, 12:04:25 pm by dlewis » Logged
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!