Upon entering following command,
firewall-cmd --add-service=postgresql-13 --permanent
I am getting this
Error: INVALID_SERVICE: 'postgresql-13' not among existing services
Where, postgresql-13 is my service.
What must have gone wrong?
Did you define a custom firewalld service named postgresql-13
? You didn't mention doing so.
Firewalld services define one or more ports and/or protocols to allow in the firewall. They are disjoint from systemd services.
If you wanted to enable incoming traffic to PostgreSQL, the correct service name is postgresql
.