fp/ansible/roles/swarm/tasks/firewall.yml
CJ_Clippy 8ef71691e0
Some checks are pending
fp/our CI/CD / build (push) Waiting to run
ci / test (push) Waiting to run
use container port 3000
2025-10-07 04:12:07 -08:00

14 lines
398 B
YAML

---
- name: Allow Docker Swarm ports on enp8s0
community.general.ufw:
rule: allow
port: "{{ item.port }}"
proto: "{{ item.proto }}"
direction: in
interface: enp8s0
loop:
- { port: 2377, proto: tcp } # Swarm control plane
- { port: 7946, proto: tcp } # Gossip TCP
- { port: 7946, proto: udp } # Gossip UDP
- { port: 4789, proto: udp } # Overlay network VXLAN