Commit Graph

  • 2c10b3177a Our tests are a stickler tweak/cert_help yubiuser 2024-10-26 12:55:06 +02:00
  • ff0ffff420 Add SQLite3 index on network_addresses(network_id) to speed up the client suggestions query. This has been found by manually examining the generated byte code of this query, finding that temporary index is created fix/client_suggestions DL6ER 2024-10-26 11:09:54 +02:00
  • 1f435afa8d Do not include clients already configured in gravity.client DL6ER 2024-10-26 11:05:12 +02:00
  • 1f5ca5248b Ensure we are using the correct binary path, e.g., when locally compiled, it should be ./pihole-FTL as the globally installed binary may not even have the given feature new/sqlite3_rsync DL6ER 2024-10-26 09:56:08 +02:00
  • 7437371d1b Add sqlite3_rsync tool DL6ER 2024-10-26 09:37:18 +02:00
  • b3b21aae2b Adjust test/pihole.toml yubiuser 2024-10-26 09:37:00 +02:00
  • d5b8b768de Clarify user could be different than 'piholeÄ yubiuser 2024-10-26 09:34:57 +02:00
  • 5a7a95a621 Amend the help text of the tls certificate yubiuser 2024-10-26 09:18:21 +02:00
  • 5cd13c303d Go through network-table.c and ensure error handling is uniform, there were some cases in which an early returning caused by an error could have left prepared SQLite3 statements un-finalized. Whether this is the cause for occassional database locking we are seeing is unclear tweak/network-table-error-handling DL6ER 2024-10-25 18:34:06 +02:00
  • 7bdf3d8eea Increase default recycler table size from 1024 to 65535 tweak/table_IDs DL6ER 2024-10-25 10:05:22 +02:00
  • 148e558fd1 Merge pull request #2096 from pi-hole/fix/help_x509 development Dominik 2024-10-24 21:20:38 +02:00
  • bc51e8da78 Add optional [domain] description in help text for --gen-x509 DL6ER 2024-10-24 19:21:44 +02:00
  • 3b33767a4f Print recycler fullness on receipt of SIGRT7 DL6ER 2024-10-23 22:14:33 +02:00
  • 3b5ca24ff1 Add a table recording recycled domains, clients and DNS cache entries to speep up insertion DL6ER 2024-10-23 21:43:43 +02:00
  • 8a95ce59e6 Merge pull request #2094 from pi-hole/update/sqlite_3.47.0 Dominik 2024-10-23 21:25:04 +02:00
  • cd438d0452 Limit CIDR values to avoid possible out-of-bounds when building the netmask DL6ER 2024-10-22 21:17:24 +02:00
  • f21830b0c4 Fix Pi-hole-provided SQL function isIPv6(string) DL6ER 2024-10-22 21:16:02 +02:00
  • 53d21a39a1 Merge branch 'development' into update/sqlite_3.47.0 DL6ER 2024-10-22 19:16:08 +02:00
  • d6d5a97af9 Remove SQLite3 percentile extension as it is now part of the shell, side-load it into FTL DL6ER 2024-10-21 21:19:17 +02:00
  • f6ec5e67fc Update embedded SQLite3 to version 3.47.0 released earlier today DL6ER 2024-10-21 21:11:21 +02:00
  • 787021b1cf Try to use DNS cache ID if known to avoid searching when possible DL6ER 2024-10-21 20:05:11 +02:00
  • 2f02f5c038 Merge pull request #2084 from pi-hole/new/lookup_table Dominik 2024-10-21 18:06:41 +02:00
  • 9d545369a5 Log last query timestamp during domain/client recycling in human-readable format (only logged if debug.gc is enabled) DL6ER 2024-10-19 21:07:11 +02:00
  • 3cbbb227d2 Improve cache integer hashing to acknowledge that the three integers are not equally distributed DL6ER 2024-10-19 21:00:07 +02:00
  • 9a9615ad78 Set lastQuery property of CNAME child domains DL6ER 2024-10-19 19:04:36 +02:00
  • 3f4bc0e2ba Only recycle domains when their last query was more than 24 hours ago. DL6ER 2024-10-19 16:10:15 +02:00
  • 1d99b6f988 Update domain's last query time on new queries DL6ER 2024-10-19 15:12:42 +02:00
  • cf0f8e8dab Lookup table element removal: Zero out the memory of the removed element DL6ER 2024-10-18 22:31:19 +02:00
  • 963dec401b Merge pull request #2091 from pi-hole/update/ftl-build Dominik 2024-10-18 22:22:35 +02:00
  • f48aaeef66 Use new ftl-build:v2.9 DL6ER 2024-10-18 21:02:11 +02:00
  • 31c978381c Merge pull request #2090 from pi-hole/tweak/dont_set_rtc Dominik 2024-10-18 20:57:42 +02:00
  • 015bf0f8a7 Change default value of ntp.sync.rtc.set to false DL6ER 2024-10-18 20:25:16 +02:00
  • 13ba0517e3 Merge pull request #2088 from pi-hole/fix/fork_building Dominik 2024-10-18 20:15:47 +02:00
  • 383d62b938 Add missing newline at end of file DL6ER 2024-10-18 19:08:52 +02:00
  • 790bb536bc Add new SEARCH_LOOKUP_HASH_COLLISIONS event DL6ER 2024-10-18 18:48:33 +02:00
  • 97ddf8b252 Improve hashThreeInts(a,b,c) DL6ER 2024-10-18 18:41:25 +02:00
  • 051c9be0ed Search for hash collisions when receiving SIGRTMIN+7 (e.g. sudo kill -s RTMIN+7 2931163) DL6ER 2024-10-18 18:26:55 +02:00
  • 4596e518be Add hash collision searching if debug.gc is enabled DL6ER 2024-10-18 18:07:24 +02:00
  • 3cf7baf258 Remove MEASURE_ITERATIONS code path. It makes the code unnecessarily hard to read. The expected convergence behavior has already been demonstrated DL6ER 2024-10-18 17:50:40 +02:00
  • ebff95143e Merge branch 'development' into new/lookup_table DL6ER 2024-10-18 17:47:38 +02:00
  • 908d207bda Merge pull request #2087 from kaechele/development-nxdomain-aa-bit Dominik 2024-10-18 17:21:09 +02:00
  • 35cdf0f276 Fix incorrect Github Actions if syntax DL6ER 2024-10-18 17:02:17 +02:00
  • 60c111e3fe A small commit fix/fork_building_1 DL6ER 2024-10-18 16:43:16 +02:00
  • 2fa6b99741 Do not run deployment steps if a PR is coming from a fork DL6ER 2024-10-18 15:39:02 +02:00
  • e2c58b9378 Merge branch 'new/lookup_table' of github.com:pi-hole/FTL into new/lookup_table DL6ER 2024-10-18 14:13:48 +02:00
  • 390c9bbd0c Remove debugging function print_lookup_table(). It should not be necessary to do this. DL6ER 2024-10-18 14:13:38 +02:00
  • 32f8516ec3 Use lookup table names, not identifiers DL6ER 2024-10-18 14:12:48 +02:00
  • a67a6df342 Fix external block detection on NXDOMAIN replies from authoritative upstreams Felix Kaechele 2024-10-17 00:32:49 -04:00
  • 6666bc54bf Update comment Dominik 2024-10-16 18:59:34 +02:00
  • 93a06c0124 Remove unused code segments DL6ER 2024-10-15 21:36:43 +02:00
  • 2f8355ed25 Further code maintainance (adding "const", etc.) DL6ER 2024-10-14 18:56:41 +02:00
  • f64ce8fed1 Only try to adjust upstream counters if this query has been forwarded DL6ER 2024-10-14 18:55:46 +02:00
  • 7b7f950cce CMake: print comment when appending sha256sum to pihole-FTL DL6ER 2024-10-13 20:08:41 +02:00
  • 3c7b356ec3 Merge pull request #2083 from pi-hole/tweak/db yubiuser 2024-10-13 17:59:09 +02:00
  • a5cfba2d3d Amend help text to database.maxDBdays yubiuser 2024-10-13 11:46:25 +02:00
  • 8f4d8622ae Finish lookup table implementation DL6ER 2024-10-12 22:21:11 +02:00
  • 33645777e9 Add basic lookup table implementation and create new SHM objects for them. Also simplify code by changing index counters to unsigned types. DL6ER 2024-10-12 22:01:57 +02:00
  • 69117f6353 Print computed SHA256 checksum to console during build DL6ER 2024-10-12 11:13:11 +02:00
  • e608dfc573 Implement cache hashing DL6ER 2024-10-12 11:09:14 +02:00
  • 842b234174 Implement client hashing DL6ER 2024-10-12 11:03:21 +02:00
  • 8504bb9bf2 Merge pull request #2075 from pi-hole/update/rapidoc Dominik 2024-10-12 10:23:28 +02:00
  • 6f5a250c33 Add the official SQLite3 percentile extension (https://sqlite.org/src/file/ext/misc/percentile.c) DL6ER 2024-10-11 13:30:24 +02:00
  • 833fba0458 Ensure the shell will always initialize the extra functions provided by Pi-hole DL6ER 2024-10-11 12:42:13 +02:00
  • 7ea73f5353 Merge pull request #2082 from pi-hole/fix/ubuntu_24_04_1 Dominik 2024-10-11 11:40:19 +02:00
  • c43a81c703 Fix compilation support on Ubuntu 24.04.1 LTS DL6ER 2024-10-11 10:16:18 +02:00
  • 629911ec4c Merge pull request #2081 from pi-hole/tweak/vector_safety Dominik 2024-10-11 08:42:37 +02:00
  • e7f85ada37 Merge pull request #2080 from pi-hole/tweak/database_debug_msg Dominik 2024-10-10 21:16:17 +02:00
  • c4b5b80570 Print size of database / count of removed rows only in debug mode DL6ER 2024-10-10 19:56:52 +02:00
  • f5811116db Do not try to access vector items if (re)allocation failed DL6ER 2024-10-10 15:28:37 +02:00
  • d15e02fc35 Return exit code 42 if called as pihole-FTL --adam tweak/adam42 DL6ER 2024-10-09 19:15:02 +02:00
  • e558f7985f Merge pull request #2076 from pi-hole/tweak/qps Dominik 2024-10-05 18:06:26 +02:00
  • 75b26e69e0 Fix crash when reloading DHCP config on SIGHUP. update/dnsmasq Simon Kelley 2024-10-04 16:59:14 +01:00
  • 31f28bc890 Merge branch 'development' into update/dnsmasq DL6ER 2024-10-04 19:21:07 +02:00
  • 7e12e40840 Reset the following timestamp slot to avoid possible race-collisions (GC thread is not aligned to wall clock) DL6ER 2024-10-03 19:22:58 +02:00
  • 7ec1478018 Adaptively adjust GC sleeping time (if necessary) DL6ER 2024-10-02 22:15:08 +02:00
  • 59b9f0143a Outsource counter resetting into a dedicated function periodically run by the GC thread to make the average computation independet from external trigger sources. This solves the problem of artificially high QPS values when no queries are processed by FTL. DL6ER 2024-10-02 22:05:40 +02:00
  • 6fb223ebf3 Update rapidoc yubiuser 2024-09-30 20:29:58 +02:00
  • 4144408074 Update highlight yubiuser 2024-09-30 20:28:31 +02:00
  • 6c0c875476 Merge pull request #2072 from pi-hole/new/verify Dominik 2024-10-01 06:56:21 +02:00
  • dec2c8a700 Review comment extending documentation Dominik 2024-09-30 21:34:16 +02:00
  • 8d1394d00e Simplify text DL6ER 2024-09-29 10:43:15 +02:00
  • 450964edef Remove sha256 --skip-end feature as discussed during PR review process DL6ER 2024-09-29 10:40:29 +02:00
  • d749dffb62 Merge pull request #2073 from pi-hole/fix/piholePTR Dominik 2024-09-27 10:07:32 +02:00
  • a52eb0c817 Merge pull request #2074 from pi-hole/fix/query_log_blocked_cached Dominik 2024-09-26 20:12:37 +02:00
  • e62e58619e Do not take the not-filtered shortcut if one of the magic upstream={blocklist,cache} is selected. This is currently broken as detection of ongoing filtering is through variable bindung to the SQL string. However, these two special upstreams work by using the IN operator which does not support binding to a prepared statement. DL6ER 2024-09-26 19:25:04 +02:00
  • c2a2df8a77 Restart FTL to enforce flushing the cache when dns.piholePTR is changed DL6ER 2024-09-26 18:19:27 +02:00
  • cdba28e0c5 Add verification CI test DL6ER 2024-09-26 11:57:53 +02:00
  • 3ca04acd75 Add message table entry on binary verification failure DL6ER 2024-09-26 11:43:22 +02:00
  • bb93467442 Add new binary integrity verification function DL6ER 2024-09-26 11:02:39 +02:00
  • cb8e8b0647 Merge pull request #2071 from pi-hole/tweak/api_regex_count Dominik 2024-09-25 07:03:11 -04:00
  • 92e259021e Disentangle info/ftl : ftl.database.domains from newly added ftl.database.regex DL6ER 2024-09-25 10:05:50 +02:00
  • 361e0ce5bb Merge pull request #2067 from pi-hole/tweak/db_counter_update Dominik 2024-09-25 03:29:20 -04:00
  • 001db4953b Merge pull request #2070 from pi-hole/fix/civetweb_lua_issue Dominik 2024-09-24 00:13:00 -04:00
  • 9de2bbdad4 Make the CI test a bit more complex so we actually get some stack traceback DL6ER 2024-09-23 22:55:33 +02:00
  • 31d0684912 Add CI test for proper Lua backtrace generation DL6ER 2024-09-23 22:37:01 +02:00
  • ddbce6392e Add new Lua patch DL6ER 2024-09-23 21:43:28 +02:00
  • 0ff00e1c83 Add bundled script loading into luaL_openlibs to make them available globally (also in the webserver) DL6ER 2024-09-23 21:42:21 +02:00
  • dce844b599 Properly generate traceback in lua_error_handler() avoiding the first line showing the manual call to debug.traceback() itself DL6ER 2024-09-23 20:25:25 +02:00
  • 59cfeb4ed5 Add new Lua patch DL6ER 2024-09-23 13:26:24 +02:00
  • 835933f850 Increase LUA_IDSIZE so that long script filenames as well as long script lines fit into the error logging buffer DL6ER 2024-09-23 13:25:34 +02:00