Raizo62 / vwifi

Simulator of WiFi (802.11) interfaces to communicate between several Virtual Machines
GNU Lesser General Public License v3.0
57 stars 8 forks source link

Can't see the traffic generated on the same machine on another interface #5

Closed r4ulcl closed 2 years ago

r4ulcl commented 2 years ago

Is there any option for a VM to see the traffic generated on the same machine on another interface?

My configuration is as follows:

When the attacker raises a Rogue AP from one of the interfaces, from the rest of the same machine does not appear that traffic. it only appears if the server is not raised.

I have tried to monitor the traffic with airodump-ng from the AP VM but I can't see the traffic from the rest of the interfaces either, only the traffic from the attacker VM. Each one can see the traffic of the rest but not their own, not even in spy mode.

Thank you very much, I love the repo.

Raizo62 commented 2 years ago

Hi

Sorry, i don't understand :

Raizo62 commented 2 years ago

create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase


* On an other tab of AP
`tcpdump -n -e -i wlan0`

Then i can see the broadcast of BSSID

(But perhaps that i don't understand your question)
r4ulcl commented 2 years ago

I am using TCP, one VM has the server and a client, and the other has only a client. The problem is when trying to see the wlan0 AP from wlan1 in the same machine. From the other VM it can be seen without problems. And if you don't use vwifi using only mac80211_hwsim locally also works.

Without vwifi (only mac80211_hwsim local): image

Using vwifi: image

And using vwifi from the other VM (server+client): image

Raizo62 commented 2 years ago

Could you do all your tests with this branch send_to_interfaces_on_same_VM ?

Thank you

r4ulcl commented 2 years ago

OK, now it seems to work fine. I have created an AP on wlan0 and I can see the traffic from wlan1 (airodump-ng wlan1mon -c1).

image

I am going to do more tests in my lab, but everything seems to be working perfectly. Thank you very much. I close the issue, if it is possible to include it in the main branch great, meanwhile I use this branch.

Thank you very much for the help and for the project.