I'm setting up a Raspberry Pi as an Access Point (Wi-Fi) and I'd like to use it to monitor a switch traffic.
I setted up a mirror port on a Cisco Catalyst switch and configured my Raspberry Pi to work as an Access Point (with hostapd).
I configured a bridge between my eth0 and my wlan0 interfaces with brctl.
My problem is that the mirrored traffic isn't transmitted through Wi-Fi.
What I've already verified :
- Directely connected on switch (via Ethernet cable) I see all the mirrored traffic
- The Access Point works well (I can communicate with all clients connected to the switch)
- The IP forwarding is enabled on the Raspi (I've verified it via sysctl)
- I tried modifying the aging time on my bridge to 0 (brctl setageing) but it doesn't change anything.
For information, I've a 3Model B Rapsberry Pi and have installed raspbian with Kernel version 4.9.54-v7+.
To sum up, my purpose is to use a laptop connected via Wi-Fi to analyze packets going on a specified switch (and if possible to have multiple clients connected through Wi-Fi).
I may think that it could also be a limitation of the Wi-Fi
Thanks in advance.