LinuxMCE Forums

General => Users => Topic started by: Techstyle on September 30, 2012, 10:16:25 pm

Title: VPN access via iPhone
Post by: Techstyle 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
Title: Re: VPN access via iPhone
Post by: hari on October 01, 2012, 09:56:49 am
I use a cisco 1900 series router for that. I can help with the config.
Title: Re: VPN access via iPhone
Post by: Techstyle 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?
Title: Re: VPN access via iPhone
Post by: davegravy 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.
Title: Re: VPN access via iPhone
Post by: Techstyle on October 02, 2012, 04:51:33 pm
I use the VPN to connect elsewhere via both wifi and 3/4G
Title: Re: VPN access via iPhone
Post by: gonesurfing 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
Title: Re: VPN access via iPhone
Post by: Techstyle 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?
Title: Re: VPN access via iPhone
Post by: polly 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
Title: Re: VPN access via iPhone
Post by: polly 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.

Title: Re: VPN access via iPhone
Post by: polly 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
Title: Re: VPN access via iPhone
Post by: Techstyle 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 (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 (http://svn.linuxmce.org/trac.cgi/changeset/24656)

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



Title: Re: VPN access via iPhone
Post by: polly 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...