diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/defaults/main.yml b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/defaults/main.yml index 115b2a4..19c217a 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/defaults/main.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/defaults/main.yml @@ -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 diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/tasks/main.yml b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/tasks/main.yml index e9909d1..c779ddd 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/tasks/main.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/tasks/main.yml @@ -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 diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/templates/nftables.conf.j2 b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/templates/nftables.conf.j2 index c93a929..e477c8e 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/templates/nftables.conf.j2 +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/templates/nftables.conf.j2 @@ -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 { diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/defaults/main.yml b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/defaults/main.yml index 8cae3ea..4cc0d98 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/defaults/main.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/defaults/main.yml @@ -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