After installing VirtualBox 2
Install the Proxy ARP bridging daemon:
apt-get install parprouted
Enable ip forwarding:
sysctl net.ipv4.ip_forward=1
Create a tap interface:
VBoxTunctl -b -u $USER
(It will create one interface everytime you run it, so the first one will be tap0)
Bring up the interface and give it an ip address:
ip link set tap0 up
ip addr add 192.168.0.20/24 dev tap0
Bind tap0 to the wireless interface (eth1 on the hp, wlan0 on my dell)
parprouted eth1 tap0
In VirtualBox, Settings, Network set the network adapter attached to "Host Interface" "tap0"
If the procedure works, script it!
If it's not working you may have to add a route before starting VirtualBox:
sudo route add -net 192.168.0.0 netmask 255.255.255.0 tap0
To delete taps do
sudo VBoxTunctl -d <tap>

0 comments:
Post a Comment