maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900 PPTP VPN with MPPE (https://talk.maemo.org/showthread.php?t=36172)

basp 2010-04-07 13:56

Re: N900 PPTP VPN with MPPE
 
Hi all,

I followed all information in this threat and managed to get a VPN connection. I have one chalange left: after connecting to the VPN I need to use a proxy server for my browser. Do you have any hints on how to set this up automatically, after connecting to the VPN?

Thanks in advance,

Bas

tom4_u 2010-04-25 19:45

Re: N900 PPTP VPN with MPPE
 
@ Big Phat Jan,

Thanks mate, you are great, but i m lost @ some stage

I did upto commenting the sub, and after that i do not know what to do

the only info i have abt my VPN connection is
it is PPTP, servername and credentials

Say my server name is : vpn.servername.com
usn: tom
pass: 123

how do i create a conf file and where do i place it and how do i make a tunnel

Thanks in advance

xuggs 2010-04-25 19:56

Re: N900 PPTP VPN with MPPE
 
I wish I knew how to play around with linux. Isn't there a gui or client for PPTP VPN for n00bs like me?

Big Phat Jan 2010-04-26 09:30

Re: N900 PPTP VPN with MPPE
 
Quote:

Originally Posted by tom4_u (Post 627348)
@ Big Phat Jan,

Thanks mate, you are great, but i m lost @ some stage

I did upto commenting the sub, and after that i do not know what to do

the only info i have abt my VPN connection is
it is PPTP, servername and credentials

Say my server name is : vpn.servername.com
usn: tom
pass: 123

how do i create a conf file and where do i place it and how do i make a tunnel

Thanks in advance

Hi Tom,

It's a while since I set mine up, but I think you need to use:

pptpsetup --create tunnelname --server vpn.servername.com --username tom --password 123 --encrypt

If you have been given a domain you can add "--domain domainname\\".

The point of pptpsetup is to create your configuration files, one of which will be /etc/ppp/peers/tunnelname if you want to check the script has run ok.

That done you can use the pppd command I gave in the post on page 2 and follow the instructions from there. Let us know how it goes!

Cheers,
Jan

Big Phat Jan 2010-04-26 09:41

Re: N900 PPTP VPN with MPPE
 
Quote:

Originally Posted by xuggs (Post 627362)
I wish I knew how to play around with linux. Isn't there a gui or client for PPTP VPN for n00bs like me?

I'm afraid not. You could try voting in the brainstorm here, and voting for the bug here, though that has been closed as "moved to brainstorm".

The closest I can find is from wrayb in this thread though I haven't tried it myself, and it sounds like it's only a little bit easier than following the instructions here.

Cheers,
Jan

xuggs 2010-04-26 09:58

Re: N900 PPTP VPN with MPPE
 
Thanks Jan really appreciate your help dude.

Will check it out from home. N900 is sweet and PPTP extensibility will be sugar sweet. I wonder if there are any paid apps for PPTP VPN.

si2ni 2010-04-28 22:56

Re: N900 PPTP VPN with MPPE
 
Hello Jan
Could you help me ?
I'm having the following error trying to connect in my org:
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1400> <auth eap> <magic 0x56175b9f> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:c0.a4.2d.69.81.6d.4b.d9.98.bd.e6.53.d7.12.08 .17.00.00.00.00]> < 17 04 00 1a>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth eap> <callback CBCP> <mrru 1614> < 17 04 00 1a>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
rcvd [LCP TermReq id=0x2 "V\027[\237\000<\315t\000\000\003\227"]
sent [LCP TermAck id=0x2]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
^CTerminating on signal 2
Script pptp 200.246.78.3 --nolaunchpppd finished (pid 1649), status = 0x0
sent [LCP TermReq id=0x2 "User request"]
Modem hangup
Connection terminated.

I used Ctrl C cos those messages didn't stop.

thx a lot

Marcelo

Big Phat Jan 2010-04-29 09:17

Re: N900 PPTP VPN with MPPE
 
Quote:

Originally Posted by si2ni (Post 632324)
Hello Jan
Could you help me ?
I'm having the following error trying to connect in my org:
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1400> <auth eap> <magic 0x56175b9f> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:c0.a4.2d.69.81.6d.4b.d9.98.bd.e6.53.d7.12.08 .17.00.00.00.00]> < 17 04 00 1a>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth eap> <callback CBCP> <mrru 1614> < 17 04 00 1a>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
rcvd [LCP TermReq id=0x2 "V\027[\237\000<\315t\000\000\003\227"]
sent [LCP TermAck id=0x2]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbed0c2ea> <pcomp> <accomp>]
^CTerminating on signal 2
Script pptp 200.246.78.3 --nolaunchpppd finished (pid 1649), status = 0x0
sent [LCP TermReq id=0x2 "User request"]
Modem hangup
Connection terminated.

