List all the available services

$ firewall-cmd --get-services

Add service to available list

$ firewall-cmd --permanent --zone=public --add-service=your_service

Remove service from available list

$ firewall-cmd --permanent --zone=public --remove-service=your_service

Check service from available list

$ firewall-cmd --list-services
    分享到:
分类: Linux

发表评论

电子邮件地址不会被公开。 必填项已用*标注

验证码 *