标签:reload udp lin class col wal address tcp 重启
开放一个端口:
firewall-cmd --zone=public --add-port=22/tcp –permanent
开放一个范围端口对外部所有地址生效:
firewall-cmd --zone=public --add-port=100-500/tcp --permanent
firewall-cmd --zone=public --add-port=100-500/udp --permanent
开放指定端口对指定IP端开放:
firewall-cmd --permanent --add-rich-rule ‘rule family=ipv4 source address=10.159.37.182/32 port port=6380-6383 protocol=tcp accept‘
重启以使配置生效:
firewall-cmd --reload
firewall-cmd --zone=public --add-port=6380/tcp –permanent
标签:reload udp lin class col wal address tcp 重启
原文地址:http://www.cnblogs.com/songqingbo/p/7646951.html