open specific port on ubuntu

To block SSH connections, enter sudo ufw deny ssh. Each program that provides services uses a specific network port. To enable access to that program's services, you may need to allow access to its assigned port on the firewall. To allow connections on port 53, enter sudo ufw allow 53 in a terminal.

原文地址:https://www.cnblogs.com/goldengallo/p/6905155.html