|
donpaul
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« Reply #3 on: August 27, 2009, 03:28:25 pm » |
|
 ... when will the script be completed?
|
|
|
|
|
Logged
|
|
|
|
|
donpaul
|
 |
« Reply #4 on: August 27, 2009, 03: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
|
|
|
|
|
Logged
|
|
|
|
|
dlewis
|
 |
« Reply #5 on: August 27, 2009, 03:45:39 pm » |
|
Translate your excitement into a script... lol.
|
|
|
|
|
Logged
|
|
|
|
|
hari
|
 |
« 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
|
|
|
|
krys
Addicted

Posts: 583
|
 |
« 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
|
 |
« 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
|
 |
« Reply #9 on: August 27, 2009, 04:26:14 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.
|
|
|
|
|
Logged
|
|
|
|
|
donpaul
|
 |
« 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
|
 |
« Reply #11 on: August 27, 2009, 05:00:59 pm » |
|
Correct to the web admin tie in? 
|
|
|
|
|
Logged
|
|
|
|
|
donpaul
|
 |
« Reply #12 on: August 27, 2009, 05: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.
|
|
|
|
|
Logged
|
|
|
|
|
donpaul
|
 |
« 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
|
 |
« 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
|
|
|
|
|