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

Main Menu

VPN access via iPhone

Started by Techstyle, September 30, 2012, 10:16:25 PM

Previous topic - Next topic

Techstyle

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
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

hari

I use a cisco 1900 series router for that. I can help with the config.
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Techstyle

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?
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

davegravy

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

I use the VPN to connect elsewhere via both wifi and 3/4G
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

gonesurfing

hi
I use a buffalo adsl+2modem/router running ddwrt software which has openvpn
it works for me

Techstyle

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?
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

polly

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:


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

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

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

::)

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

Thanks

ochorocho

Techstyle

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
%any %any:  PSK "YourSharedSecret"


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


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

sudo ipsec verify

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

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



Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

polly

hm .... will check this tonight...
And wat else i have done to make it work for me...