SYMBIAN OS SECTION
  -My-Symbian.com-
MAEMO  SECTION
-My-Maemo.com-
MEEGO  SECTION
-My-MeeGo.com-
SOFTWARE STORECONTACT


My-Symbian.com Forums

 
My-Symbian ~ My-Maemo ~ My-MeeGo
Symbian & Linux based Communicator and Smartphone Info Center
The Oldest Symbian Community Website - Since 1999
 
 Watched TopicsWatched Topics   FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   RulesRules   Log inLog in 
Lightweight, simplified version of the forumsMobile version
Trying to make PPTP for Jolla

Go to page
1, 2, 3  Next

 
Post new topic   Reply to topic    My-Symbian ~ My-Maemo ~ My-MeeGo Forum Index -> Jolla Sailfish OS
View previous topic :: View next topic  
Author Message
Ketilk
Site supporter
Site supporter

Please add your avatar!

Joined: 19 Dec 2011

Posts: 506

Thanks received:
49 in 44 posts
Thanks given: 6


Phone: Jolla, N9 , N900, N97-mini

PostPosted: Sunday, 30.Mar.2014 17:35    Post subject: Trying to make PPTP for Jolla   Reply with quote   

I am currently trying to package pptpclient for Sailfish, but I got stuck when I found out Sailfish for N9 does not have the kernel module ppp_generic installed. I think Sailfish for Jolla has these modules built in so think it's no problem. I have compiled kernel modules for N9, but need more testing.

I am willing to provide my rpms now, but only if someone want to help me with testing it.

I have currently built these rpms:

    ppp-2.4.5-33.armv7hl.rpm (ported from fedora sources, with some modifications)
    pptp-1.8.0-1.armv7hl.rpm (ported from fedora sources, with some modifications)
    connman-pptp-1.15+git21-1.7.1.armv7hl.rpm(from jolla sources, with extra compile option)
    libpcap-1.4.0-3.1.1.armv7hl.rpm (rebuilt, no modifications, might not be required if repositories have it)
    pptp-setup-1.8.0-1.armv7hl.rpm (nice to have to make configuration, but doubt it's required)

Also made these, but think they are not required.

    connman-1.15+git21-1.7.1.armv7hl.rpm
    connman-configs-mer-1.15+git21-1.7.1.armv7hl.rpm
    connman-debuginfo-1.15+git21-1.7.1.armv7hl.rpm
    connman-debugsource-1.15+git21-1.7.1.armv7hl.rpm
    connman-devel-1.15+git21-1.7.1.armv7hl.rpm
    connman-docs-1.15+git21-1.7.1.armv7hl.rpm
    connman-pptp-1.15+git21-1.7.1.armv7hl.rpm
    connman-pptp-debuginfo-1.15+git21-1.7.1.armv7hl.rpm
    connman-test-1.15+git21-1.7.1.armv7hl.rpm
    connman-tracing-1.15+git21-1.7.1.armv7hl.rpm
    libpcap-1.4.0-3.1.1.armv7hl.rpm
    libpcap-debuginfo-1.4.0-3.1.1.armv7hl.rpm
    libpcap-debugsource-1.4.0-3.1.1.armv7hl.rpm
    libpcap-devel-1.4.0-3.1.1.armv7hl.rpm
    ppp-2.4.5-33.armv7hl.rpm
    ppp-debuginfo-2.4.5-33.armv7hl.rpm
    ppp-debugsource-2.4.5-33.armv7hl.rpm
    ppp-devel-2.4.5-33.armv7hl.rpm
    pptp-debuginfo-1.8.0-1.armv7hl.rpm
    pptp-debugsource-1.8.0-1.armv7hl.rpm



I have not started integrating pptp it into connman yet.

*I have edited this topic. Will keep you up to date with my progress. I had a question, but think I solved it myself.
Back to top

The following users say THANKS! for this post: Casanunda, naytsyrhc

Michal Jerz
Admin/Founder/Owner
Admin/Founder/Owner



Joined: 01 Sep 1999

Posts: 29334

Thanks received:
1073 in 681 posts
Thanks given: 285

Location: Poland
Phone: Jolla, BB Z10, BB Passport, N950, N900, N8, Nexus 4 (Ubuntu Touch), Lumia 920

PostPosted: Monday, 31.Mar.2014 17:55    Post subject:   Reply with quote   

I'd love to help with testing but I have no VPN to test it with. Maybe one of those who requested this feature can help?
Back to top
Casanunda
Site supporter
Site supporter



Joined: 01 Dec 2009

Posts: 433

Thanks received:
52 in 48 posts
Thanks given: 315


Phone: n900, Jolla

PostPosted: Monday, 31.Mar.2014 18:16    Post subject:   Reply with quote   

I have a company PPTP VPN I would like to connect to with my Jolla.

Great to see someone is trying to make it work!

How exactly can I help best?
Back to top
Ketilk
Site supporter
Site supporter

Please add your avatar!

Joined: 19 Dec 2011

Posts: 506

Thanks received:
49 in 44 posts
Thanks given: 6


Phone: Jolla, N9 , N900, N97-mini

PostPosted: Monday, 31.Mar.2014 21:53    Post subject:   Reply with quote   

I installed pptpd in a virtual machine, but it crashed the phone(bash not responsive, ssh not responsive, can reboot normally) so not sure if it's the server, my kernel modules(on nemo's n9 kernel that I recompiled for pptp support) or my client rpms that don't work. I did not configure the server for MPPE-support so it could be part of the reason. Could also be a 1.0.2.5 specific bug I encountered. Sailfish on n9 is not supported so it could be a n9 specific reason.

