Hi.
Need some help configure a network between my computer and vm linux.
Skill: Noob
Host: OSX 10.9, Fusion 6
Guest: Backtrack 5 r3 (linux)
- I've an USB Wifi that I connect in my guest environment to a network with internet. <- success
- Now I would like to forward all traffic to the host OSX 10.9 so I can use the internet.
- Now I would be able to use the OSX Sharing feature to create my own network.
Best regards
/kidkic
Welcome to the Community - Some questions for you - Does you MAC connect to the Internet? How is your networking configured on the VM? You can set the networking to NAT (which is default) Fusion will act as a router and route the VM traffic through the existing physical network connections on the MAC or you can set the network of the VM to bridged which will allow the VM to see the physical network and sit on the same subnet as your MAC.
Thanks weinstein5.
I've tried NAT, Bridge, Host-only.
In the VM (guest:linux) I connect with wifi-dongle. In the OSX I can use Macbook Pro built in Wifi. So both environments can connect to internet thru their own wifi.
What I'm looking for is to connect VM (guest:linux) with wifi-dongle. Send internet traffic to host:OSX (10.9), be able to surf in the OSX and then share the internet.
Different types of network settings, tried internet back-and-forth.
NAT
OSX to Linux: Yes
Linux to OSX: No
Bridge (autodetect)
OSX to Linux: No
Linux to OSX: No
Host-only
OSX to Linux: No
Linux to OSX: No
Was hoping that shareing back to host would be simpler with Fusion 6. This is how I'm thinking now. What do you think?
1.) In OSX -> System Preferences -> Network, here I would might need to set where my connection is from?
Maybe setup Ethernet locally and set route to a vmware ip or the linux ip?
vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:50:56:c0:00:01
inet 172.16.20.1 netmask 0xffffff00 broadcast 172.16.20.255
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:50:56:c0:00:08
inet 172.16.180.1 netmask 0xffffff00 broadcast 172.16.180.255
2.) In VM (linux) somehow setup a bridge to send all traffic from wifi (wlan0) to ethernet (eth2:172.16.180.129)
One of the features are to be able to use 2 wifi networks (my wifi dongle doesn't support OSX).
So because the guest (LINUX) could access internet from host (OSX) and because my linux is backtrack 5 I changed the direction.
Get internet from OSX wifi -> Send to Linux -> Linux create wifi
As network adapter I've used NAT, this is so that OSX gives the internet connection to my VM.
Here's a ruff manual setup in linux backtrack 5 to setup a network bridge and create your own wifi, sharing the internet from host. I will not give a deep description of this, there's tons of video tutorials on this.
In linux terminal.
Enable wifi
ifconfig INTERFACE up
example: ifconfig wlan0 up
Start monitor
airmon-ng start INTERFACE
example: airmon-ng start wlan0
Set wlan and monitor to a channel (example 1)
iwconfig INTERFACE channel CHANNEL-NUMBER
example: iwconfig wlan0 channel 1
and: iwconfig mon0 channel 1
Start own wifi
airbase-ng --essid CUSTOM-NETWORK-NAME MONITOR-INTERFACE
example: airbase-ng --essid testnetwork mon0
Enable airbase network
ifconfig AIRBASE-INTERFACE up
example: ifconfig at0 up
Create a bridge
brctl addbr BRIDGENAME
example: brctl addbr mitm
Connect airmon-ng with ethernet in the bridge
brctl addif BRIDGENAME INTERFACE
example: brctl addif mitm at0
and: brctl addif mitm eth2
Enable bridge
ifconfig BRIDGENAME up
example: ifconfig mitm up
Start dhcp on bridge
dhclient3 BRIDGENAME &
example: dhclient3 mitm &
close on CTRL+c