BIRD-Config nach Ansible (ffc-mash) auslagern - #9
Open
oliverlorenz wants to merge 1 commit into
Open
Conversation
Die BIRD-/BIRD6-Konfiguration wird nicht mehr zur Laufzeit von lib/bird.sh / lib/bird6.sh aus conf/bird*.conf per sed gerendert, sondern vom Ansible-Playbook ffc-mash (Rolle ffc_vpn_gateway) nach /etc/bird/ deployt; bird/bird6 laufen jetzt als von Ansible verwaltete systemd-Dienste. - lib/bird.sh / lib/bird6.sh: nur noch Policy-Routing (Tabelle 100) + NAT; bird_start/bird_stop delegieren an systemctl. Config-Rendering, BGP-Peer- und Routen-Funktionen sowie das Country-Route-Rendering entfernt. - lib/radvd.sh: die ::/0-Default-Route in BIRD6 kommt jetzt aus der Rolle (ffc_vpn_gateway_bird_ipv6_uplink). - conf/: bird.conf, bird6.conf, bird-peers.conf, bird-routes.conf und conf/routes/ entfernt; COUNTRY/WANGW aus general.conf raus; .gitignore aufgeräumt. - docs/: Architektur, Backbone, Betrieb, Komponenten, Sicherheitsmodell, IP-Adressplan und README auf die neue Aufteilung angepasst. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ZtqGKZgfboGn2VEZzAhsY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Baut auf #8 auf (Country-Routen statisch) und zieht den nächsten Schritt: die
komplette BIRD-/BIRD6-Konfiguration wandert von diesen Skripten ins Ansible-Playbook
ffc-mash (Rolle
ffc_vpn_gateway) –Gegenstück: FreifunkChemnitz/ffc-mash#70. Voraussetzung u. a. für ffc-mash#55
(Abkündigung
routing-backend/api.chemnitz.freifunk.net).Was sich ändert
lib/bird.sh/lib/bird6.shrendern nicht mehr zur Laufzeitconf/*.local.confpersedund startenbird/bird6nicht mehr von Hand. Stattdessen:lib/bird.sh/lib/bird6.sh: nur noch Policy-Routing (ip rule→ Tabelle 100)und NAT (
iptables MASQUERADE).bird_start/bird_stopdelegieren ansystemctl.Entfernt:
bird_add_peer,bird_add_route,bird_check_route,bird_render_country_routes(+ IPv6-Pendants) und das komplettesed-Templating.lib/radvd.sh: die::/0-Default-Route in BIRD6 kommt jetzt aus der Ansible-Rolle(
ffc_vpn_gateway_bird_ipv6_uplink).conf/:bird.conf,bird6.conf,bird-peers.conf,bird-routes.confundconf/routes/gelöscht;COUNTRY/WANGWausgeneral.conf;.gitignoreaufgeräumt.docs/+README.md: Architektur, Backbone-Netzwerk, Betrieb, Komponenten,Sicherheitsmodell und IP-Adressplan auf die neue Aufteilung angepasst.
Die BIRD-Config selbst (Router-ID/ASN aus der öffentlichen IPv4, BGP-Peers aus der
Inventory-Gruppe
routers, Mesh-Route, Länder-/Ausnahmerouten) wird von der Rolle nach/etc/bird/gerendert;bird/bird6laufen als von Ansible verwaltete systemd-Dienste.Deploy-Reihenfolge⚠️
Die Rolle klont dieses Repo mit
version: chemnitz. Dieser PR muss aufchemnitzgemerged sein, bevor die neue
ffc_vpn_gateway-Rolle deployt wird – sonst kämpfenaltes
bird_init/bird -cund die Ansible-bird.serviceum Kernel-Tabelle 100.Test
ASN, alle BGP-Sessions,
<WANIP>/32, Mesh-Route und_global.conf-Länderrouten stimmenzeilenweise mit dem bisherigen
lib/bird.sh-Output überein.bash -n lib/bird.sh lib/bird6.sh lib/radvd.shok.bird -p/birdc show protocolsauf einem echten Gateway nach dem Deploy.🤖 Generated with Claude Code