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

*Deny* prefix to specific clients #168

Open
gtxaspec opened this issue Jan 31, 2022 · 4 comments
Open

*Deny* prefix to specific clients #168

gtxaspec opened this issue Jan 31, 2022 · 4 comments

Comments

@gtxaspec
Copy link

Hello,

According to the radvd documentation, there exists a method to assign a prefix to specific clients, only. I don't see a way to deny specific clients only... is this a possibility under the current implementation?

Thanks

@stappersg
Copy link
Member

stappersg commented Jan 31, 2022 via email

@robbat2
Copy link
Member

robbat2 commented Feb 1, 2022

radvd.conf(5) does cover the clients {} block within the interface <name> {} block, but that does not permit specific prefixes per client. As documented here https://github.com/radvd-project/radvd/blob/master/radvd.conf.5.man#L107-L118

Normally, radvd operates in a broadcast/multicast mode, which does not use any client-specific addressing (a client might never transmit a router solicitation, and then the radvd node will have zero knowledge it exists).

If you use UnicastOnly option, or the clients block, then radvd switches to a unicast-only mode. Clients that do not implement RouterSolicit will NOT work with such a configuration (they're violating the RFC, but you don't have control over that).

Conceptually, we could implement a not-clients block, which would run in unicast, and just invert the behavior of accepting specific clients to instead deny specific clients.

This option would be compatible with the RFCs, but will still break those same clients.
I'd probably implement it as a boolean option that just flipped the behavior of the clients block.

Would this solve what you want?

@Neustradamus
Copy link
Member

@gtxaspec: Have you seen @stappersg and @robbat2 comments?

@z1atk0
Copy link

z1atk0 commented Aug 9, 2024

+1 for me, I'd like to be able to exclude a handful of clients which don't work properly with IPv6 enabled (my Android-based TV box, my wife's mobile phone, etc.). @robbat2's suggestion would be exactly what I want: either a not-clients block, or some sort of not prefix for single entries in the clients block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants