aaP_ihisham999
Hello, you have not installed ufw, firewalld firewall. What is your system?
Check for iptables
/sbin/iptables -nL
If the command cannot be executed, there is no firewall.
Try to install and set the rules:
debian/ubuntu:
apt-get install -y ufw
panelPort=7800
sshPort=22
/sbin/ufw allow 20/tcp
/sbin/ufw allow 21/tcp
/sbin/ufw allow 80/tcp
/sbin/ufw allow 888/tcp
/sbin/ufw allow 39000:40000/tcp
/sbin/ufw allow ${panelPort}/tcp
/sbin/ufw allow ${sshPort}/tcp
/sbin/ufw reload
/sbin/ufw enable
/sbin/ufw status
Centos:
yum install firewalld -y
panelPort=7800
sshPort=22
firewall-cmd --set-default-zone=public >/dev/null 2>&1
firewall-cmd --permanent --zone=public --add-port=20/tcp >/dev/null 2>&1
firewall-cmd --permanent --zone=public --add-port=21/tcp >/dev/null 2>&1
firewall-cmd --permanent --zone=public --add-port=80/tcp >/dev/null 2>&1
firewall-cmd --permanent --zone=public --add-port=${panelPort}/tcp >/dev/null 2>&1
firewall-cmd --permanent --zone=public --add-port=${sshPort}/tcp >/dev/null 2>&1
firewall-cmd --permanent --zone=public --add-port=39000-40000/tcp >/dev/null 2>&1
systemctl start firewalld
firewall-cmd --reload
systemctl enable firewalld
firewall-cmd --list-all