Ubuntu system, opening and closing the firewall, and opening, closing and viewing ports

888u

Last update at :2024-07-10,Edit by888u

1. Turn on the firewall

sudo ufw enable

2. Restart the firewall

sudo ufw reload

3. Open the desired port (such as 9000)

ufw allow 9000

4. Close a certain port (such as 9000)

ufw delete allow 9000

5. Check the local port usage

ufw status

Recommended site search: check ip address, free proxy ip, how much does general server hosting cost, permanent free linux server, Foshan high defense server, free cloud server, wordpress space, filing network, virtual host purchase for 0 yuan, Hong Kong space,

Ubuntu system, opening and closing the firewall, and opening, closing and viewing ports

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码