LinuxMCE Forums
May 20, 2013, 07:31:47 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]
  Print  
Author Topic: VPN access via iPhone  (Read 1148 times)
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« on: September 30, 2012, 09:16:25 pm »

Does anyone know how to set up the iPhone's VPN client to access LMCE?

if somebody can help me set it up I will write a Wiki page for it
Logged

hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #1 on: October 01, 2012, 08:56:49 am »

I use a cisco 1900 series router for that. I can help with the config.
Logged

rock your home - http://www.agocontrol.com home automation
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« Reply #2 on: October 02, 2012, 02:04:19 am »

So you access the LMCE VPN with that device from another location?

I filled in the following info on the L2PT page:

Description: LMCE
Server: myserver.dyndns.com (my server name - at least this format)
Account: username
Password: my linuxmce password
secret: pre-shared key from the LMCE network page
Proxy: off

I still get a message along the lines of "the L2PT-VPN server is not responding" - any ideas?
Logged

davegravy
Guru
****
Posts: 451


View Profile
« Reply #3 on: October 02, 2012, 04:05:04 am »

Is this over 3g? I had this problem a while back and determined that my provider (rogers)  charges $10/month to allow vpn access. Something's about port blocking (but not tcp or udp ports).  My networking knowledge is lacking however.
Logged
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« Reply #4 on: October 02, 2012, 03:51:33 pm »

I use the VPN to connect elsewhere via both wifi and 3/4G
Logged

gonesurfing
Veteran
***
Posts: 61


View Profile
« Reply #5 on: October 05, 2012, 07:35:40 pm »

hi
I use a buffalo adsl+2modem/router running ddwrt software which has openvpn
it works for me
Logged
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« Reply #6 on: October 05, 2012, 10:11:27 pm »

So you are saying you do not use LMCE's VPN?

Does anybody use LinuxMCE's VPN with iPhone VPN Client?  Or does anybody use LinuxMCEs CPN with any device client?
Logged

polly
Veteran
***
Posts: 145


View Profile
« Reply #7 on: October 05, 2012, 10:27:15 pm »

Hey,

cant provide useful information.
i noticed, when i check the checkbox in LMCE-Admin -> Wizard -> Basic Info -> Users -> Can connect via VPN and clicked on "save" the checkbox was disabled again after reload.

I made it work somehow, i think it was in the php.ini settings (sorry, cant remember :-/ ).
If you need this information, let me know :-) ...

I tried it serveral times to connect with my iPhone iPad or Mac, no luck at all ...

This is what i get, when connecting via Mac build-in VPN:

Code:
tail -f /var/log/auth.log

Oct  5 23:23:41 dcerouter sshd[13503]: pam_sm_authenticate: Called
Oct  5 23:23:41 dcerouter sshd[13503]: pam_sm_authenticate: username = [jochen]
Oct  5 23:23:41 dcerouter sshd[13503]: Accepted password for jochen from 192.168.80.131 port 56673 ssh2
Oct  5 23:23:41 dcerouter sshd[13503]: pam_unix(sshd:session): session opened for user jochen by (uid=0)
Oct  5 23:24:01 dcerouter CRON[13869]: pam_unix(cron:session): session opened for user root by (uid=0)
Oct  5 23:24:03 dcerouter CRON[13869]: pam_unix(cron:session): session closed for user root

If you need details for iPhone or iPad, again, let me know :-)

cheers,
ochorocho
Logged
polly
Veteran
***
Posts: 145


View Profile
« Reply #8 on: October 20, 2012, 01:16:52 am »

nice ...

made VPN work somehow using this howto:
http://blog.riobard.com/2010/04/30/l2tp-over-ipsec-ubuntu

connection works locally using:
 - OS X Mountain Lion
 - iOS 5.0.1

Does not work on iOS 6 .... needs more testing.

Logged
polly
Veteran
***
Posts: 145


View Profile
« Reply #9 on: October 20, 2012, 01:36:27 am »

nice. .... does now work on iOS 6 too ...

 Roll Eyes

Where can i find the templates to integrate my changes into LinuxMCE?

Thanks

ochorocho
Logged
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« Reply #10 on: October 25, 2012, 03:36:05 pm »

Lat night I tried to get the system to work as describe in the link:
http://blog.riobard.com/2010/04/30/l2tp-over-ipsec-ubuntu

Most of the config files in LMCE are identical to the ones in the Blog.

/etc/ipsec.secrets is slightly different:

LMCE
Code:
%any %any:  PSK "YourSharedSecret"

the Blog
Code:
YOUR.SERVER.IP.ADDRESS   %any:  PSK "YourSharedSecret"

LMCE /etc/xl2tpd/xl2tpd.conf has an extra line:
Code:
name = LinuxMCE_VPN_Server

Code:
sudo ipsec verify

gave me a bunch of failures, these were resolved by running:

Code:
for each in /proc/sys/net/ipv4/conf/*
do
    echo 0 > $each/accept_redirects
    echo 0 > $each/send_redirects
done

I was looking to see if there were any tickets associated with the VPN and found that there was a change that Foxi352 did that should have addressed this:
http://svn.linuxmce.org/trac.cgi/changeset/24656

at the end of all this I still do not have a working VPN



Logged

polly
Veteran
***
Posts: 145


View Profile
« Reply #11 on: October 25, 2012, 03:51:51 pm »

hm .... will check this tonight...
And wat else i have done to make it work for me...
Logged
Pages: [1]
  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!