Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Establishing a ppp connection to linux

3 replies · 6,431 views · Started 04 December 2006

Hi,

I am trying to establish a ppp connection with a linux box using the usb cable.

Here is my pppd peer definition :

/dev/ttyACM0
noauth
debug
460800
crtscts
passive
lock
local
proxyarp
ipcp-accept-local
ipcp-accept-remote
ms-dns 169.254.1.65
169.254.1.65:169.254.1.66

I have a local dns cache that resolves wsockhost.mrouter to 169.254.1.65 :

$ dig wsockhost.mrouter

; <<>> DiG 9.3.2 <<>> wsockhost.mrouter
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1828
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;wsockhost.mrouter. IN A

;; ANSWER SECTION:
wsockhost.mrouter. 0 IN A 169.254.1.65

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Dec 4 16:14:26 2006
;; MSG SIZE rcvd: 51

But the M600i keeps terminating the connection :

pppd 2.4.4 started by franck, uid 1000
Dec 4 14:55:18 feuille pppd[10440]: Using interface ppp0
Dec 4 14:55:18 feuille pppd[10440]: Connect: ppp0 <--> /dev/ttyACM0
Dec 4 14:55:21 feuille kernel: [17180615.308000] PPP BSD Compression module registered
Dec 4 14:55:21 feuille kernel: [17180615.368000] PPP Deflate Compression module registered
Dec 4 14:55:21 feuille pppd[10440]: local IP address 169.254.1.65
Dec 4 14:55:21 feuille pppd[10440]: remote IP address 169.254.1.66
Dec 4 14:55:21 feuille pppd[10440]: LCP terminated by peer
Dec 4 14:55:21 feuille pppd[10440]: Connect time 0.0 minutes.
Dec 4 14:55:21 feuille pppd[10440]: Sent 119 bytes, received 123 bytes.
Dec 4 14:55:24 feuille pppd[10440]: Connection terminated.
Dec 4 14:55:24 feuille pppd[10440]: Modem hangup
Dec 4 14:55:24 feuille pppd[10440]: Exit.

Any hint ?

Thanks,
Franck

PS : this config works with a P910i with bluetooth, and with usb cradle after adding a "mrouter are you there" chat.

Hi,

I reply to myself...

In fact this works. It establishes a PPP connection, that only tend to break quite quickly... Maybe there is a timeout somewhere... I still must investigate on this, but anyway I get a connection that lives for a few minutes at least. So I can try to use it...

BUT, I also have another question, on synchronisation.

I have a TCP/IP connection over the USB cable.
I have a sync server (Funambol) running on my linux box.

I can configure the M600i to use the right url to sync : http://169.254.1.65/funambol/ds

But I don't succed in telling the M600i to use that connection; It keeps trying to open a GPRS connection, and doesn't seem to want to use the established ppp connection over the usb cable.

Any hint ?

Franck

Hi Franck,

Im trying to do the same. Ive set up a bluetooth connection which is working and after issuing the " pppd -d -detach call m600i-bluez" command Im getting this output:
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
.
.
.
<ms-dns1 192.168.99.98> <ms-dns3 192.168.99.98>]
Cannot determine ethernet address for proxy ARP
local IP address 192.168.99.98
remote IP address 192.168.99.99
Script /etc/ppp/ip-up started (pid 10260)
Script /etc/ppp/ip-up finished (pid 10260), status = 0x0
rcvd [LCP TermReq id=0x3]
LCP terminated by peer
Connect time 0.0 minutes.
Sent 119 bytes, received 123 bytes.
Script /etc/ppp/ip-down started (pid 10265)
sent [LCP TermAck id=0x3]
Script /etc/ppp/ip-down finished (pid 10265), status = 0x0
Connection terminated.
Modem hangup

So it seems Im having the same problem like you. But you wrote in your second thread, the connection stays up some time. So what did you do to get it work longer than 0.0 minutes?

Ive tryied to include a chat like the one on this side: http://p800.gesel.nu/
But than the pppd outputs only: Connect script failed. However, the earth icon remains some time on the display of the phone. Could that be the right way?

Maybe we can solve this problem together. It starts annoying me.

Kind regards
Torsten

PS: my peer file
connect "/usr/sbin/chat -v -f /etc/ppp/peers/m600i-bluez.chat"
/dev/rfcomm0
debug
passive
local
proxyarp
noauth
modem
ms-dns 192.168.99.98
192.168.99.98:192.168.99.99

my chat file
"" "." "Are you there?~" "~mRouter - I'm here~"

Hi Torsten,

the difference between my first and second message is I made sure my firewall was down...

As I understand it, the mrouter "protocol" needs to be able to find a wsockhost.mrouter server. So you have to set up a dns server on the linux box that resolves this host name to the linux end of the ppp connection.
If the m600 can't find wsockhost.mrouter, it closes the connection... I thinks that is what was happening for me first (so I made sure netfilter was not preventing the m600 to use my local dns server).

In a previous version of the "protocol", you also needed a chat script, but this was apparently abandonned in the version used in the m600 (so no need for chat script, as was necessary for the P800, P900, P910 series).

Does this help ?

Franck