[R]evolutionary [I]n [M]ind ™

Icon

perfection | target | think out of the box

Share Mobile Broadband on Ubuntu Linux

Share Mobile Broadband Internet Connection via Wireless (Tethering)

1. Pastikan koneksi internet via Mobile Broadband sudah berjalan dengan baik.
2. Pasang service dhcp agar proses konfigurasi di client lebih mudah


sudo apt-get install dhcp3-server

edit file konfigurasi server dhcp di /etc/dhcp3/dhcp.conf
contoh konfigurasinya sebagai berikut :


#atur supaya server dhcp listen request pada interface wireless kita

INTERFACES="wlan0";

#sesuaikan konfigurasi di bawah ini sesuai dengan ip/gateway/dns yang kita inginkan

subnet 10.42.43.0 netmask 255.255.255.0 {
option routers 10.42.43.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 202.155.0.10, 202.155.0.15;
option ip-forwarding on;
range dynamic-bootp 10.42.43.100 10.42.43.200;
default-lease-time 21600;
max-lease-time 43200;
}

simpan file konfigurasi tersebut , kemudian restart service dhcp dengan perintah


sudo /etc/init.d/dhcp3-server restart

3. Aktifkan IP Forwarding pada komputer anda


sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

4. Buat aturan firewall untuk nge- NAT koneksi


sudo iptables -A POSTROUTING -t nat -j MASQUERADE

5. Restart network service


sudo /etc/init.d/networking restart

6. Buat koneksi adhoc dari Ubuntu , dengan cara klik Icon Network Manager di taskbar, kemudian pilih ‘Create New Wireless Network”
Masukan ‘Network Name” , pilih “Wireless Security” (lebih baik pilih non WAP, takut gag support), dan masukan “Key”

Coba koneksi dari client

Filed under: /etc

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.