You are on page 1of 1

1. eth0 : 192.168.1.

1
eth1 : 192.168.2.1

Pengaturan pada virtual box


network adapter 1 : host only adapter
network adapter 2 : internal network
n
network client PC :
192.168.1.2

network untuk win 7 (VPC):


192.168.2.2

2. #nano /etc/sysctl.conf

3. car baris
#net.ipv4.ip_forward=1
(hilangkan tanda #)
net.ipv4.ip_forward=1

4. cek
#sysctl -p

5.iptables...
#nano /etc/rc.local
ketik diatas exit 0

iptables �t nat �A POSTROUTING �o eth0 �j MASQUERADE

6. reboot

ping

You might also like