Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

第 41 章 Firewalld

目录

41.1. firewalld
41.1.1. firewall-cmd
41.2. 如果你不习惯使用firewalld想用回Iptables

41.1. firewalld

# systemctl start firewalld
# systemctl stop firewalld
# systemctl enable firewalld
# systemctl disable firewalld
		

41.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			
			
comments powered by Disqus