Ubuntu off Firewall

Source: Internet
Author: User

1. Close the Ubuntu firewall  ufw disabl2. Uninstall Iptables         apt-get  remove iptab1. Use the iptables -f command to turn off the firewall, but before using this command, remember to use IPTABLES -L to see the default target for all the chains in your system. Iptables -f This command simply clears all rules and does not really shut down iptables. Imagine if your chain default target is drop, you would have had rules to allow some specific ports,  but once applied iptables   -l  After you clear all the rules, the default target will block any access, including, of course, your remote SSH Management Server. So I recommend that the Shut down Firewall command is   iptables -p input accept  iptables -p forward accept   iptables -p output accept  iptables -f    In short, when you want to make any changes to your server, It is best to have a test environment that has been fully tested and then applied to your server. In addition, to use good iptables, it is necessary to understand the operation principle of  iptables, know how each packet iptables how to deal with. So that the rules can be written accurately, Avoid unnecessary trouble. 2. Ubuntu is not firewall by default, unless you install it yourself, how to delete it. If it is enabled iptables  deleted the Sudo apt-get remove iptables do not remember apt-get  to remove is not  remove  , some days it doesn't work.  iptables is the kernel module can not be deleted now look at your iptables rules Sudo iptables -lsudo iptables  -t nat -l if it's allEmpty is not a question of iptables. If there are many rules, empty the rules and modify the default policy Sudo iptables -fsudo iptables -t nat -fsudo  iptables -p acceptsudo iptables -t nat -p accept Learn more about open source, go to Lupa community to see it.


This article is from the "richylu____ Records" blog, so be sure to keep this source http://richylu.blog.51cto.com/1481674/1893267

Ubuntu off Firewall

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.