sharing internet dengan client virtual host   Leave a comment

sedikit gambaran tentang system yang berjalan di komputer saya adalah Ubuntu dengan koneksi internet menggunakan modem(ppp0), client di virtual box adalah win XP. untuk sharing internet dari host ke client langkahnya adalah:

1. mengaktifkan ip forward di ubuntu
#echo 1 > /proc/sys/net/ipv4/ip_forward
#iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

2. setting adapter untuk koneksi dengan virtualbox(vboxnet0), yang nantinya ini akan jadi gateway untuk client di vbox
#ifconfig vboxnet0 192.168.1.1/16

3. setting adapter di virtualbox dengan ip 192.168.1.2 netmask : 255.255.0.0 dns1 dan dns2 disesuaikan dengan host

4. testing browsing, hasilnya bisa dilihat di bawah:

terlihat bahwa client di virtualbox sudah bisa browsing and happy surfing and learn for hacking :D

Advertisement

Posted May 16, 2010 by secureshadow in linux

Tagged with ,

Leave a Reply

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 / Change )

Twitter picture

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

Facebook photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.