rianto isaac's Weblog

rianto utomo isaac sahala utomo

linux, qemu akses internet

leave a comment »

chgrp users /dev/net/tun
chmod g+w /dev/net/tun

(If you don’t have that device file you will need to run these commands, this assumes you’re running Kernel 2.6.x)

mkdir -p /dev/net
mknod /dev/net/tun c 10 200

Finally we add in the module to enable the device :

modprobe tun
echo 'tun' >> /etc/modules

root@undecided:~# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
root@undecided:~# echo "1" >/proc/sys/net/ipv4/ip_forward

riantoutomo bole nyontek dari http://www.debian-administration.org/articles/40

Written by isaaconi

Maret 8, 2012 pada 2:39 pm

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

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

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: