Active Topics

 



Notices


Reply
Thread Tools
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#71
Originally Posted by sirpaul View Post
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
 

The Following User Says Thank You to Big Phat Jan For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Jul 2010
#72
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"? :-) )
 
Posts: 110 | Thanked: 31 times | Joined on Jan 2011
#73
a gui please
 
Posts: 5 | Thanked: 3 times | Joined on Feb 2011
#74
Hi
What is this error???
CAn Someone Make GUI or .sh file?
Thanks
Attached Images
 

Last edited by bmx666; 2011-04-19 at 14:23.
 
Posts: 1 | Thanked: 2 times | Joined on May 2011 @ London
#75
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.

Originally Posted by gykiss View Post
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.)

Last edited by davidm; 2011-07-03 at 17:02. Reason: A new install after reflashing the eMMC
 

The Following 2 Users Say Thank You to davidm For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Mar 2012
#76
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's Avatar
Posts: 52 | Thanked: 19 times | Joined on Jan 2010
#77
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
 
Posts: 24 | Thanked: 10 times | Joined on Mar 2012 @ Spain
#78
Any news?
Any app?
Thanks in advance
 
mailcomx's Avatar
Posts: 94 | Thanked: 33 times | Joined on Sep 2010
#79
Any app?
Thanks
__________________
N900, 64gigas, xlv 250 - 805mhz, CSSU testing Kernel Power.
 
Reply

Tags
vpn pptp mppe n900


 
Forum Jump


All times are GMT. The time now is 15:51.