« Home | Upgrade ubuntu dg paket-paket debian (contunied) » | Upgrade Ubuntu dg paket2 debian » | KSL-BL punya Lab..! » | counter strike » | Start here.. »

Internet connection sharing on linux

sharing koneksi internet di system GNU/linux pada dasarnya dapat dilakukan via firewal (iptables atau ipchains) tergantung versi kernel. Untuk kernel versi 2.6, yg gw tau pake iptables (kernel 2.4 juga)

okeh, jadi begini ceritanya... (crita dikit ah..)
siang ini, setelah sholat jumat, teman kerja ada yg pengen "konek", udah ngebet dari kemaren. oh iya, akses internet di tempat kami bekerja ada aturanya, nggak semua divisi punya koneksi. nah.. pass yg divisi gw nggak dapet, apes.. :( tapi masih boleh request. akhirnya gw request untuk beberapa hari. berhubung kawan gw ini udah ngebet, akhirnya gw share koneksi internet gw.

OK, let's start:

menambahkan chain baru pada tabel

[root@tux-machine: ~]# /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

cek fasilitas IP Forwarding

[root@tux-machine: ~]# cat /proc/sys/net/ipv4/ip_forward
0
[root@tux-machine: ~]#

klo hasilnya 0 maka IP Forwarding belum aktif. ok, aktifkan:

[root@tux-machine: ~]# echo 1 > /proc/sys/net/ipv4/ip_forward

lalu cek lagi, klo hasilnya 1 berarti udah siap untuk forward paket
[root@tux-machine: ~]# cat /proc/sys/net/ipv4/ip_forward
1

eth0 adalah ethernet (device) pertama yg merupakan gerbang untuk keluar. lalu tinggal di set di PC temen gw tadi, set gateway-nya ke IP PC gw. Beres deh.. ;D buka browser dan ketik www.google.com. krekek.. krekek.. krekek.. (bunyi komputernya) nah lho.. kok nggak bisa??? wah apa karena pake MS IE (internet Explorer) ya..? masak seh..? ah coba pake mozilla firefox, ketik lagi (krekek.. krekek.. krekek.. lagi) jreng..!!! kebuka.. ;D untuk problem yg satu ini gw enggak tahu knapa??? tapi itu nyata!!

Lalu tiba-tiba iseng, ada ga yah.. tools untuk ICS di linux..? coba-coba tanya sama mang google.. dapet!! Firestarter GUI Firewall keren bow..! coba aja. ada fasilitas untuk firewallnya lagi!!

Klo pake telkomnet instan bisa ga ya? ga pernah berhasil jee..

wah.. telkomnet??? ..ee... ..mm.. a.. anu.. m... kapan yah... mungkin 2010 kali ya, waktu telkomnet udah sekelas T1 :D

wah.. kayanya gw salah koment nih... kirain yg update edubuntu? sorry :D

Klo just internet connection sharing, telkomnet nggak masalah.. :) cuma... tega bgt, udah telkomnet, di share..

Post a Comment
Google Docs & Spreadsheets -- Web word processing and spreadsheets. Edit this page (if you have permission) | Report spam