maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Pptp Vpn? (https://talk.maemo.org/showthread.php?t=13725)

CarSalesman 2007-12-23 19:44

Pptp Vpn?
 
We use a PPTP VPN to our router at the office. Is there software to do this on the N800, preferably using OS2008?

technut 2007-12-23 19:56

Re: Pptp Vpn?
 
Fanoush (one of the regulars here) has some info about PPTP here:
http://fanoush.wz.cz/maemo/#pptp

linuxrebel 2007-12-23 22:01

Re: Pptp Vpn?
 
Myself, I've beeen waiting ffoor the chaos to end, but yes go to http://maemo.lancode.de and he has the needed pptp client software. Now what I don't yet know is if the OS2008 kernel includes mppe (micrsoft point to point encription[?]) built in. If so you can config things and run, if not you'll have to wait for a 3rd party kernel.

iskarion 2008-01-06 20:07

Re: Pptp Vpn?
 
Hi,

I have flashed fanoush's 2.2007.50-2 kernel with MPPE support an I'm currently trying to load the corresponding modules - though with limited success so far.

According to Fanoush's description the modules arc4, sha1 and ppp_mppe need to be loaded, which doesn't work due to unresolved dependencies.
http://fanoush.wz.cz/maemo/#pptp

Via dmesg output I was able to figure out, that first the crypto_algapi module has to be loaded before arc4 and sha1 can be loaded. But I still don't know, what the prerequisites for ppp_mppe are.

insmod ppp_mppe just gives a

Code:

insmod: cannot insert '../drivers/net/ppp_mppe.ko': No such device (-1): No such device
No further hint in dmesg what exactly is missing. To bad modprobe/depmod is broken on the N800. :(

Currently I have the following modules loaded

Code:

sha1 2400 0 - Live 0xbf05e000
arc4 1760 0 - Live 0xbf05c000
crypto_algapi 10176 2 sha1,arc4, Live 0xbf058000
g_file_storage 27560 0 - Live 0xbf050000
cx3110x 56200 0 - Live 0xbf041000
umac 258788 1 cx3110x, Live 0xbf000000 (P)

Any idea which module I have to load first before I can load ppp_mppe?

Solved
I found a working lsmode sequence:

crypto_algapi
arc4
sha1
cryptomgr
blkcipher
cbc
pcbc
ecb
ppp_mpp3

fanoush 2008-01-06 21:15

Re: Pptp Vpn?
 
I have not tried in OS2008 yet, just enabled it in kernel. Thanks for figuring out the module list. Will add it to missing OS2008 section for others. Did you manage to connect?

iskarion 2008-01-07 07:20

Re: Pptp Vpn?
 
Quote:

Originally Posted by fanoush (Post 122077)
Did you manage to connect?

Yes. Didn't do extensive tests so far and also routing is not yet setup, but connecting to a PPTP server with 128-bit MPPE encryption and MS-CHAPv2 authentication seems to work fine.

Just disconnecting via poff is not working.

linuxrebel 2008-01-10 12:03

Re: Pptp Vpn?
 
Ok,

I know why poff doesn't work. On line 40 of /usr/bin/poff, the word getopts is a bash not ash command. go here. and get a bash install that works around the busybox conflict and then you can change the #!/bin/sh at the start of poff and pon to #!/bin/bash.

tvogel 2008-01-23 22:17

Re: Pptp Vpn?
 
Hi!

I think, these are not strictly necessary:

Quote:

Originally Posted by iskarion (Post 122042)
cbc
pcbc

At least it works for me without them.

Tilman

tvogel 2008-02-06 15:25

Re: Pptp Vpn?
 
BTW, I had problems with DNS and PPTP on OS 2007 (HE) and found the solution:

/etc/ppp/ip-up.local was called with the umask set such that /tmp/resolv.conf.ppp0 was created with 0600 permissions. dnsmasq running as "nobody" couldn't read it and stopped answering DNS queries.

Solution: Insert
Code:

chmod 644 $RESOLV_CONF
before the end of the first "if" block in /etc/ppp/ip-up.local

This problem is fixed in OS 2008 btw.

Maybe this is useful for some people...

kidalien745 2008-03-11 21:09

Re: Pptp Vpn?
 
What do I do if i can't even insmod crypto_algapi.ko? I'm screwed aren't I...

I'm using OS2008 2.2007.51-3 and I get the error message:

insmod: cannot insert 'crypto_algapi.ko': Unknown symbol in module (-1): No such file or directory

I'll keep messing around with it, but I'm not incredibly optimistic. Just thought this should be documented haha.

-alien

EDIT: Nevermind, I'm an idiot.


All times are GMT. The time now is 14:56.

vBulletin® Version 3.8.8