Wednesday, December 1, 2010

Share Internet Connection in Ubuntu By GUI

Koneksi internet via 3G/HSDPA dan CDMA/EVDO juga bisa di-share
Internet connection via 3G/HSDPA and CDMA / EVDO can also be shared

Imagine you are with a friend you're browsing (with a laptop each) in a cafe that provides internet facility through Wi-Fi. For some reason, suddenly the internet connection was disconnected and cafe waitress said that they experience connection problems from the provider. You yourself have anticipated this situation by bringing a 3G modem (and packet data), but what about your friends who do not bring the modem? How do I share a 3G Internet connection via modem it with your friends?

On Ubuntu before 9:10 or longer version, Internet connection sharing is usually done with iptables method. This method can be applied very well indeed, but apparently not friendly for general users. Well, since Ubuntu 9.10 and above, NetworkManager (GUI to set the network configuration) on Ubuntu has been updated with the functionality to make sharing an Internet connection more easily. Here's a brief guide to do it.

I myself use Ubuntu 10.04 Lucid Lynx 32-bit, internet connection via modem EVDO with Smart, and sharing a connection through a Wi-Fi ad-hoc. Laptop that has internet connection via modem will I refer to as the HOST, and laptop or other device that uses the internet connection be shared I will call CLIENT.

(If necessary, read my post about the 3G/HSDPA internet connection via modem or CDMA / EVDO in Ubuntu)

First, make sure that the HOST has been connected to the internet. In this example, the Smart Internet connection has been connected to the HOST.
Koneksi internet pada HOST telah berhasil dilakukan
The internet connection on the HOST has been successfully performed

Next, we will create a network of Wi-Fi ad-hoc new to to share the internet connection. Click the Network Manager applet (located at the top right of the screen on Ubuntu), and select "Create New Wireless Network". Fill in the "UbuntuAdhoc" in the Network name, and "WEP" (not WPA) for wireless security, then fill in a keyword in the Key to protect access to these ad-hoc network. After that, click on "Create".

Notice that the keyword of the Key must be composed of rows of hexadecimal characters (0-9 and AF). The number of characters is also limited to a certain value. For example, in this example I use the Key "1234567890", amounting to 10 characters.
Membuat jaringan Wi-Fi ad-hoc baru
Creating a Wi-Fi ad-hoc new

If you use a name other than "UbuntuAdhoc" for the Network name, you must set the ad-hoc connection first. Right click on the NetworkManager applet, select "Edit Connections". On the tab "Wireless", select an ad-hoc connection that you created earlier, then click "Edit".

Atur konfigurasi jaringan ad-hoc
Manage ad-hoc network configuration

On the tab "IPv4 Settings", set the Method to "Shared to other computers", then click "Apply ", then click "Close " to close the network configuration window.

Shared to other computers
Shared to other computers

After that, do the connection to the ad-hoc network is the HOST. Way, click the NetworkManager applet and select an ad-hoc network that you created earlier, for example, "UbuntuAdhoc". After connecting to an ad-hoc network is successfully done, now is the time CLIENT to connect to an ad-hoc network. Once the connection is successful, then the Client is connected to the internet of the HOST.

I myself have tried this, and I was able to share internet connection on my laptop via modem EVDO Smart to the netbook and my 3G iPhone. Hope helps and good luck! ^ ^
Referensi: Ubuntu Community Documentation

0 comments:

Post a Comment