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

Pi-hole FTL v5.0 #747

Merged
merged 822 commits into from
May 10, 2020
Merged

Pi-hole FTL v5.0 #747

merged 822 commits into from
May 10, 2020

Conversation

DL6ER and others added 30 commits December 11, 2019 21:31
Signed-off-by: DL6ER <dl6er@dl6er.de>
Per-client blocking rules, intermediate CNAME path blocking and some more
…to disable deep CNAME inspection. This might be beneficial for very low-end devices.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
…ular query is only seen by this client).

Signed-off-by: DL6ER <dl6er@dl6er.de>
Add CNAME_DEEP_INSPECT config option
…are never untrusted data, so not security problem.

Thanks to Klaus Eisentraut <klaus.eisentraut@web.de> for finding this.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
…onally leads to false-negatives during the CI testing (the CI cannot always resolve the hostnames).

Signed-off-by: DL6ER <dl6er@dl6er.de>
Do not try to resolve client host names during the tests
Signed-off-by: DL6ER <dl6er@dl6er.de>
Thanks to Klaus Eisentraut <klaus.eisentraut@web.de> for finding this.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Calling lease_update_file() _can_ result in a call to  periodic_ra()

Since both the DHCPv6 and RA subsystems use the same packet buffer
this can overwrite the DHCPv6 packet. To avoid this we ensure the
DHCPv6 packet has been sent before calling lease_update_file().

Signed-off-by: DL6ER <dl6er@dl6er.de>
… chain, the originally queried domain itself was not counted as blocked (but as (permitted). Later in the chain, when we find that this is a bad guy, we short-circuit it. We need to correct the domain counter of the domain at the head of the chain, otherwise, the data for the top lists is misleading. For this, we go back the entire path and change the original request to blocked by increasing the blocked count of this domain by one. Fortunately, each CNAME path can easily be tracked back to the original head in FTL's data so we do not need to search it. This makes the change able to happen without causing any delay.

Signed-off-by: DL6ER <dl6er@dl6er.de>
… this information during possible later CNAME inspection. This avoids the necessity to check the whitelist filters multiple times.

Signed-off-by: DL6ER <dl6er@dl6er.de>
…ermitted property during an entire CNAME inspection process.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Change ownership of all shared memory objects before switching user
Top lists fix for deeply blocked CNAME chains
…an be used by TCP and UDP clients avoiding any doubled amount of work.

Signed-off-by: DL6ER <dl6er@dl6er.de>
…now the same details about client/regex combinations. This commit also fixes an issue with regex group associations for configured clients that have no assigned group.

Signed-off-by: DL6ER <dl6er@dl6er.de>
…rsion 9.

Signed-off-by: DL6ER <dl6er@dl6er.de>
…t for domains and clients.

Signed-off-by: DL6ER <dl6er@dl6er.de>
PromoFaux and others added 21 commits April 12, 2020 14:17
Update embedded dnsmasq to v2.81
… qemu issue).

Signed-off-by: DL6ER <dl6er@dl6er.de>
Don't try setsockopt of non-existing NETLINK_NO_ENOBUFS option (fixes…
…n (fixes qemu issue)."

This reverts commit e119ef8.

Signed-off-by: DL6ER <dl6er@dl6er.de>
…..) into warning.

We call this, which avoids POLLERR returns from netlink on a loaded system,
if the kernel is new enough to support it. Sadly, qemu-user doesn't support
the socket option, so if it fails despite the kernel being new enough to
support it, we just emit a warning, rather than failing hard.

Signed-off-by: DL6ER <dl6er@dl6er.de>
…ion to control this.

Signed-off-by: DL6ER <dl6er@dl6er.de>
…e disabled by setting BLOCK_ESNI=false in pihole-FTL.conf

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
…masq binary.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
…nt (pre-v5.0 measure) but use the dedicated blockingstatus variable.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Automatically block _esni.* subdomains of blocked domains
Make regex matching case-insensitive by default
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Remove swag store link from readme
…ss no-op.

Signed-off-by: DL6ER <dl6er@dl6er.de>
…get property.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Fix FTL crash on closing handle to corrupted databases
@DL6ER DL6ER added the Release label May 6, 2020
@DL6ER DL6ER added this to the v5.0 milestone May 6, 2020
@DL6ER DL6ER requested a review from a team May 6, 2020 06:06
DL6ER and others added 2 commits May 8, 2020 11:26
Signed-off-by: DL6ER <dl6er@dl6er.de>
Fix bit-order in subnet mask generation
@PromoFaux PromoFaux merged commit 3d7c095 into master May 10, 2020
@DL6ER DL6ER deleted the release/v5.0 branch September 10, 2021 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.