linux disable firewall
# Check status, stop and disable ufw (Ubuntu) or Firewalld (CentOS)
# ufw instructions lower
# enable instructions included at the bottom
#check if Firewalld is running:
sudo systemctl status firewalld
#Stop firewalld
sudo systemctl stop firewalld
#disable firewalld
sudo systemctl disable firewalld
#check if ufw is running
sudo ufw status
or
sudo systemctl status ufw
#stop the ufw on linux
sudo ufw disable
#disable ufw
sudo systemctl disable ufw
------------------
#enable firewalld
sudo systemctl enable firewalld
#start firewalld
sudo systemctl start firewalld
------------------
#enable ufw
sudo ufw enable
#start ufw
systemctl start ufw