0%
防火墙配置
iptables
1 2 3 4 5 6 7 8
| systemctl status iptables.service
iptables -L -n
iptables -I INPUT -p tcp --dport 9000 -m state --state NEW -j ACCEPT
iptables-save > /etc/sysconfig/iptables
|
防火墙端口配置需要放到哪两句之前
解决Linux:No route to host
firewall
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| firewall-cmd --zone=public --add-port=7000/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-all
firewall-cmd --state
systemctl restart firewalld
systemctl stop firewalld.service 开机禁用 systemctl disable firewalld.service
|