Answers for "centos 7 firewall open port"

4

firewall port open centos

firewall-cmd --zone=public --add-port=2888/tcp --permanent
Then remember to reload the firewall for changes to take effect.

firewall-cmd --reload
Posted by: Guest on February-21-2021
0

centos 7 port open

firewall-cmd --zone=public --add-port=55555/tcp --permanent
firewall-cmd --reload
Posted by: Guest on July-31-2020
1

open port 22 centos 7

##By firewall-add port 22
firewall-cmd --zone=public --add-port=22/tcp --permanent
firewall-cmd --reload

#check if port 22 open
iptables-save | grep 22

#Remove  port 22
firewall-cmd --zone=public --remove-port=22/tcp --permanent
firewall-cmd --reload

##By iptables= add port 22
service iptables status
service iptables start
chkconfig --list iptables
chkconfig iptables on
iptables -L
#add port
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
#delete port
iptables -D INPUT -i eth0 -p tcp --dport 22 -j ACCEPT

#check if port 22 open
iptables-save | grep 22
Posted by: Guest on December-15-2020
0

is firewall running centos 7

systemctl status firewalld
Posted by: Guest on December-02-2020

Browse Popular Code Answers by Language