I have access to two real PPTP servers, but I don't know how to make my router forward pptp traffic. Can't put an ethernet cable in my n9 either.

I am uploading rpms now to my developer repository. I wonder, is libpcap(1.4 or greater) available in sailfishos repositories? It was not available for sailfish for n9 so I built it. It was available for the SDK however so I didn't upload it.

Configuration filename /etc/ppp/peers/workvpn or anything in that folder. You need to make the folder /etc/ppp/peers/ yourself:
Code:
#/etc/ppp/peers/workvpn
pty "pptp hostnameoripforpptpserver --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name usernameforlogin
remotename my-pptpd-server-required-me-to-write-pppd-here-but-my-other-pptp-provi der-do-not-care
ipparam my-pptpd-server-does-not-care-what-this-is
require-mppe-128
#log is always nice in case something goes wrong
logfile /etc/ppp/pptplog


File /etc/ppp/chap-secrets. The * in ip means from any ip-adress.
Code:

#/etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
 username remotename password *


Launch as root with a command like this
Code:

bash /usr/share/doc/ppp-2.4.5/scripts/pon workvpn


An alternative for doing all that work is to use the command line application pptp-setup. --domain is optional if your pptp doesn't require it. Maybe it even requires it is unset in some cases.

Code:

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

pptpsetup --create ketil --server 192.168.1.125  --domain abc --username ketil --password 1234 --encrypt --start
Back to top
Casanunda
Site supporter
Site supporter



Joined: 01 Dec 2009

Posts: 433

Thanks received:
52 in 48 posts
Thanks given: 315


Phone: n900, Jolla

PostPosted: Tuesday, 01.Apr.2014 11:16    Post subject:   Reply with quote   

great.

Unfortunately, I will be on a business trip the next three days (and need a working phone in that time), so I won't be able to test until the weekend.
Back to top
naytsyrhc
Site supporter
Site supporter



Joined: 21 Sep 2006

Posts: 882

Thanks received:
41 in 41 posts
Thanks given: 114

