fix: Limit ports to appropriate protocols

This commit is contained in:
2025-08-02 20:35:15 +02:00
parent 18a1d1ee0b
commit 76acc6e772
@@ -8,8 +8,8 @@ ufw allow 80 comment HTTP
ufw allow 443 comment HTTPS ufw allow 443 comment HTTPS
%{if main_node ~} %{if main_node ~}
ufw allow to ${node_ip} port 2377 comment "Swarm join port and communication between manager nodes" ufw allow to ${node_ip} port 2377 proto tcp comment "Swarm join port and communication between manager nodes"
%{endif ~} %{endif ~}
ufw allow to ${node_ip} port 7946 comment "overlay network node discovery" ufw allow to ${node_ip} port 7946 comment "overlay network node discovery"
ufw allow to ${node_ip} port 4789 comment "overlay network traffic" ufw allow to ${node_ip} port 4789 proto udp comment "overlay network traffic"
ufw enable ufw enable