Outils pour utilisateurs

Outils du site


hack_internet_mobile

Ceci est une ancienne révision du document !


Internet Mobile

brancher

Brancher par cable USB au eeePC… sur le Nokia, choisir “PC SUITE”.

Dans les logs on voit ça:

Feb  1 17:58:20 tj-eeePC kernel: [   63.665586] usb 1-2: new full speed USB device using uhci_hcd and address 2
Feb  1 17:58:20 tj-eeePC kernel: [   63.669892] usb 1-2: configuration #1 chosen from 1 choice
Feb  1 17:58:20 tj-eeePC NetworkManager: <debug> [1233507500.386933] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_421_4f0_noserial').
Feb  1 17:58:22 tj-eeePC NetworkManager: <debug> [1233507502.211950] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_421_4f0_noserial_if0').
Feb  1 17:58:22 tj-eeePC kernel: [   65.700553] cdc_acm 1-2:1.10: ttyACM0: USB ACM device
Feb  1 17:58:22 tj-eeePC kernel: [   65.707535] usbcore: registered new interface driver cdc_acm
Feb  1 17:58:22 tj-eeePC kernel: [   65.708052] /build/buildd/linux-2.6.24/drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
Feb  1 17:58:22 tj-eeePC NetworkManager: <debug> [1233507502.459817] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_421_4f0_noserial_if1').
Feb  1 17:58:22 tj-eeePC kernel: [   65.763344] usbcore: registered new interface driver cdc_ether
Feb  1 17:58:22 tj-eeePC kernel: [   65.770646] usb 1-2: bad CDC descriptors
Feb  1 17:58:22 tj-eeePC kernel: [   65.771110] usbcore: registered new interface driver rndis_host
... <snip> ...

wvdial

installer

Il faut installer “wvdial” , car ce qui va etablir la connexion “PPP” over Nokia.

# aptitude update
# aptitude install wvdial

configurer (pour Orange)

Preparer la configuration en apportant les modifications suivantes dans /etc/wvdial.conf :

[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”orange”;
ISDN = 0
Modem Type = Analog Modem
Phone = *99***1#
username = orange
password = orange
Stupid Mode = 1

connecter

Dans un terminal:

$ pon.wvdial

(sinon: $ sudo wvdial )

deconnecter

Dans un autre terminal:

$ poff.wvdial

log

$ plog
Feb  1 18:50:11 tj-eeePC pppd[8996]: pppd 2.4.4 started by thierry, uid 1000
Feb  1 18:50:11 tj-eeePC pppd[8996]: Using interface ppp0
Feb  1 18:50:11 tj-eeePC pppd[8996]: Connect: ppp0 <--> /dev/ttyACM0
Feb  1 18:50:12 tj-eeePC pppd[8996]: PAP authentication succeeded
Feb  1 18:50:14 tj-eeePC pppd[8996]: Cannot determine ethernet address for proxy ARP
Feb  1 18:50:14 tj-eeePC pppd[8996]: local  IP address 10.36.151.52
Feb  1 18:50:14 tj-eeePC pppd[8996]: remote IP address 10.6.6.6
Feb  1 18:50:14 tj-eeePC pppd[8996]: primary   DNS address 194.51.3.56

Tips

dialer

On peut déclarer different section de “dialer” ainsi:

[Dialer SFR]
 ... blabla ...

Et puis a l'usage:

$ pon.wvdial SFR
:!: Il existe un bug: Il faut utiliser la même numérotation des chaines “Init” sinon, ca melange les config

SFR

config

Voici ma config, pour N95 ou N80 :

[Dialer SFR]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","wapsfr";
ISDN = 0
Modem Type = Analog Modem
Phone = *99***1#
username = dummy
password = dummy
Stupid Mode = 1
Idle Seconds = 3000
#Auto DNS = off
#Ask Password = 0
#Dial Command = ATD
#Carrier Check = no

(J'ai laissé quelque commentaire, car c'est pas super limpide !)

:!: Mais ça ne marche pas !

Parce que :

  1. SFR n'autorise que le surf sur le port 80 !!!
  2. Il faut changer le “user agent” du navigateur ! (firefox)

user agent

Pour changer le “user-agent”, j'ai installé le plugin “User agent switcher” , et créé un “user-agent” comme ca:

Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB/20.0.016; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413

proxy

On parle aussi de proxy, mais j'ai bien l'impression que ca fonctionne sans avoir besoin de changer la config.
Il y a sans doute un proxy transparent sur le chemin.

Le proxy (si necessaire) :

195.115.25.129:8080

Conclusion

Ca marche super chez Orange !

Reste a voir les surprises avec la facturation !!! :-\

performance

# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local XXXXXXXX port 5001 connected with 193.253.141.73 port 53435
[  4]  0.0-13.9 sec    160 KBytes  94.1 Kbits/sec
[  5] local XXXXXXXX port 5001 connected with 193.253.141.73 port 59690
[  5]  0.0-12.0 sec    176 KBytes    120 Kbits/sec
hack_internet_mobile.1233699426.txt.gz · Dernière modification : 2009/02/03 22:17 de thierry