Location: Hamburg, Germany
Phone: History [/// R380s, SE P800, SE P910i, SE M600i, Nokia E71, Nokia N9], Current [Jolla]

PostPosted: Tuesday, 01.Apr.2014 13:04    Post subject:   Reply with quote   

I don't have a PPTP VPN solution here. I use OpenVPN and am currently testing SecureFishNet to try to connect to it.
Back to top
Casanunda
Site supporter
Site supporter



Joined: 01 Dec 2009

Posts: 433

Thanks received:
52 in 48 posts
Thanks given: 315


Phone: n900, Jolla

PostPosted: Thursday, 10.Apr.2014 18:31    Post subject:   Reply with quote   

installing went fine, trying to run pppd with
Code:
 pppd call myvpn


gets this error as result:
Code:
Warning: couldn't open ppp database /var/run/ppp/pppd2.tdb


EDIT: actually there is no subfolder "ppp" under "var/run/" on my device.

And I get the same error message when I invoke ppp using the sample script under /usr/share/docs.... you use in your post.
Back to top
Ketilk
Site supporter
Site supporter

Please add your avatar!

Joined: 19 Dec 2011

Posts: 506

Thanks received:
49 in 44 posts
Thanks given: 6


Phone: Jolla, N9 , N900, N97-mini

PostPosted: Thursday, 10.Apr.2014 20:25    Post subject:   Reply with quote   

Hmm, same error on sailfish-device as my N9 then. I solved the problem by manually
Code:
mkdir /var/run/ppp/
. Should probably make some stuff that ensures that directory exist.
Back to top
gipawu
My first post!
My first post!

Please add your avatar!

Joined: 06 Apr 2014

Posts: 1

Thanks received:
0 in 0 posts
Thanks given: 0


Phone: Nokia N9

PostPosted: Friday, 11.Apr.2014 12:50    Post subject:   Reply with quote   

Hi, I just found this thread googling.
Some time ago, I tried to make PPTP for Nokia N9, so I had to build PPP and PPTP packages and the missing kernel modules (I use kernel-plus as base).
I stuck into a trouble: when I start PPTP tunnel with
Code:
pppd call $TUNNEL logfd 2 nodetach debug dump

my N9 reboots just after this log message:
Code:
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x79c379fc> <pcomp> <accomp>]

Do you have any hints to solve this? Thank you.
Back to top
Casanunda
Site supporter
Site supporter



Joined: 01 Dec 2009

Posts: 433

Thanks received:
52 in 48 posts
Thanks given: 315


Phone: n900, Jolla

PostPosted: Friday, 11.Apr.2014 13:53    Post subject:   Reply with quote   

I get the same problem.
Back to top
Ketilk
Site supporter
Site supporter

Please add your avatar!

Joined: 19 Dec 2011

Posts: 506

Thanks received:
49 in 44 posts
Thanks given: 6


Phone: Jolla, N9 , N900, N97-mini

PostPosted: Friday, 11.Apr.2014 14:14    Post subject:   Reply with quote   

Thanks, I will try to figure something out.
Back to top
Casanunda
Site supporter
Site supporter



Joined: 01 Dec 2009

Posts: 433

Thanks received:
52 in 48 posts
Thanks given: 315


Phone: n900, Jolla

PostPosted: Friday, 11.Apr.2014 17:46    Post subject:   Reply with quote   

strange enough, on the first try after I created /var/log/ppp, apparently connection worked -
Code:
ifconfig
resulted in a network ppp0 being displayed.

Unfortunately, when I tried that, I was in the WIFI Network i tried to connect to via VPN, so I couldn't test if it really worked.

Next tries did not work, increasing loglevel like gipawu gave me the error that gipawu reported, with other "id=xxx" and "magic xxxxxxx" values.


Another thing: I just did the new OS update, now /var/run/ppp has disappeared again.
Is this only due to system update, or will directories under /var/run/ disappear after reboot?


---
Edit: I had the wrong directory path stated in the last sentence, I meant /var/run/ppp
Back to top
Casanunda
Site supporter
Site supporter



Joined: 01 Dec 2009

Posts: 433

Thanks received:
52 in 48 posts
Thanks given: 315


Phone: n900, Jolla

PostPosted: Friday, 06.Jun.2014 19:04    Post subject:   Reply with quote   

Just tried once more to get PPTP to work.


The directory /var/run/ppp disappears after every reboot.

When I add it manually, terminal output after issuing

Code:

pppd call <myvpn> logfd 2 nodetach debug dump

looks like this:
Code:

