Commit graph

22 commits

Author SHA1 Message Date
d81a4ab3b2 Migrate bbrkn from legacy ipset to nftables sets
The gateway (Archie) routes bbrkn domains via nft sets bbrkn_v4/bbrkn_v6
(inet filter), not the legacy ipset. bbrkn was still emitting dead
`ipset=/domain/bbrkn` directives (no such ipset exists) plus a 92-resolve
pointing at 8.8.8.8, both overridden by hand-maintained files on the host.
This makes bbrkn the generator of record for the real scheme.

generate-configs.sh:
- emit `nftset=/domain/$NFTSET_SPEC` (default 4#inet#filter#bbrkn_v4,
  6#inet#filter#bbrkn_v6) into 90-nftset.conf instead of ipset= into
  91-ipset-bbrkn.conf
- DNS_SERVER default 8.8.8.8 -> 127.0.0.1#5350 (host dnsmasq pihole
  delegates bbrkn domains to for VPN resolution + nftset capture)

deploy-to-gateway.sh: two targets, two instances
- 90-nftset.conf -> host /etc/dnsmasq.d (:5350), 92-resolve -> pihole
- full restart of both (dnsmasq SIGHUP does NOT re-read nftset=/server=)
- flush nft sets bbrkn_v4/bbrkn_v6 instead of `ipset flush bbrkn`
- add end-to-end nftset-capture health check via :5350
- rollback restores both files and restarts both instances

Makefile/workflow: rename IPSET_CONF->NFTSET_CONF, add NFTSET_TARGET_DIR
and HOST_DNSMASQ_SVC, DNS_SERVER=127.0.0.1#5350 (escaped `\#` in Make,
quoted in YAML), note runner is ephemeral (cold gekata crawl).

Docs: README + new CLAUDE.md describe the two-dnsmasq / nft-set model;
exit-node DPI failover (10.77.1.2/10.77.2.2) documented as external
(wg-ha.service), not owned by bbrkn.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 23:55:16 +03:00
092e2b7aea Update .forgejo/workflows/deploy.yaml
Some checks failed
Deploy DNS Configuration / deploy (push) Has been cancelled
2026-05-28 20:41:21 +03:00
d31c35b2fc Update .forgejo/workflows/deploy.yaml
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 16m0s
2026-04-19 11:50:58 +03:00
537ae61f63 Рефакторинг 2026-03-21 09:46:15 +03:00
8e1256fa8c Update .forgejo/workflows/scheduled-deploy.yaml-unused
Some checks failed
Deploy DNS Configuration / deploy (push) Failing after 1m40s
2025-11-15 13:33:06 +03:00
1ebc4dd3f0 set DNS to 10.100.1.2
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 18m3s
2025-11-02 14:41:37 +03:00
7ba5a39f0d Set DNS to 10.100.1.2
Some checks failed
Deploy DNS Configuration / deploy (push) Has been cancelled
2025-11-02 14:41:13 +03:00
deaf77bb86 ADD st.vk.com to IGNORE PARTS
Some checks failed
Deploy DNS Configuration / deploy (push) Has been cancelled
2025-11-02 13:42:14 +03:00
Kirill Kodanev
66ecc49990 Add ignored domain: doubleclick yandex mail.ru bigsv.ru mts.ru rambler.ru yadro.ru aif.ru vkvideo.ru tns-counter.ru
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 22m33s
2025-09-22 10:55:53 +03:00
Kirill Kodanev
fd9b8c0889 Remove google from ignored domains
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 2m0s
2025-09-19 18:20:42 +03:00
Kirill Kodanev
594320b601 Add ignored domains via env statement
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 1m37s
2025-09-19 18:17:25 +03:00
Kirill Kodanev
8a0924c36c Add scheduled deploy workflow
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 30m24s
2025-09-19 17:08:48 +03:00
6a957e1d4a Update .forgejo/workflows/deploy.yaml
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 2m42s
2025-09-12 17:39:39 +03:00
Kirill Kodanev
ecb6fa8df6 Rewrite API logic 2025-09-12 17:37:58 +03:00
Kirill Kodanev
af6651fdfa Add debugging information to the output
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 2m16s
2025-09-12 16:03:06 +03:00
Kirill Kodanev
5f0e287b98 Remove a lot of TG domainsm, rewrite scripts
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 2m15s
2025-09-12 15:30:31 +03:00
f133b63feb Fix CONF path in workflow env
Some checks failed
Deploy DNS Configuration / deploy (push) Failing after 12m20s
2025-09-11 23:03:42 +03:00
Kirill Kodanev
31d07d4484 Rewrite logic, use env variables, and add comments to the following code to make it more readable and maintainable. 2025-09-11 19:49:28 +03:00
9a449517ed Fix scripts path and remove workflows action only if we have changes in domains.txt
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 22m14s
2025-09-11 14:17:29 +03:00
61aac16c65 Fix path in chmod command 2025-09-11 14:12:22 +03:00
ec0cfa2adf Add support to find all domains
Some checks failed
Deploy DNS Configuration / deploy (push) Failing after 34s
2025-09-11 14:09:16 +03:00
Kirill Kodanev
0e03de0178 First commit to bbrkn project 2025-09-09 21:21:38 +03:00