We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
查看状态
systemctl status firewalld firewall-cmd --state
firewall-cmd --get-active-zones firewall-cmd --permanent --zone=public --list-all
开放4222、5222端口
firewall-cmd --permanent --zone=public --add-port=4222/tcp firewall-cmd --permanent --zone=public --add-port=5222/tcp
启用配置
systemctl enable firewalld
查看iptables
iptables-save
iptables -A IN_public_allow -p tcp -m tcp --dport 4222 -m conntrack --ctstate NEW -j ACCEPT iptables -A IN_public_allow -p tcp -m tcp --dport 5222 -m conntrack --ctstate NEW -j ACCEPT
保存iptables配置
The text was updated successfully, but these errors were encountered:
No branches or pull requests
firewall
查看状态
开放4222、5222端口
启用配置
systemctl enable firewalld
iptables
查看iptables
开放4222、5222端口
保存iptables配置
The text was updated successfully, but these errors were encountered: