Commit Graph

342 Commits

Author SHA1 Message Date
DL6ER b7dfdb4ef8 Add new queries per second (QPS) metric exposed via GET /api/stats/summary as .queries.frequency and /api/info/ftl as .query_frequency. The QPS value is averaged over 30 seconds
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-09-07 11:20:44 +02:00
DL6ER 0fa865a29e Add GET /api/stats/summary -> .gravity.last_update timestamp exposing the last gravity update via the API
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-09-02 06:49:53 +02:00
DL6ER 42b626f36c Rename dns.cache.upstreamTTL -> dns.cache.upstreamBlockedTTL
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-26 21:40:27 +02:00
DL6ER af1c5b3039 Add new config option dns.cache.upstreamTTL (defaulting to one day) for configuring how long relpies from upstream are cached
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-21 20:18:59 +02:00
DL6ER 23c2607165 Add new GET /api/padd endpoint
Build, Test, Deploy / smoke-tests (push) Has been cancelled
Codespell / spell-check (push) Has been cancelled
Check for merge conflicts / merge-conflict (push) Has been cancelled
API validation / Node (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Has been cancelled
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-05 22:06:53 +02:00
DL6ER 64144a960c Add session.x_forwarded_for property to API sessions
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-24 08:39:44 +02:00
DL6ER d6bf943be2 Remove webserver.tls.rev_server config option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-24 08:39:41 +02:00
DL6ER f07d902802 Merge branch 'development-v6' into tweak/api_network_info
Build, Test, Deploy / smoke-tests (push) Has been cancelled
Codespell / spell-check (push) Has been cancelled
Check for merge conflicts / merge-conflict (push) Has been cancelled
API validation / Node (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Has been cancelled
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-19 09:47:18 +02:00
DL6ER 66b7fdf1cc Add link-netnsid and address types
Build, Test, Deploy / smoke-tests (push) Has been cancelled
Codespell / spell-check (push) Has been cancelled
Check for merge conflicts / merge-conflict (push) Has been cancelled
API validation / Node (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Has been cancelled
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-15 07:32:33 +02:00
DL6ER 7c42a785cc Report cstamp/tstamp in wall_clock time
Build, Test, Deploy / smoke-tests (push) Waiting to run
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Blocked by required conditions
Codespell / spell-check (push) Waiting to run
Check for merge conflicts / merge-conflict (push) Waiting to run
API validation / Node (push) Waiting to run
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-14 22:45:57 +02:00
DL6ER 35166fd00c Fix a small bug in the API response verifier and ensure we always favor using 64 bit interface statistics if available. The reason is that the legacy statistics use 32 bit conters which overflow every 4 GB of interface traffic
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-14 15:45:29 +02:00
DL6ER 6cf1a6774e Add netlink implementation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-09 21:57:45 +02:00
DL6ER 172eaa52b9 Parse additional kernel info to get more IPv6 address details and laso parse IPv6 routing table
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-08 22:48:12 +02:00
DL6ER c846b21876 Add new ntp.sync.active boolean to ease disabling of the NTP client. Also move all the RTC properties inside ntp.sync because this is where they apply and where RTC sync can be disabled
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-01 20:22:03 +02:00
DL6ER 630b3582f7 Merge branch 'development-v6' into new/cli_pw 2024-06-29 21:53:32 +02:00
DL6ER ab52ea063c Merge branch 'development-v6' into new/ntp
Build, Test, Deploy / smoke-tests (push) Waiting to run
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Blocked by required conditions
Codespell / spell-check (push) Waiting to run
Check for merge conflicts / merge-conflict (push) Waiting to run
API validation / Node (push) Waiting to run
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 15:13:37 +02:00
DL6ER 069cc309b0 Remove webserver.api.localAPIauth option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-19 22:07:18 +02:00
DL6ER b74696fc77 Remove webserver.api.searchAPIauth option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-19 22:05:49 +02:00
DL6ER 784e119892 Add CLI password generation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-19 22:01:13 +02:00
DL6ER 950fc60ed3 Limit app password permissions by default. Add new app_sudo mode for users to remove this new limitation if they really need to
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-14 19:10:58 +02:00
DL6ER 791e3a8097 Add RTC synchronization
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-07 20:01:04 +02:00
DL6ER 3971e67849 Add NTP background synchronization
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-04 23:32:07 +02:00
DL6ER 7c0d7e87e8 Add debug.ntp flag
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-04 07:55:06 +02:00
DL6ER 3d2fd6d6a2 Add new misc.readOnly config option to force the configuration to be read-only. It can only be modified through the config file but neither the API nor the CLI as long as read-only mode is enabled
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-02 12:27:20 +02:00
DL6ER 391f7d0914 Merge branch 'development-v6' into new/ntp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-01 06:39:25 +02:00
DL6ER 1a5e7f6bf8 Add new dhcp.ignoreUnknownClients option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-30 12:26:40 +02:00
DL6ER 5a539a9d5c Add NTP-server/client implementation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-28 20:07:47 +02:00
DL6ER 01697669ac API /clients: Add note that {client} needs to be URI-encoded (if specified) and add documentation of read-only optional {name0} field
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-03 20:05:00 +02:00
DL6ER 49a5a0c60c Provide human-readable message about the session status when authenticating
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-04-25 21:14:05 +02:00
DL6ER f2a7662e95 Be more verbose in which tables are imported during teleporter importing
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-04-02 21:59:45 +02:00
DL6ER dab6ec75bf Merge branch 'development-v6' into tweak/select_teleporter
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-30 08:23:11 +01:00
DL6ER 9c7384e3a4 Add new dhcp.logging option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-24 08:35:33 +01:00
Dominik 0d2fcd09ef Merge pull request #1872 from pi-hole/tweak/DBexport
Remove config option database.DBexport
2024-03-17 20:34:36 +01:00
DL6ER 66653ae0d5 Merge branch 'development-v6' into fix/overTimeGraphs 2024-03-16 09:05:00 +01:00
DL6ER 74eba5f605 Remove config option database.DBexport. Its implementation was broken by design as its value was always overwritten by the condition (database.maxDBdays > 0). Replace it with exactly this condition and document the behavior in the config file
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-16 08:34:19 +01:00
Dominik 4b2a4be94c Merge pull request #1868 from pi-hole/new/useWAL
Make WAL mode for pihole-FTL.db optional
2024-03-04 19:40:29 +01:00
DL6ER e3c4dcf215 Restructure API response from /history/clients and /history/database/clients to allow for sparse data.
Add new config option webserver.api.client_history_global_max controling if the activities chart should sort and show the *global* (integrated over 24 hours) or the `local` (measured individually in each time slot) most active clients
Allow setting webserver.api.maxClients to 0 to always return all clients in /api/history/clients

Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-16 17:15:20 +01:00
DL6ER 750db7ecda Merge branch 'development-v6' into tweak/allow_adlist_dups
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-13 21:06:43 +01:00
Dominik 41725fd343 Merge pull request #1887 from pi-hole/tweak/apppw_descrition
Improve description of GET /auth/app endpoint
2024-02-13 21:05:42 +01:00
Dominik 2582043a2d Apply code review
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Dominik <DL6ER@users.noreply.github.com>
2024-02-13 19:58:27 +01:00
DL6ER 96f4acb516 Add documentation for automatically added new DNSSEC-related metrics
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-13 17:03:05 +01:00
DL6ER 81a1da69cb Improve description of GET /auth/app endpoint
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-13 14:52:33 +01:00
DL6ER 7a919cbf59 Allow narrowing down the (ad)list type using the (optional) query parameter ?type={allow,block}
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-13 08:42:08 +01:00
DL6ER e3e839880e Merge branch 'development-v6' into update/dnsmasq 2024-02-13 07:12:16 +01:00
DL6ER 54fe14f1bf Include forwarded queries in /api/history and count stale-cache queries as cached queries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-11 20:35:15 +01:00
Dominik 9e3ccd917d Merge pull request #1797 from pi-hole/new/multi_revServer
Add support for multiple reverse servers
2024-02-11 06:52:31 +01:00
Dominik 276ba4210f Merge pull request #1841 from pi-hole/tweak/list_id
Make adlist ID available, rename queries.regex_id -> queries.list_id
2024-02-09 20:52:35 +01:00
DL6ER f8c07fd78c Merge branch 'development-v6' into update/dnsmasq 2024-02-03 22:06:02 +01:00
DL6ER 714f14babb Add optional JSON object .import to POST /api/teleporter that allows the user to pick what is to be restored
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-03 19:45:55 +01:00
DL6ER 3dff85623c Add new config option database.useWAL defaulting to true making the use of the WAL journal optional for the on-disk query database
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-01-29 16:02:01 +01:00