GNAI-025: Firewall erlaubt podman bridge (aardvark-dns 10.89.0.1:53 + intra-10.89.0.0/16 forward) — sonst kein Inter-Container-DNS/Traffic; FLUXER_PROFILE_PSEUDONYM_SECRET ergänzt
Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -6,6 +6,10 @@ fluxer_firewall_ssh_port: 22
|
||||
|
||||
# CT 103 (NPM) is the only host allowed to reach the Fluxer HTTP endpoints.
|
||||
fluxer_firewall_reverse_proxy_ipv4: 10.0.0.10/32
|
||||
# Podman bridge network of the fluxer compose stack (aardvark-dns gateway
|
||||
# 10.89.0.1:53 + inter-container traffic must pass the CT firewall)
|
||||
fluxer_firewall_podman_subnet: 10.89.0.0/16
|
||||
fluxer_firewall_podman_dns_ip: 10.89.0.1
|
||||
fluxer_firewall_app_proxy_port: 8080
|
||||
fluxer_firewall_livekit_signaling_port: 7880
|
||||
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
- fluxer_firewall_active_table.stdout is search('SSH management')
|
||||
- fluxer_firewall_active_table.stdout is search('Fluxer app-proxy via NPM')
|
||||
- fluxer_firewall_active_table.stdout is search('default input deny')
|
||||
- fluxer_firewall_active_table.stdout is search('CT 117 forwards nothing')
|
||||
- fluxer_firewall_active_table.stdout is search('CT 117 forwards nothing else')
|
||||
- fluxer_firewall_active_table.stdout is search('podman bridge intra-network')
|
||||
fail_msg: The active nftables policy does not match the declared CT 117 policy.
|
||||
when: not ansible_check_mode
|
||||
|
||||
@@ -40,6 +40,9 @@ table inet ghostnet_filter {
|
||||
udp dport {{ fluxer_firewall_livekit_rtp_port_range }} counter accept comment "LiveKit RTP media range (voice)"
|
||||
{% endif %}
|
||||
|
||||
ip saddr {{ fluxer_firewall_podman_subnet }} ip daddr {{ fluxer_firewall_podman_dns_ip }} udp dport 53 counter accept comment "podman aardvark-dns"
|
||||
ip saddr {{ fluxer_firewall_podman_subnet }} ip daddr {{ fluxer_firewall_podman_dns_ip }} tcp dport 53 counter accept comment "podman aardvark-dns tcp"
|
||||
|
||||
counter drop comment "default input deny"
|
||||
}
|
||||
|
||||
@@ -47,7 +50,9 @@ table inet ghostnet_filter {
|
||||
type filter hook forward priority 10; policy drop;
|
||||
|
||||
ct state invalid counter drop
|
||||
counter drop comment "CT 117 forwards nothing"
|
||||
ct state established,related counter accept
|
||||
ip saddr {{ fluxer_firewall_podman_subnet }} ip daddr {{ fluxer_firewall_podman_subnet }} counter accept comment "podman bridge intra-network"
|
||||
counter drop comment "CT 117 forwards nothing else"
|
||||
}
|
||||
|
||||
chain output {
|
||||
|
||||
@@ -88,6 +88,7 @@ fluxer_stack_secret_specs:
|
||||
FLUXER_CONNECTION_INITIATION_SECRET: 32
|
||||
FLUXER_GATEWAY_RPC_AUTH_TOKEN: 32
|
||||
FLUXER_ERLANG_COOKIE: 32 # runtime-required by the gateway image (not a ${:?})
|
||||
FLUXER_PROFILE_PSEUDONYM_SECRET: 32 # runtime-required by the shard services
|
||||
FLUXER_SUDO_MODE_SECRET: 32
|
||||
FLUXER_ADMIN_SECRET_KEY_BASE: 32
|
||||
FLUXER_ADMIN_OAUTH_CLIENT_SECRET: 32
|
||||
|
||||
Reference in New Issue
Block a user