Notices


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on May 2010
#51
Originally Posted by ric_amaral View Post
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.

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
 
Posts: 306 | Thanked: 106 times | Joined on Feb 2010
#52
I got pptp working with 3g, details here.
 

The Following User Says Thank You to rajil.s For This Useful Post:
Posts: 4 | Thanked: 1 time | Joined on Jun 2010
#53
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

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

Last edited by widowmad; 2010-06-27 at 00:21.
 

The Following User Says Thank You to widowmad For This Useful Post:
clasificado's Avatar
Posts: 466 | Thanked: 180 times | Joined on Feb 2010
#54
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.
 
Posts: 4 | Thanked: 1 time | Joined on Jun 2010
#55
ah cool its working now i must have already had them.

now just need to sort the routing out. Any pointers for that?
 
Posts: 4 | Thanked: 1 time | Joined on Jun 2010
#56
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!

 
Posts: 5 | Thanked: 0 times | Joined on Jul 2010
#57
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:

/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
 
Posts: 21 | Thanked: 1 time | Joined on Aug 2010
#58
after run pptpsetup I have barewords:
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?
 
Posts: 21 | Thanked: 1 time | Joined on Aug 2010
#59
some problem lines:
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
 
Posts: 1 | Thanked: 0 times | Joined on Aug 2010
#60
Originally Posted by fanoush View Post
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
 
Reply

Tags
vpn pptp mppe n900

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:36.