[...]
using channel 14
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xaa7b4959> <pcomp> <accomp>]
Script pptp <server.ip> finished (pid 10115), status = 0x0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xaa7b4959> <pcomp> <accomp>]
Modem hangup
Connection terminated.
using channel 15
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x6e664d0d> <pcomp> <accomp>]
Script pptp <server.ip> finished (pid 10134), status = 0x0
Modem hangup
Connection terminated.
using channel 16
[...]


and so on, until it finally gives up.
<mvpn> is a placeholder for my config name, <server.ip> is a placeholder for static IP adress of the server.
Back to top
Ketilk
Site supporter
Site supporter

Please add your avatar!

Joined: 19 Dec 2011

Posts: 506

Thanks received:
49 in 44 posts
Thanks given: 6


Phone: Jolla, N9 , N900, N97-mini

PostPosted: Saturday, 07.Jun.2014 03:05    Post subject:   Reply with quote   

I am going to make another try where I make new rpm files to see if that shows any improvement. I am not yet uploaded the new files, want to wait with that until I feel sure that it's an actual improvement.

It looks like the error we are facing is that it does not manage to do a config request. I have a pptpd server on my desktop and manage to connect to it with laptop, but not through sdk emulator. To fix the emulator I need to ensure that the routing allows pptp traffic to pass through. When I bridged the virtual machine to my local network instead of the builtin NAT, and set the ip-adress to a local one, then I managed to get access.

I am going to try to boot my n9 to sailfishos(still the old 1.0.2.5) and see if I manage to reproduce it there.
Back to top
Casanunda
Site supporter
Site supporter



Joined: 01 Dec 2009

Posts: 433

Thanks received:
52 in 48 posts
Thanks given: 315


Phone: n900, Jolla

PostPosted: Thursday, 14.Aug.2014 18:23    Post subject:   Reply with quote   

Have you had any chance to try something more?
Doesn't look like anything VPN related will be coming from Jolla soon...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    My-Symbian ~ My-Maemo ~ My-MeeGo Forum Index -> Jolla Sailfish OS All times are GMT + 2 Hours

Go to page
1, 2, 3  Next
Page 1 of 3

 
Jump to:  
View previous topic :: View next topic

Similar Topics on this forum
Topic Author Forum Replies Posted
No new posts Jolla in 2017 BentL Jolla Sailfish OS 1 Wednesday, 08.Feb.2017 17:43 View latest post
No new posts Jolla secures new financing for Sailfish OS development BentL Jolla Sailfish OS 1 Tuesday, 03.May.2016 11:17 View latest post
No new posts Jolla Adventures Kleuter Jolla Sailfish OS 0 Friday, 13.Nov.2015 19:30 View latest post
No new posts First wave of Jolla tablets arrive, further delay for rest Casanunda Jolla Sailfish OS 13 Friday, 09.Oct.2015 17:23 View latest post
No new posts What is Jolla up to? MeowTseDong Jolla Sailfish OS 5 Friday, 21.Aug.2015 21:48 View latest post
No new posts Jolla splitting into two companies and changing management N/A Jolla Sailfish OS 69 Wednesday, 08.Jul.2015 09:36 View latest post
No new posts What are those partnerships of Jolla in fact? Kleuter Jolla Sailfish OS 35 Saturday, 25.Apr.2015 13:55 View latest post
No new posts Sailfish OS 2.0 & Jolla Tablet on MWC Casanunda Jolla Sailfish OS 15 Tuesday, 03.Mar.2015 23:11 View latest post
No new posts The blog from Marc Dillon about the Jolla plans for 2015 spyder81 Jolla Sailfish OS 10 Monday, 26.Jan.2015 15:55 View latest post
No new posts official Jolla batteries in Jolla store Casanunda Jolla Sailfish OS 15 Tuesday, 09.Dec.2014 14:56 View latest post

Posting/discussing/exchanging warez/cracks/serial numbers/links to web sites offering such resources and/or any other illegal content
is FORBIDDEN on this forum and results in an immediate BAN.


Symbian and all Symbian-based marks and logos are trade marks of Symbian Software Limited.
This website is not in any way endorsed or supported by Symbian Software Limited.    (C) 2001 My-Symbian.com All Rights Reserved