Menu

Virtual WIFI 802.11_of_v14

Raizo62

Objective

Simulate Wifi 802.11 between Linux VM


Configuration

On LiveRaizo

fast-vwifi

=> (LiveRaizo will be the bridge between the VMs)
=> This command creates the virtual wifi interface wlan0 to capture the traffic between all the VM

On VM Raizo : Debian

fast-vwifi

=> This command creates the virtual wifi interface wlan0

On other Linux VM

  • On GNS3 : on QEmu, add the option :
 -device vhost-vsock-pci,id=vwifi0,guest-cid=%guest-cid%
  • On the VM :
    • Install vwifi-client from VWifi
      • Or get it from LiveRaizo : /usr/sbin/vwifi-client
    • As explain on the doc of VWifi, run the commands :
sudo modprobe  mac80211_hwsim  radios=0
sudo vwifi-client -n 1  # -n : specify the number of wireless network card to create

Example

On Debian-1 (the hotspot wifi)

  • Enable VWifi, if not already do
fast-vwifi
  • Use create_ap to configure the Access Point
create_ap -n wlan0 ESSID PASSWORD

On Debian-2

  • Enable VWifi, if not already do
fast-vwifi
  • Edit the file /etc/network/interfaces
iface  wlan0  inet  dhcp
        wpa-ssid ESSID
        wpa-psk PASSWORD
        wireless-mode managed
  • Active the interface wlan0
ifup wlan0
  • Debian-2 can do a ping to Debian-1

On Live-Raizo

You can capture the traffic between the VMs with wireshark on the interface wlan0