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 all clients FTL knows about to the network table #711

Merged
merged 17 commits into from
Mar 29, 2020

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Mar 7, 2020

By submitting this pull request, I confirm the following:

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

How familiar are you with the codebase?:

10


Add all clients FTL knows about to the network table. This requires a yet to be done modification to the web interface to hide the mock hardware addresses we generate for these devices.

This change will import distant clients not visible over ARP/neigh (like VPN connected or VLAN separated devices) in the network table. As there is no one unique identification criterion now (we used the MAC address for this, before), each IP change of a non-deterministic DHCP server will fill the network table with additional entries as there is no way to detect if client .3 was .5 yesterday without the MAC address.

Maybe we need a setting for this defaulting to false which can then be enabled by power-users running VPNs, VLANs, etc. However, "normal" (as in: no power-) users will likely not have any clients in their network which are not also covered by ARP/neigh, so there may be no issue even with having this defaulting to true.

Note that clients found through ARP/neigh will always have higher priority than "remaining" clients known to FTL. FTL's knowledge is only used to "fill the gaps".

…a yet to be done modification to the web interface to hide the mock hardware addresses we generate for these devices.

Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER added this to the v5.0 milestone Mar 7, 2020
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/request-ability-to-add-clients-to-known-client-list-from-network-page/28601/10

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
…debugging output to ARP processing.

Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER force-pushed the new/all_clients_network_table branch from ac66264 to ada1274 Compare March 14, 2020 12:32
…n the last 24 hours.

Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER force-pushed the new/all_clients_network_table branch from ada1274 to 1caf634 Compare March 14, 2020 12:33
Signed-off-by: DL6ER <dl6er@dl6er.de>
…ree SQL query.

Signed-off-by: DL6ER <dl6er@dl6er.de>
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/long-term-data-weirdness/29308/17

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER
Copy link
Member Author

DL6ER commented Mar 23, 2020

This PR also adds host name validation (length & valid characters) to FTL

@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/long-term-data-weirdness/29308/30

@DL6ER DL6ER marked this pull request as ready for review March 24, 2020 13:06
Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER requested a review from a team March 25, 2020 09:49
…when we gather ARP/neigh information about them.

Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER added the WIP label Mar 25, 2020
@DL6ER DL6ER removed the request for review from a team March 25, 2020 14:07
@DL6ER DL6ER removed the WIP label Mar 28, 2020
@DL6ER DL6ER merged commit ec0579a into release/v5.0 Mar 29, 2020
@DL6ER DL6ER deleted the new/all_clients_network_table branch March 29, 2020 20:19
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/include-clients-from-different-subnets-vlans-in-network-overview/27967/17

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

Successfully merging this pull request may close these issues.

3 participants