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

Add a context menu in Query Log to add a Clients to the Persisted client list #6679

Closed
3 tasks done
distante opened this issue Jan 25, 2024 · 7 comments
Closed
3 tasks done

Comments

@distante
Copy link

distante commented Jan 25, 2024

Prerequisites

  • I have checked the Wiki and Discussions and found no answer

  • I have searched other issues and found no duplicates

  • I want to request a feature or enhancement and not ask a question

The problem

As per #6678, the rDNS names obtained from our local routers are not stable enough and can break between release and release of Adguard, and the safe way to keep those names is to add to the Persistent Client.

Doing this requires that we manually fill every client data, even when it is already known by AdGuard

Proposed solution

A context menu with the text "Add as Persisted client" or similar, that opens the Clients page with the prefill information of the client will make things easier and faster. Including Mac Address.

Alternatives considered and additional information

Another alternative would be to list all the hostname entries in the log extended view if not persisted client info exists.

@distante
Copy link
Author

I updated the feature request to include MAC Address since in the current implementation, we can just see either the current IP or the Hostname and both are not stable enough to persist.

image

@ainar-g
Copy link
Contributor

ainar-g commented Jan 26, 2024

@distante, if I recall correctly, MAC info isn't available directly from the query log, but maybe it will become in the future. We'll see if we can get it done in the current API.

@ainar-g ainar-g added this to the v0.107.44 milestone Jan 31, 2024
adguard pushed a commit that referenced this issue Feb 8, 2024
Updates #6679

Squashed commit of the following:

commit 2e051c9
Merge: a001f52 56b9808
Author: Ildar Kamalov <ik@adguard.com>
Date:   Thu Feb 8 15:02:22 2024 +0300

    Merge branch 'master' into ADG-8179

commit a001f52
Author: Ildar Kamalov <ik@adguard.com>
Date:   Mon Feb 5 18:59:13 2024 +0300

    fix changelog

commit 5bac6a2
Author: Ildar Kamalov <ik@adguard.com>
Date:   Mon Feb 5 16:01:01 2024 +0300

    fix

commit 14a7190
Author: Ildar Kamalov <ik@adguard.com>
Date:   Mon Feb 5 15:59:35 2024 +0300

    ADG-8179 add persistent client from query log context menu
@ainar-g
Copy link
Contributor

ainar-g commented Feb 8, 2024

@distante, the latest Edge channel releases have the feature, without MAC though. Can you please check to see if it works for you?

@distante
Copy link
Author

distante commented Feb 9, 2024

thanks @ainar-g I will see how to test it after work. Do I can enable Edge channels on my running instance (and go back if needed) or should I better deploy a test instance?

@ainar-g
Copy link
Contributor

ainar-g commented Feb 9, 2024

Whatever is easier for you, but we recommend backing up your configuration and data either way. You can find the links to builds on our Platforms page, and in general you can just replace the original binary with the new one.

@distante
Copy link
Author

Hi @ainar-g sorry it took too long.

I have tested the latest Edge and it works as expected. Maybe I would recommend to put the existing rDNS name on the field (in case it is valid at that point) so, instead of

Client xxx.yyy.zzz.52

I would use:

Client MyRDNSName  xxx.yyy.zzz.52

One last thing. Although not related to this feature. The name shown on the Persistent clients list is not the same shown on Runtime clients

@ainar-g
Copy link
Contributor

ainar-g commented Feb 12, 2024

Thanks for testing!

Most other client-related improvements will become easier once we refactor some internals, which is an ongoing process.

@ainar-g ainar-g closed this as completed Feb 12, 2024
@ainar-g ainar-g modified the milestones: v0.107.46, v0.107.45 Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants