Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Isolation for AP Mode (IDFGH-12805) #13781

Open
SmartAppsML opened this issue May 11, 2024 · 3 comments
Open

Client Isolation for AP Mode (IDFGH-12805) #13781

SmartAppsML opened this issue May 11, 2024 · 3 comments
Assignees
Labels
Status: Opened Issue is new Type: Feature Request Feature request for IDF

Comments

@SmartAppsML
Copy link

Is your feature request related to a problem?

I would like to implement a Client Isolation when the ESP is acting as Wireless Access Point, meaning that clients cannot send packets to each other, only to the AP.

As far as I know, there is no option to do so. I am able to read the raw Ethernet Frames by registering a custom callback in the internal wifi driver and that works flawlessly. But the problem is, I can only "listen" to the packets, but I cannot "intercept" them.

Describe the solution you'd like.

I would like to be able to intercept a packet if it is addressed to another WiFi client. So, all Raw Frames would go through my function, which checks the destination address in the IP header. If another WiFi client is addressed, drop the packet.

Is there an option to intercept the package? I can only "sniff" it, unfortunately.

Thank you!

Describe alternatives you've considered.

No response

Additional context.

No response

@SmartAppsML SmartAppsML added the Type: Feature Request Feature request for IDF label May 11, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label May 11, 2024
@github-actions github-actions bot changed the title Client Isolation for AP Mode Client Isolation for AP Mode (IDFGH-12805) May 11, 2024
@MaxwellAlan
Copy link
Collaborator

Hi @SmartAppsML

Thanks for the feature request.

This is not a normal case for Wi-Fi communication.
Could you share some more details about this feat request, such as working scene, request api params etc.

Thanks.

@SmartAppsML
Copy link
Author

SmartAppsML commented May 13, 2024 via email

@SmartAppsML
Copy link
Author

Could you please explain what exactly happens on incoming WiFi packets? Say, we got two WiFi Clients 192.168.4.2 and 192.168.4.3 (the AP has 192.168.14.1). What happens if 192.168.14.2 sends a TCP request to 192.168.4.3. If I enable Verbose Logging and full LWIP logging, I cannot really trace that package. So, doesn't it go through the LWIP layer? Is the WiFi module directly forwarding the packet to the client without feeding it through LWIP because it is not addressed to the access point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

3 participants