Author Topic: VPN access via iPhone  (Read 9358 times)

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
VPN access via iPhone
« on: September 30, 2012, 10: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

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: VPN access via iPhone
« Reply #1 on: October 01, 2012, 09:56:49 am »
I use a cisco 1900 series router for that. I can help with the config.
rock your home - http://www.agocontrol.com home automation

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: VPN access via iPhone
« Reply #2 on: October 02, 2012, 03: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?

davegravy

  • Addicted
  • *
  • Posts: 551
    • View Profile
Re: VPN access via iPhone
« Reply #3 on: October 02, 2012, 05: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.

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: VPN access via iPhone
« Reply #4 on: October 02, 2012, 04:51:33 pm »
I use the VPN to connect elsewhere via both wifi and 3/4G

gonesurfing

  • Veteran
  • ***
  • Posts: 61
    • View Profile
Re: VPN access via iPhone
« Reply #5 on: October 05, 2012, 08:35:40 pm »
hi
I use a buffalo adsl+2modem/router running ddwrt software which has openvpn
it works for me

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: VPN access via iPhone
« Reply #6 on: October 05, 2012, 11: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?

polly

  • Administrator
  • Guru
  • *****
  • Posts: 209
    • View Profile
Re: VPN access via iPhone
« Reply #7 on: October 05, 2012, 11: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: [Select]
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

polly

  • Administrator
  • Guru
  • *****
  • Posts: 209
    • View Profile
Re: VPN access via iPhone
« Reply #8 on: October 20, 2012, 02: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.


polly

  • Administrator
  • Guru
  • *****
  • Posts: 209
    • View Profile
Re: VPN access via iPhone
« Reply #9 on: October 20, 2012, 02:36:27 am »
nice. .... does now work on iOS 6 too ...

 ::)

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

Thanks

ochorocho

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: VPN access via iPhone
« Reply #10 on: October 25, 2012, 04: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: [Select]
%any %any:  PSK "YourSharedSecret"

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

LMCE /etc/xl2tpd/xl2tpd.conf has an extra line:
Code: [Select]
name = LinuxMCE_VPN_Server
Code: [Select]
sudo ipsec verify
gave me a bunch of failures, these were resolved by running:

Code: [Select]
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




polly

  • Administrator
  • Guru
  • *****
  • Posts: 209
    • View Profile
Re: VPN access via iPhone
« Reply #11 on: October 25, 2012, 04:51:51 pm »
hm .... will check this tonight...
And wat else i have done to make it work for me...