Connecting Huawei E1732 3G usb modem to Internet in Debian

For some reason Network manager detects my modem but does not connect it. After adding udev rules nothing happened. Finally I ran across this script called Sakis3G which claimed to be a script working for multiple devices. It worked.

Configuration for Sakis3G

Connect the modem to USB

Download Sakis3G. Choose the i386 version.

chmod +x sakis3g
./sakis3g --interactive

 

Choose action for Sakis3G script: Connect with 3G

Modem category: USB device

USB device: Huawei mobile

Interface: Interface #0

Select APN: Internet (for Idea 3G)

Username: u (anything will do)

Password: p (anything will do)

 

Finally it says E173 connected to Idea

 

Connection Info

Connection Information

Interface: P-t-P (ppp0)

Connected since: 2012-12-02 11:02
Kilobytes received: 1634
Kilobytes sent: 194

Network ID: 40419
Operator name: !dea
APN: internet
internet

Modem: E173
Modem type: USB
Kernel driver: option
Device: /dev/ttyUSB0

IP Address: 1.187.159.6
Subnet Mask: 255.255.255.255
Peer IP Address: 10.64.64.64
Default route(s): 10.64.64.64