This document describes the port requirement for salt-minion and salt-master
Salt-minion fails to authenticate with the Salt-master, leading to connectivity failures. The minion logs (/var/log/salt/minion
) may show error messages such as:
This document outlines the necessary network port requirements between salt-minion and salt-master to ensure proper communication.
Salt-Config 8.17
The communication failure between the salt-minion and salt-master typically occurs when required network ports are not open or are being blocked by a firewall or security group.
Key Points:
Salt follows a minion-initiated communication model.
The salt-minion initiates all communication to the salt-master.
The salt-master does not initiate connections to the minion.
If the required ports (such as TCP 4505 and 4506) are not open for inbound communication to the salt-master, authentication and command execution will fail, resulting in timeouts and errors.
The Salt master-to-minion communication model only requires inbound connections into the Salt master. Connections are established from the minion and never from the master.
For detailed information on port requirements for salt, refer to salt project documentation https://docs.saltproject.io/salt/install-guide/en/latest/topics/before-you-start/check-network-ports.html
Suggested Changes
To resolve the issue:
Ensure the following ports are open on the Salt-master:
TCP 4505 – Used for initial connection (publisher port)
TCP 4506 – Used for return communication and job management (request server port)
Verify that no firewalls or security groups are blocking inbound traffic to these ports on the Salt-master.
Confirm that the salt-master’s FQDN is resolvable and reachable from the salt-minion.
Test connectivity from the minion using tools like telnet, nc, or curl to ensure the ports are reachable.
If operating in a multi-master setup, ensure all masters are reachable and the same port rules apply to each master.
For further details on port requirements and network architecture, refer to the official Salt Project documentation: Salt Network Port Requirements