systemctl status firewalld
systemctl start firewalld
service firewalld restart
systemctl stop firewalld
systemctl disable firewalld
systemctl enable firewalld
firewall-cmd --zone=public --permanent ...
firewall-cmd --list-all
firewall-cmd --runtime-to-permanent
firewall-cmd --reload
firewall-cmd --list-ports
firewall-cmd --query-port=8080/tcp
firewall-cmd --add-port=80/tcp
firewall-cmd --add-port=8080-8085/tcp
firewall-cmd --remove-port=8080/tcp
firewall-cmd --add-rich-rule='rule family="ipv4" source address="192.168.1.100" port port="200" protocol="tcp" accept'
firewall-cmd --remove-rich-rule='规则'
firewall-cmd --permanent --remove-rich-rule='规则'
firewall-cmd --list-rich-rules
firewall-cmd --permanent --list-rich-rules
firewall-cmd --add-rich-rule='rule family="ipv4" source address="192.168.1.100" forward-port port="200" protocol="tcp" to-port="3306" to-addr="192.168.1.115"'
firewall-cmd --add-masquerade
firewall-cmd --add-forward-port=port=100:proto=tcp:toport=200:toaddr=192.168.1.115
firewall-cmd --remove-forward-port=port=100:proto=tcp:toport=200:toaddr=192.168.1.115
https://www.fcblog.cn/post/52.html
https://blog.csdn.net/qq_41153478/article/details/83033688
systemctl status iptables
systemctl stop iptables
systemctl start iptables
systemctl restart iptables
systemctl disable iptables.service
systemctl enable iptables.service
vi /etc/sysconfig/iptables