Configuring ports for operation of the application
Configuring ports for operation of the application
December 19, 2024
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:
- 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
- CentOS, Red Hat Enterprise Linux, or ALT Server:
- 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.
- CentOS or Red Hat Enterprise Linux:
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.