Ubuntu firewall settings

Source: Internet
Author: User
By default, ubuntu firewall provides a very good firewall tool (UFW). UFW is a host-side iptables firewall configuration tool. The purpose of this tool is to provide users with an interface that can be easily controlled, just like package integration and dynamic detection of open port 1... by default, ubuntu firewall provides a very good firewall tool (UFW), which is a host.
Iptables firewall configuration tool. The purpose of this tool is to provide users with an interface that can be easily controlled, just like package integration and dynamic detection of open ports. 1. port opening and shielding in ubuntu # ufw default allow | deny $ sudo ufw allow 22 open 22 Port $ sudo ufw deny 22 Shield 22 Port $ sudo ufw allow 22/tcp open TCP/IP 22 Port 2. delete an opened Port $ sudo ufw delete allow 22 3. set the default policy (for example, "mostly open" vs "mostly closed") # ufw default allow | deny $ sudo ufw default deny. by default, all ports are blocked. 4. view the firewall status $ sudo ufw status 5. enable or disable the firewall # ufw enable | disable $ sudo ufw enable the firewall $ sudo ufw disable
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.