Configuring ports for operation of the application

December 13, 2023

ID 181847

Perform the necessary steps for configuring ports if a firewall is enabled on the server.

To configure ports for operation of the application:

  1. Open access to the required ports. To do so, run one of the following commands depending on the utilized operating system:
    • CentOS, Red Hat Enterprise Linux, or ALT Server:

      firewall-cmd --add-port=<port>/<protocol> --permanent

    • Ubuntu:

      ufw allow <port>

    • Debian:

      apt-get install iptables-persistent

      iptables -A INPUT -p <protocol> --dport <port> -j ACCEPT

  2. Apply the changes. To do so, run one of the following commands depending on the utilized operating system:
    • CentOS or Red Hat Enterprise Linux:

      firewall-cmd --reload

    • Debian:

      netfilter-persistent save

    If you are using Ubuntu OS, the changes are applied automatically.

Ports will be configured for operation of the application.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.