I used Ctrl C cos those messages didn't stop.

thx a lot

Marcelo

Well it looks like you don't have the right credentials ("no auth is possible").

Check the contents of the following files and see whether your username, domain, and password are correct:

/etc/ppp/chap-secrets
/etc/ppp/peers/<tunnelname>

If you have a domain, make sure your username comes out as:

DOMAIN\\username

(with two slashes).

You'll need to be root to check the contents of these files. The easiest way to check them is to use "cat", which will print the contents of the file to the screen, i.e.

#become root
sudo gainroot

#check contents of chap-secrets
cat /etc/ppp/chap-secrets

#check contents of peers file
cat /etc/ppp/peers/<tunnelname>

#stop being root
exit

Cheers,
Jan

bigjonroberts 2010-05-06 14:25

Re: N900 PPTP VPN with MPPE
 
Thank you guys so much for creating this thread and sharing this information.

I am having some difficulties as well. I think I'm 90% of the way there, but I'm stumped at the moment.

I looked in the error log file in /var/log and it was empty. I have scoured the net and found a good resource here:

http://pptpclient.sourceforge.net/howto-diagnosis.phtml



here is an excert from my dbug output:

Quote:

/ # pppd call amerch logfd 2 nodetach debug dump
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
logfd 2 # (from command line)
dump # (from command line)
noauth # (from /etc/ppp/peers/amerch)
refuse-pap # (from /etc/ppp/peers/amerch)
refuse-chap # (from /etc/ppp/peers/amerch)
refuse-mschap # (from /etc/ppp/peers/amerch)
refuse-eap # (from /etc/ppp/peers/amerch)
name DOMAIN\\uname # (from /etc/ppp/peers/amerch)
# (from /etc/ppp/peers/amerch)
pty pptp nonya.bizniz --nolaunchpppd # (from /etc/ppp/peers/amerch)
crtscts # (from /etc/ppp/options)
# (from /etc/ppp/options)
asyncmap 0 # (from /etc/ppp/options)
lcp-echo-failure 4 # (from /etc/ppp/options)
lcp-echo-interval 30 # (from /etc/ppp/options)
hide-password # (from /etc/ppp/options)
noipdefault # (from /etc/ppp/peers/amerch)
defaultroute # (from /etc/ppp/peers/amerch)
replacedefaultroute # (from /etc/ppp/peers/amerch)
proxyarp # (from /etc/ppp/options)
usepeerdns # (from /etc/ppp/peers/amerch)
nobsdcomp # (from /etc/ppp/peers/amerch)
nodeflate # (from /etc/ppp/peers/amerch)
require-mppe-128 # (from /etc/ppp/peers/amerch)
noipx # (from /etc/ppp/options)
using channel 32
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfc214edd> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <mru 1400> <auth eap> <magic 0x7ffd19e4> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:c7.a0.9d.2b.5a.42.40.10.9b.03.a2.56.0a.5d.eb .c8.00.00.00.00]> < 17 04 85 7f>]
sent [LCP ConfRej id=0x0 <callback CBCP> <mrru 1614> < 17 04 85 7f>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfc214edd> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1400> <auth eap> <magic 0x7ffd19e4> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:c7.a0.9d.2b.5a.42.40.10.9b.03.a2.56.0a.5d.eb .c8.00.00.00.00]> < 17 04 85 7f>]
sent [LCP ConfRej id=0x1 <callback CBCP> <mrru 1614> < 17 04 85 7f>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfc214edd> <pcomp> <accomp>]

ric_amaral 2010-05-10 12:23

How to step by step
 
Hi everyone,

Since now we have the Kernel Power including PPTP issues, could someone give us a step by step to setup PPTP VPN?

I´m a beginner and at this moment I feel lost doing that. :confused:

I now it´s a matter of time to having a APP to make the things realy easy like "Mobile HotStpot" (in my oppinion the most usefull!)

zebowe 2010-05-10 21:57

Re: How to step by step
 
Quote:

Originally Posted by ric_amaral (Post 651733)
Hi everyone,

Since now we have the Kernel Power including PPTP issues, could someone give us a step by step to setup PPTP VPN?

I´m a beginner and at this moment I feel lost doing that. :confused:

I now it´s a matter of time to having a APP to make the things realy easy like "Mobile HotStpot" (in my oppinion the most usefull!)

