feat: добавить аддон splitgw — прозрачный split-tunnel gateway (sing-box + Hysteria2 TPROXY)

- Роль: defaults, tasks (main/deploy-host/deploy-k8s), handlers, templates (sing-box config, iptables setup/teardown, systemd, K8s DaemonSet/ConfigMap/Secret)
- Режимы: systemd (host) и K8s DaemonSet с hostNetwork + privileged init-container
- Маршрутизация: YouTube/Google → Hysteria2, RU (geoip/geosite) → прямой, остальное → прямой
- DNS без утечек: protocol=dns перехватывается TPROXY, per-domain DNS серверы
- Интеграция: inventory [splitgw], addons.yml flag, Makefile target, playbooks/addons.yml
- Документация: README.md, docs/addons.md, README.md (счётчик 36)
This commit is contained in:
Sergey Antropoff
2026-04-26 06:56:17 +03:00
parent fb5dcbc3af
commit 07fdc9a994
22 changed files with 1505 additions and 3 deletions

View File

@@ -287,3 +287,11 @@
when: addon_hysteria2_server | default(false) | bool
roles:
- role: "{{ playbook_dir }}/../addons/hysteria2-server/role"
- name: Install Split Gateway (sing-box + Hysteria2 TPROXY)
hosts: splitgw
gather_facts: true
become: true
when: addon_splitgw | default(false) | bool
roles:
- role: "{{ playbook_dir }}/../addons/splitgw/role"