firewalld防火墙策略配置

firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="192.168.xx.xx" port protocol="tcp" port="18848" accept'
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="192.168.xx.xx" port protocol="tcp" port="18848" accept'
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --add-port=10022/tcp --permanent
firewall-cmd --add-port=16379/tcp --permanent
firewall-cmd --reload

posted @ 2024-03-06 15:44  幸运刘  阅读(139)  评论(0编辑  收藏  举报