Sounds like a great idea! It would be more then sweet if someone with the right brains and knowledge could explain how we use this new inbuilt kernel support. I need PPTP VPN to connect to my company network (and terminal server). Would be AWSOME if someone could get this to work (and make my N900 so much more usefull).

Thx in advance :)

rajil.s 2010-05-18 18:09

Re: N900 PPTP VPN with MPPE
 
I got pptp working with 3g, details here.

widowmad 2010-06-27 00:10

Re: N900 PPTP VPN with MPPE
 
Hi,

When i try to insmod the files i get "Invalid module format"
do i need to recompile them on my device?
Its the same for all modules

Quote:

Code:

# cd /lib/modules/2.6.28-omap1/
# depmod -a
# insmod slhc.ko
# insmod ppp_generic.ko
# insmod ppp_async.ko
# insmod sha1_generic.ko
# insmod ppp_mppe.ko


EG:
Code:

# insmod slhc.ko
insmod: error inserting 'slhc.ko': -1 Invalid module format

Code:

# dmesg | grep slhc
slhc: disagrees about version of symbol struct_module


clasificado 2010-06-27 02:50

Re: N900 PPTP VPN with MPPE
 
they need to match with your kernel.

those modules seems to be compiled against the default kernel module from nokia

if you are overclocking, you surely has installed the kernel-power from extras (also called titan kernel) and

1) the modules doesnt match with kernel-power, thats why they gives you an error
2) those modules are already compiled in the kernel, so you dont need to do anything about that, you can safely skip the insmod instructions

its you are not overclocking, install the kernel-power from extras. it does not overclock by default and also have the modules automatically applied.

widowmad 2010-06-28 19:26

Re: N900 PPTP VPN with MPPE
 
ah cool its working now i must have already had them.

now just need to sort the routing out. Any pointers for that?

widowmad 2010-06-28 19:52

Re: N900 PPTP VPN with MPPE
 
Cool i can vpn and ping the inside devices.

The last thing even tho its a small thing, is:

when i connect to the vpn it pushes all external data over that connection. Is there a way to automaticaly set it to only push that subnet over that vpn and the rest over my default gateway.

can i just change the line in /ett/ppp/peers/<profile> so it does it on connection?
change the "default route" to the correct route?

if not then i'll have to be content with just disconnecting vpn to direct connect from my local gateway.

cheers

and big thank you to Big Phat Jan for the run through!

:)

gykiss 2010-07-05 06:28

Re: N900 PPTP VPN with MPPE
 
Hi,

I am trying to setup my PPTP tunnel based on the step-by-step instructions, but I stucked at the beginning with the dpkg commands. I cannot install the pptp and ppp packages to my N900 downloaded from fanoush home page.
Does anyone have an idea, what can be missing? Seems only I have this problem.

Here is the error message I get:

Quote:

