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