Lien: http://doc.ubuntu-fr.org/telephone_modem
Avec orange: http://www.equinoxefr.org/post/2008/07/02/ubuntu-3g-et-nokia-n95-avec-orange/
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> ...
Il faut installer “wvdial” , car ce qui va etablir la connexion “PPP” over Nokia.
# aptitude update # aptitude install wvdial
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
Dans un terminal:
$ pon.wvdial
(sinon: $ sudo wvdial
)
Dans un autre terminal:
$ poff.wvdial
$ 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
On peut déclarer different section de “dialer” ainsi:
[Dialer SFR] ... blabla ...
Et puis a l'usage:
$ pon.wvdial SFR
![]() |
Lien: http://www.boutidos.net/blog/index.php?post/2008/09/09/HowTo-%3A-Internet-3G-on-laptop-with-N95
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 !)
![]() |
Parce que :
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
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
[Dialer Bouygtel] Modem = /dev/ttyACM0 Baud = 460800 Init1 = ATZ #Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init2 = Init3 = AT+CGDCONT=1,"IP","ebouygtel.com"; ISDN = 0 Modem Type = Analog Modem Phone = *99***1# username = dummy password = dummy Stupid Mode = 1 #Auto DNS = off #Ask Password = 0 #Dial Command = ATD Idle Seconds = 3000 #Carrier Check = no
“Init2” a été supprimé parce que j'ai utilisé un Samsung (iPhone Killer dont je ne sais plus la marque) a la place d'un N95 (ou N81 ).
Et ca marche seulement en “www” , et, contrairement à SFR, sans devoir bidouiller le “user-agent”.
Ca marche super chez Orange !
Reste a voir les surprises avec la facturation !!!
Un petit bilan:
Operateur | www | www User-agent | autres ports |
Orange | Oui | pas besoin | Oui |
SFR | Oui | Hélas oui | Non |
Bouygtel | Oui | pas besoin | Non |
Le gagnant est Orange.
Les autres sont disqualifiés, car ils ne fournissent pas d'accès à Internet, mais une simple connexion pour naviguer sur le web.
![]() C'est peut ça, la différence. |
![]() |
# 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
Autre port:
# iperf -s -p 81 ------------------------------------------------------------ Server listening on TCP port 81 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local XXXXXXXXX port 81 connected with 193.253.141.73 port 16816 [ 4] 0.0-12.0 sec 144 KBytes 98.3 Kbits/sec [ 5] local XXXXXXXXX port 81 connected with 193.253.141.73 port 23718 [ 5] 0.0-12.6 sec 136 KBytes 88.7 Kbits/sec
Autre port:
# iperf -s -p 8080 ------------------------------------------------------------ Server listening on TCP port 8080 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local XXXXXXXXX port 8080 connected with 193.253.141.73 port 10604 [ 4] 0.0-14.2 sec 176 KBytes 102 Kbits/sec
Evidement, avec nos opérateurs, l'Internet coute trés cher, notamment le mail !!!
Donc, on va utiliser une connexion VPN pour faire transiter tous Internet… et ainsi, Orange ne va pas me compter le nombre de mails et me facturer 1 euro le méga-octet !
Ce que je fais.
Je connecte mon téléphone sur le réseau “Internet” Orange…
# pon.wvdial
Je démarre le client VPN:
# openvpn --config <ma_conf_vpn.conf>
Le routage ne fonctionne pas comme prévu (c'est pas ma faute), donc, à la main (ou avec un scripte) et dans un autre terminal:
#!/bin/sh # --pour debug-- [ -n "$MODE" ] || MODE="$1" case "$MODE" in start) route del default gw 0.0.0.0 dev ppp0 route add -net <IP_PUBLIC_DU_SERVEUR_VPN> netmask 255.255.255.255 gw 10.6.6.6 route add default gw 10.21.0.30 /sbin/ip route flush cache mv /etc/resolv.conf /etc/resolv.conf-bak echo "nameserver 212.27.40.240" > /etc/resolv.conf echo "nameserver 212.27.40.241" >> /etc/resolv.conf ;; stop) mv /etc/resolv.conf-bak /etc/resolv.conf route del default gw 10.21.0.30 route del -net <IP_PUBLIC_DU_SERVEUR_VPN> netmask 255.255.255.255 gw 10.6.6.6 route add default dev ppp0 /sbin/ip route flush cache ;; esac
Où:
10.6.6.6 | la passerelle proposé par Orange |
10.21.0.30 | l'IP a l'autre bout du tunnel VPN |
ppp0 | l'interface du modem/telephone |
212.27.40.240 | le DNS qui va bien |
En local, mon IP est 10.21.0.29, mais on s'en fout.
Et voila.
# ./vpn-orange start
… et a la fin… on fait l'inverse (ou pas):
# ./vpn-orange stop [Ctrl]+C dans le terminal openvpn # poff.wvdial