/usr/sbin # dpkg -i /home/user/MyDocs/pptp-linux_1.7.2-1_armel.deb
(Reading database ... 27799 files and directories currently installed.)
Preparing to replace pptp-linux 1.7.2-1 (using .../pptp-linux_1.7.2-1_armel.deb) ...
Unpacking replacement pptp-linux ...
dpkg: dependency problems prevent configuration of pptp-linux:
pptp-linux depends on ppp (>= 2.4.2); however:
Package ppp is not installed.
dpkg: error processing pptp-linux (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pptp-linux
/usr/sbin # dpkg -i /home/user/MyDocs/ppp_2.4.4rel-8osso4_armel.deb
(Reading database ... 27799 files and directories currently installed.)
Unpacking ppp (from .../ppp_2.4.4rel-8osso4_armel.deb) ...
Removing any system startup links for /etc/init.d/ppp ...
dpkg-deb (subprocess): short read in buffer_copy (failed to write to pipe in copy)
dpkg-deb: subprocess paste returned error exit status 2
dpkg: error processing /home/user/MyDocs/ppp_2.4.4rel-8osso4_armel.deb (--install):
short read in buffer_copy (backend dpkg-deb during `./usr/sbin/pppd')
Errors were encountered while processing:
/home/user/MyDocs/ppp_2.4.4rel-8osso4_armel.deb
/usr/sbin #
Also I have a second question, if the first is solved: how shall I set up the pptpsetup parameters if my VPN server doesn't support encryption? Is it enough if I don't give --encrypt parameter or something else is necessary too?

Thanks for your help!

cheers

proces 2010-08-09 10:51

Re: N900 PPTP VPN with MPPE
 
after run pptpsetup I have barewords:
Quote:

Bareword found where operator expected at /usr/sbin/pptpsetup line 234, near "delete the file /etc"
(Might be a runaway multi-line // string starting on line 193)
(Do you need to predeclare delete?)
String found where operator expected at /usr/sbin/pptpsetup line 235, near "contains "TUNNEL""
(Do you need to predeclare contains?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 235, near ""TUNNEL" as"
(Missing operator before as?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 237, near "--server"
(Missing operator before server?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 241, near "--domain"
(Missing operator before domain?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 245, near "--username"
(Missing operator before username?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 249, near "--password"
(Missing operator before password?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 254, near "--encrypt"
(Missing operator before encrypt?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 258, near "--start"
(Missing operator before start?)
Number found where operator expected at /usr/sbin/pptpsetup line 271, near "over 16"
(Do you need to predeclare over?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 275, near "//pptpclient"
(Missing operator before pptpclient?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 279, near "//pptpclient"
(Missing operator before pptpclient?)
Number found where operator expected at /usr/sbin/pptpsetup line 287, near ") 2006"
(Missing operator before 2006?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 287, near "2006 Nelson"
(Missing operator before Nelson?)
syntax error at /usr/sbin/pptpsetup line 234, near "delete the file /etc"
"use" not allowed in expression at /usr/sbin/pptpsetup line 247, at end of line
"use" not allowed in expression at /usr/sbin/pptpsetup line 251, at end of line
Search pattern not terminated at /usr/sbin/pptpsetup line 289.
what is wrong?

proces 2010-08-09 11:02

Re: N900 PPTP VPN with MPPE
 
some problem lines:
Quote:

sub Check_MPPE_in_pppd {
my $command = q/strings `which pppd`|grep -i mppe|wc --
my $answer = `$command`;
if ($answer > 0) {
#ok!
return 1;
} else {
return 0;
}
}

__END__

=head1 NAME

pptpsetup - Point-to-Point Tunneling Protocol setup

=head1 SYNOPSIS

pptpsetup --create <TUNNEL> --server <SERVER> [--domain <DOMAIN>]
--username <USERNAME> [--password <PASSWORD>]
[--encrypt] [--start]

pptpsetup --delete <TUNNEL>

=head1 DESCRIPTION

PPTP Client is a Linux, FreeBSD, NetBSD and OpenBSD client for the
proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP.

This script configures PPTP Client on Linux.

=head1 OPTIONS

=over 16

=item --create TUNNEL

create a tunnel named TUNNEL

=item --delete TUNNEL

delete the file /etc/ppp/peers/TUNNEL and any lines from
/etc/ppp/chap-secrets that contains "TUNNEL" as a single word

=item --server SERVER

the IP address or host name of the server

=item --domain DOMAIN

the authentication domain name (optional)

=item --username USERNAME

the username you are to use

=item --password PASSWORD

- pptpsetup 250/301 83%
thanks

lois76 2010-08-30 18:58

Re: N900 PPTP VPN with MPPE
 
Quote:

Originally Posted by fanoush (Post 423735)
OK, got it working to the point that pptp tunnel is up and i can ping the other end.

kernel modules : http://fanoush.wz.cz/maemo/modules-2...02-pptp.tar.gz
insmod order: slhc, ppp_generic, ppp_async, sha1_generic, ppp_mppe

pppd : http://fanoush.wz.cz/maemo/ppp_2.4.4...sso4_armel.deb
pptp-linux: http://fanoush.wz.cz/maemo/pptp-linux_1.7.2-1_armel.deb

I'm a n00b linux users trying to setup the pptp vpn. I have a problem:

When I try to install the: linux_1.7.2-1_armel.deb
my n900 App Manager says : unable to install ppp-linux incompatible application package

trying to install: ppp_2.4.4rel-8osso4_armel.deb
I get App Manager : Operation failed

I updated to the power kernel, but no idea what's I'm doing wrong..
Can anyone help?

Thanks
Lois

hiiragizawa 2010-09-28 03:00

Re: N900 PPTP VPN with MPPE
 
Quote:

Originally Posted by gykiss (Post 740906)
Hi,

I am trying to setup my PPTP tunnel based on the step-by-step instructions, but I stucked at the beginning with the dpkg commands. I cannot install the pptp and ppp packages to my N900 downloaded from fanoush home page.
Does anyone have an idea, what can be missing? Seems only I have this problem.

Here is the error message I get:



Also I have a second question, if the first is solved: how shall I set up the pptpsetup parameters if my VPN server doesn't support encryption? Is it enough if I don't give --encrypt parameter or something else is necessary too?

Thanks for your help!

cheers

Hi all,

I am not much of a linux user myself and I'm getting the same error as gykiss when i do dpkg -i ppp_2.4.4rel-osso4_armel.deb

How do I continue on from here?

gobloz 2010-09-29 05:52

Re: N900 PPTP VPN with MPPE
 
hi all...

i wanna connect to my office vpn, i can usually do this using my winxp notebook, create connection using the new connection wizard, then edit my registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\RasMan\Parameters\ProhibitIpSec to 1

i've tried to connect using my n900 from vpnc but it wasn't successful, is there any chance that this client works for my office vpn setting?

magu 2010-10-18 10:23

Re: N900 PPTP VPN with MPPE
 
i install

pptp-linux 1.7.2-1
ppp 2.4.4rel-8osso4
modules-2.6.28-20094102-pptp.tar.gz

i start pppd and this ends with Segmentation fault
can you help me?

Code:

Nokia-N900-51-1:/etc/ppp# pppd call gvpn logfd 2 nodetach debug dump
pppd options in effect:
debug        # (from command line)
nodetach        # (from command line)
logfd 2        # (from command line)
dump        # (from command line)
noauth        # (from /etc/ppp/options.pptp)
refuse-pap        # (from /etc/ppp/options.pptp)
refuse-chap        # (from /etc/ppp/options.pptp)
refuse-mschap        # (from /etc/ppp/options.pptp)
Segmentation fault


sajjji 2010-11-04 18:10

Re: N900 PPTP VPN with MPPE
 
Quote:

Originally Posted by gykiss (Post 740906)
Hi,

I am trying to setup my PPTP tunnel based on the step-by-step instructions, but I stucked at the beginning with the dpkg commands. I cannot install the pptp and ppp packages to my N900 downloaded from fanoush home page.
Does anyone have an idea, what can be missing? Seems only I have this problem.
Here is the error message I get:


Quote:

usr/sbin # dpkg -i /home/user/MyDocs/pptp-linux_1.7.2-1_armel.deb
(Reading database ... 27799 files and directories currently installed.)
Preparing to replace pptp-linux 1.7.2-1 (using .../pptp-linux_1.7.2-1_armel.deb) ...
Unpacking replacement pptp-linux ...
dpkg: dependency problems prevent configuration of pptp-linux:
pptp-linux depends on ppp (>= 2.4.2); however:
Package ppp is not installed.
dpkg: error processing pptp-linux (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pptp-linux
/usr/sbin # dpkg -i /home/user/MyDocs/ppp_2.4.4rel-8osso4_armel.deb
(Reading database ... 27799 files and directories currently installed.)
Unpacking ppp (from .../ppp_2.4.4rel-8osso4_armel.deb) ...
Removing any system startup links for /etc/init.d/ppp ...
dpkg-deb (subprocess): short read in buffer_copy (failed to write to pipe in copy)
dpkg-deb: subprocess paste returned error exit status 2
dpkg: error processing /home/user/MyDocs/ppp_2.4.4rel-8osso4_armel.deb (--install):
short read in buffer_copy (backend dpkg-deb during `./usr/sbin/pppd')
Errors were encountered while processing:
/home/user/MyDocs/ppp_2.4.4rel-8osso4_armel.deb
/usr/sbin #

i have this problem too !!!

help plz

sajjji 2010-11-05 05:12

Re: N900 PPTP VPN with MPPE
 
can help me anybuddy ???

sirpaul 2010-11-05 06:55

Re: N900 PPTP VPN with MPPE
 
try installing ppp first, then pptp ;)
and don't forget root

lfkfe 2010-12-13 02:54

Re: N900 PPTP VPN with MPPE
 
I'm using the powerkernel. But when i try to install the other packages it just says incompatible? any updates on the subject in general or is this the way its done?

Big Phat Jan 2010-12-13 09:58

Re: N900 PPTP VPN with MPPE
 
I think that the kernel modules are already present in the power kernel (you probably still need to insmod them).

I'm not going to have time to test this out until after Christmas though.

Cheers,
Jan

sirpaul 2010-12-15 18:54

Re: N900 PPTP VPN with MPPE
 
hi
i was following the instructions and got to the step where to delete the bit of code (without deleting i am getting also a message that it didnot work, but not one being that weird; going on i get this message (of course, i did it several times (deleting and trying) but the message did not really change):

Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# pptpsetup                                    Bareword found where operator expected at /usr/sbin/pptpsetup line 234, near "delete the file /etc"
  (Might be a runaway multi-line // string starting on line 193)
        (Do you need to predeclare delete?)
String found where operator expected at /usr/sbin/pptpsetup line 235, near "contains "TUNNEL""
        (Do you need to predeclare contains?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 235, near ""TUNNEL" as"
        (Missing operator before as?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 237, near "--server"
        (Missing operator before server?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 241, near "--domain"
        (Missing operator before domain?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 245, near "--username"
        (Missing operator before username?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 249, near "--password"
        (Missing operator before password?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 254, near "--encrypt"
        (Missing operator before encrypt?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 258, near "--start"
        (Missing operator before start?)
Number found where operator expected at /usr/sbin/pptpsetup line 271, near "over 16"
        (Do you need to predeclare over?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 275, near "//pptpclient"
        (Missing operator before pptpclient?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 279, near "//pptpclient"
        (Missing operator before pptpclient?)
Number found where operator expected at /usr/sbin/pptpsetup line 287, near ") 2006"
        (Missing operator before 2006?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 287, near "2006 Nelson"
        (Missing operator before Nelson?)
syntax error at /usr/sbin/pptpsetup line 234, near "delete the file /etc"
"use" not allowed in expression at /usr/sbin/pptpsetup line 247, at end of line
"use" not allowed in expression at /usr/sbin/pptpsetup line 251, at end of line
Search pattern not terminated at /usr/sbin/pptpsetup line 289.

my hope is that a) i am too stupid to read or b) bigphatjohn made a mistake everybody is correcting except me (of course of linuxskills i haven't got)

so a big thanks! for every one trying to help me!

bugzy 2010-12-19 21:25

Re: N900 PPTP VPN with MPPE
 
Quote:

Originally Posted by lfkfe (Post 895616)
I'm using the powerkernel. But when i try to install the other packages it just says incompatible? any updates on the subject in general or is this the way its done?

It does work with the power kernel. As Jan said, the kernel modules are already present in the power kernel but you still need to insmod them (This also means that you do not need download or extract the modules package). See Jan's post on page 2 but use :

Code:

# cd /lib/modules/2.6.28.10power46/
# depmod -a
# insmod slhc.ko
# insmod ppp_generic.ko
# insmod ppp_async.ko
# insmod sha1_generic.ko
# insmod ppp_mppe.ko

instead of the insmod section in those instructions. Note that the only change is the modules directory.
Hope this is some kind of helpful.

Big Phat Jan 2011-01-03 20:03

Re: N900 PPTP VPN with MPPE
 
Quote:

Originally Posted by sirpaul (Post 897540)
hi
i was following the instructions and got to the step where to delete the bit of code (without deleting i am getting also a message that it didnot work, but not one being that weird; going on i get this message (of course, i did it several times (deleting and trying) but the message did not really change):

Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# pptpsetup                                    Bareword found where operator expected at /usr/sbin/pptpsetup line 234, near "delete the file /etc"
  (Might be a runaway multi-line // string starting on line 193)
        (Do you need to predeclare delete?)
String found where operator expected at /usr/sbin/pptpsetup line 235, near "contains "TUNNEL""
        (Do you need to predeclare contains?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 235, near ""TUNNEL" as"
        (Missing operator before as?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 237, near "--server"
        (Missing operator before server?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 241, near "--domain"
        (Missing operator before domain?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 245, near "--username"
        (Missing operator before username?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 249, near "--password"
        (Missing operator before password?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 254, near "--encrypt"
        (Missing operator before encrypt?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 258, near "--start"
        (Missing operator before start?)
Number found where operator expected at /usr/sbin/pptpsetup line 271, near "over 16"
        (Do you need to predeclare over?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 275, near "//pptpclient"
        (Missing operator before pptpclient?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 279, near "//pptpclient"
        (Missing operator before pptpclient?)
Number found where operator expected at /usr/sbin/pptpsetup line 287, near ") 2006"
        (Missing operator before 2006?)
Bareword found where operator expected at /usr/sbin/pptpsetup line 287, near "2006 Nelson"
        (Missing operator before Nelson?)
syntax error at /usr/sbin/pptpsetup line 234, near "delete the file /etc"
"use" not allowed in expression at /usr/sbin/pptpsetup line 247, at end of line
"use" not allowed in expression at /usr/sbin/pptpsetup line 251, at end of line
Search pattern not terminated at /usr/sbin/pptpsetup line 289.

my hope is that a) i am too stupid to read or b) bigphatjohn made a mistake everybody is correcting except me (of course of linuxskills i haven't got)

so a big thanks! for every one trying to help me!

I'm not sure, but from the error message it looks like you've uncommented something you shouldn't have in the pptpsetup script near line 234. I haven't tried setting this up since PR1.3 so I can't say for sure. I will go through the process myself soon and will see if anything else suggests itself.

Cheers,
Jan

gykiss 2011-02-04 20:30

Re: N900 PPTP VPN with MPPE
 
Hi,

Recently i received an upgrade for my ppp package (most probably from devel repository) to version 2.4.5-2. The update went fine, but seems this package doesn't support "replacedefaultroute" parameter. The vpn is established, but without modifying the default route it is practically useless and doing it manually is also not really acceptable for me. At the end i went back to Fanoush' original version.
Anybody else has the same experience with this new package or do you know the new parameter, which does the same job? (Or simply shall i follow the generic rule "do not upgrade if it is working finel"? :-) )

maemo55 2011-02-22 09:05

Re: N900 PPTP VPN with MPPE
 
a gui please :(

bmx666 2011-04-19 14:18

Re: N900 PPTP VPN with MPPE
 
1 Attachment(s)
Hi
What is this error???
CAn Someone Make GUI or .sh file?
Thanks

davidm 2011-05-30 16:03

Re: N900 PPTP VPN with MPPE
 
Thanks to all for the very useful instructions and hints that have been posted in this thread and without which I'd never have got a working VPN.

Quote:

Originally Posted by gykiss (Post 936233)
do you know the new parameter, which does the same job

I got the routing to work (to have all traffic go over the VPN) by:

1) creating the directory /etc/ppp/ip-up.d

2) creating a file in this directory with the content:
Code:

#!/bin/sh
route add default gw $PPP_REMOTE dev $PPP_IFACE

(Note that the filename must not have any extension or it won't be executed.)

3) chmod +x this file

That's it!

From tests of running the PPTP VPN over a gprs0 connection, the VPN connection doesn't seem reliable in that after a while it disconnects. It might be due to inactivity timers but then I would have thought the 'persist' option would automatically reconnect. For this reason, it looks like it's best to launch the vpn in a terminal window with
pppd call <tunnelname> logfd 2 nodetach debug dump
so that one can easily check if it's still up.

Update:

On Wifi it's rock solid, however to get the routing working (again to have all the traffic go over the VPN) you need to add another line to the script:
Code:

#!/bin/sh
route del default dev wlan0
route add default gw $PPP_REMOTE dev $PPP_IFACE


Update 2:

For some unknown reason my N900 decided to show 'missing image' when booting up after having run out of juice. A reflash of the system didn't help, a reflash of the eMMC did. Unfortunately this meant that I lost all the changed I had made including setting up a vpn connection. In this new attempt, the system behaved somewhat differently.

First, I could not get pptp to launch a scrip in /etc/ppp/ip-up.d/ I tried changing the permissions, made sure that the script name had only alphanumerical characters (plus hyphen and underscore). Nothing would do.

Eventually I found it would run a script at /etc/ppp/ip-up so I created one. Here are my two scripts:

/etc/ppp/ip-up
Code:

#!/bin/sh
run-parts --arg="$1" --arg="$2" --arg="$3" --arg="$4" --arg="$5" --arg="$6" /etc/ppp/ip-up.d

/etc/ppp/ip-up.d/000defaultroute
Code:

#!/bin/sh
echo [1:"$1"] [2:"$2"] [3:"$3"] [4:"$4"] [5:"$5"] [6:"$6"] >/etc/ppp/params-$1.log
PPP_IFACE="$1"
PPP_REMOTE="$5"
route >>/etc/ppp/params-$1.log
route del default
echo route del default >>/etc/ppp/params-$1.log
route add default gw $PPP_REMOTE dev $PPP_IFACE
echo route add default gw $PPP_REMOTE dev $PPP_IFACE >>/etc/ppp/params-$1.log
route >>/etc/ppp/params-$1.log

(this includes some unnecessary but useful debugging info.)

For some reason, the DNS didn't seem to work even though I do have usepeerdns as an option and the debug info displayed by the launch of the pppd call shows that pppd got the right DNS info from my vpn server. /etc/ppp/resolv.conf was set to this values. /etc/resolv.conf however had just one entry set to localhost. By changing resolv.conf to
Code:

nameserver 4.2.2.1
nameserver 4.2.2.2

At that point, it all worked! If you don't want to use nameservers that work on any network then you may need to change this file in ip-up and restore it in ip-down.

(Like the first time, the vpn connection is not stable when on 3G.)

gdup 2012-03-19 13:55

Re: N900 PPTP VPN with MPPE
 
Can Somebody help me ?
I've established with VPN ever,But it doesn't work for me.
With the VPN,I could't reach Youtube yet.What's wrong with me?

Code:

pppd call myvpn logfd 2 nodetach debug dump

Nokia-N900:/etc/network/if-up.d# pppd call myvpn logfd 2 nodetach debug dump
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
logfd 2 # (from command line)
dump # (from command line)
noauth # (from /etc/ppp/peers/myvpn)
name vpnuser # (from /etc/ppp/peers/myvpn)
remotename myvpn # (from /etc/ppp/peers/myvpn)
# (from /etc/ppp/peers/myvpn)
pty pptp 204.165.10.102 --nolaunchpppd # (from /etc/ppp/peers/myvpn)
ipparam myvpn # (from /etc/ppp/peers/myvpn)
nobsdcomp # (from /etc/ppp/peers/myvpn)
nodeflate # (from /etc/ppp/peers/myvpn)
using channel 9
Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x810d35f> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xc6a8248f> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xc6a8248f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x810d35f> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xc6a8248f> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xc6a8248f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x810d35f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x810d35f> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x810d35f> <pcomp> <accomp>]
rcvd [CHAP Challenge id=0xa5 <f472141d1eb03349db2a971e269dea28862a57b736>, name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xa5 <76e4520a8891c0188f3a17cbfd787653>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xa5 <f472141d1eb03349db2a971e269dea28862a57b736>, name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xa5 <76e4520a8891c0188f3a17cbfd787653>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xa5 <f472141d1eb03349db2a971e269dea28862a57b736>, name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xa5 <76e4520a8891c0188f3a17cbfd787653>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xa5 <f472141d1eb03349db2a971e269dea28862a57b736>, name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xa5 <76e4520a8891c0188f3a17cbfd787653>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xa5 <f472141d1eb03349db2a971e269dea28862a57b736>, name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xa5 <76e4520a8891c0188f3a17cbfd787653>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xa5 <f472141d1eb03349db2a971e269dea28862a57b736>, name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xa5 <76e4520a8891c0188f3a17cbfd787653>, name = "vpnuser"]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x810d35f> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth chap MD5> <magic 0x78de9549> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x129b759b> <pcomp> <accomp>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth chap MD5> <magic 0x78de9549> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x129b759b> <pcomp> <accomp>]
rcvd [CHAP Challenge id=0xcd <1155c70e3577242e9b4756eaccdf434ea6d27d86abeaec> , name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xcd <c5454ac13f01695813659cef7626d2d5>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xcd <1155c70e3577242e9b4756eaccdf434ea6d27d86abeaec> , name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xcd <c5454ac13f01695813659cef7626d2d5>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xcd <1155c70e3577242e9b4756eaccdf434ea6d27d86abeaec> , name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xcd <c5454ac13f01695813659cef7626d2d5>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xcd <1155c70e3577242e9b4756eaccdf434ea6d27d86abeaec> , name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xcd <c5454ac13f01695813659cef7626d2d5>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xcd <1155c70e3577242e9b4756eaccdf434ea6d27d86abeaec> , name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xcd <c5454ac13f01695813659cef7626d2d5>, name = "vpnuser"]
rcvd [CHAP Challenge id=0xcd <1155c70e3577242e9b4756eaccdf434ea6d27d86abeaec> , name = "vpnserver"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xcd <c5454ac13f01695813659cef7626d2d5>, name = "vpnuser"]
rcvd [CHAP Success id=0xcd ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x1]
sent [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 178.17.1.1>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 178.17.1.1>]
rcvd [CHAP Success id=0xcd ""]
rcvd [IPCP ConfNak id=0x1 <addr 178.17.1.42>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 178.17.1.42>]
rcvd [CCP ConfAck id=0x1]
rcvd [CCP ConfReq id=0x2]
sent [CCP ConfAck id=0x2]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 178.17.1.42>]
local IP address 178.17.1.42
remote IP address 178.17.1.1

chiappa 2012-06-28 09:07

Re: N900 PPTP VPN with MPPE
 
Sorry to bump in but did someone achieve this using the Nokia N9 phone? I'm desperate for help... :) my thread here: Setting up L2TP/PPTP on the N9/Harmattan

TARIKO 2013-09-28 12:05

Re: N900 PPTP VPN with MPPE
 
Any news?
Any app?
Thanks in advance

mailcomx 2014-02-09 22:42

Re: N900 PPTP VPN with MPPE
 
Any app?
Thanks


All times are GMT. The time now is 03:27.

vBulletin® Version 3.8.8