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