Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 12 章 Firewall

目录

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