Disable the firewall in Ubuntu, and disable the firewall in Ubuntu.

Source: Internet
Author: User
Tags ssh server

Disable the firewall in Ubuntu, and disable the firewall in Ubuntu.
By default, ubuntu does not have firewall. Unless you have installed it yourself, you can delete it if you have installed it ..
If you have enabled your own iptables, delete it.

Sudo apt-get remove iptables.
How to disable the ubuntu Firewall

2. in redhat, we can use service iptables stop to disable the firewall, but in some versions, such as ubuntu, this command does not work, you may find many articles on the Internet that tell you to use the iptables-F command to close the firewall, but before using this command, remember to use iptables-L to check the default targets of all links in your system. The iptables-F command only clears all rules, but does not actually close iptables. imagine that if the default target of your chain is DROP, you have rules to allow specific ports, but once iptables-L is applied, After all rules are cleared, the default target will block any access, including remote ssh server management. therefore, the recommended command to disable the firewall is iptables-p input accept iptables-p forward accept.

Disable ubuntu Firewall

Sudo ufw disable
/Etc/ufw. conf modified

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.