Nov 25, 2009

Free Fast Internet Mobile Connection

Telecom provider starting to gain their compete in getting customer, they make rapid campaign to get customer, the new trend was introduced by reduce their cost to zero in voice service, its opposite with data services. One of Telecom provider in Indonesia introduced special offer, they launch 4 SIM on bundled, its allow you to make free call among them.

We need internet not only in the office, but also mobile connection in fast. Subscribe  to internet mobile provider is so complicated since they downgrade quota and more expensive. Using existing internet connection in office as our server is one of solutions. Just use a simple server to handle ppp connection from clients.

New idea for this feature is making internet connection via voice service, we speedy need internet connection on server side and a server. Linux is recommended to do it. Server will serve as NAS, you can implement a simple RAS / Dial-in server or maybe you need radius to handle many users on server site. Calling on server, server will provide new ppp connection (could be pptp or l2tp as well) for each client. Afterwards, make a simple routing to share your internet connection to each ppp via modem.

Speed of this connections are still considerable. Its depend on client's modem and signal availabilities on their coverage area. CDMA EVDO Rev. A is recommended to implement this idea. (because of Telecom provider that i mentioned before give a free call among their bundled SIM is use CDMA).

Clients just need to make a simple ppp connection as common with changed number of it's dial. The dial number should be same as server side SIM number.

Allowing conference among them is also allow to make 4 connections in concur. So maximum clients for each modem on server is 3 connections.

Other improvement of this idea is make changeable connection types on server via SMS. Client maybe just need to make ppp connection to access their private files on samba server or make other VPN via this connection. They can send sms to make internet or just ppp without internet connection. Kannel is installed on server to handle sms request with a simple bash script to change connection types.

keywords :
Kannel (mini smsc), VPN, pptp, RAS, NAS, Dial-in server, ppp
Read more ...

Nov 24, 2009

Install ZTE C261 as Modem on Ubuntu Karmic (9.10)

I already upgrade my OS and now use Karmic. On Jaunty, I modify line of menu.lst on /boot/grub, but there is any changes on Karmic, so i want to write it down here since Karmic was not use menu.lst any longer.

This method is commonly used to mount USB on first startup. Other methods are also applicable, such as usbserial "usbserial.vendor=0x05c6 usbserial.product=0x9004" or other.

fist: check the number of vendor and product of your modem, in this case i use ZTE C261 as Modem.

root@leptop# lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 064e:a101 Suyin Corp. Acer CrystalEye Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 004: ID 05c6:9004 Qualcomm, Inc.
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 009: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

second : edit your grub menu to recognize your USB device. Edit on /etc/default/grub, and changed it, see on source bellow.

root@leptop# vim /etc/default/grub
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbserial.vendor=0x05c6 usbserial.product=0x9004"

last : update your grub by running update-grub

root@leptop # update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin

okay, now you need to restart your computer, and you can use this device to make ppp connection via wvdial or other software.

At the startup,  you may need to run modprobe to load usbserial module to Linux kernel, and wvdialconf to create default configuration file of wvdial so that you can edit this file, as shown bellow :

root@leptop # modprobe usbserial vendor=0x05c6 product=0x9004
root@leptop # wvdialconf
root@leptop # vim /etc/wvdial.conf 

The wvdial should be like this :

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Baud = 460800
Idle Seconds = 300
Stupid Mode = 1
Compuserve = 0
Asl Password = 0
FlowControl = CRTSCTS
Dial Command = ATDT
Modem Type = Analog Modem
New PPPD = yes
Modem = /dev/ttyUSB1
ISDN = 0
Phone = #777
Password = smart
Username = smart

As default, this connection will reset every 50 minutes, so you also need to change value of lcp-echo-failure, here is my lcp-echo-failure value :

cat /etc/ppp/options | grep lcp
# lcp-echo-failure option to detect that the peer is no longer connected.
lcp-echo-interval 30
# option requires a non-zero value for the lcp-echo-interval parameter.
lcp-echo-failure 9999994
Read more ...