目录
- 12.1. firewalld
-
- 12.1.1. firewall-cmd
- 12.2. 如果你不习惯使用firewalld想用回Iptables
12.1. firewalld
# systemctl start firewalld # systemctl stop firewalld # systemctl enable firewalld # systemctl disable firewalld
12.1.1. firewall-cmd
# firewall-cmd --state # firewall-cmd --list-all # firewall-cmd --list-interfaces # firewall-cmd --get-service # firewall-cmd --query-service service_name # firewall-cmd --add-port=8080/tcp
开放服务 --permanent 表示永久生效
# firewall-cmd --add-service=http # firewall-cmd --permanent --add-service=http # systemctl restart firewalld
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>comments powered by Disqus
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。