X
X
X
X

Knowledge Base

HomepageKnowledge BaseProblem of LinuxLinux firewall open ports

Linux firewall open ports

firewalld:
firewall-cmd --zone=public --add-port=8080/tcp --permanent(永久开启8080端口)
firewall-cmd --reload
systemctl restart firewalld
Firewall configuration file directory:/etc/firewalld/zones/public.xml
 
iptables:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
service iptables restart
Configuration file directory:/etc/sysconfig/iptables

Can't find the information you are looking for?

Create a Support Ticket
Did you find it useful?
(227 times viewed / 0 people found it helpful)

Top