Under ubuntu how close a port?

1. Turn on the firewall

  sudo ufw enable

2. Shut down a port, such as port 80

  sudo ufw deny 80

3. Query the current status of the firewall

  sudo ufw status

Guess you like

Origin www.cnblogs.com/dakewei/p/10987924.html