当前位置:网站首页>Cenos7 firewall command
Cenos7 firewall command
2022-06-22 07:59:00 【CodeStorys】
cenOS7 Use Firewall A firewall , The relevant commands are as follows :
install Firewall command :
yum install firewalld firewalld-config
Firewall Open common port commands :
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=22/tcp --permanent
firewall-cmd --zone=public --add-port=21/tcp --permanent
firewall-cmd --zone=public --add-port=53/udp --permanent
Firewall Close common port command :
firewall-cmd --zone=public --remove-port=80/tcp --permanent
firewall-cmd --zone=public --remove-port=443/tcp --permanent
firewall-cmd --zone=public --remove-port=22/tcp --permanent
firewall-cmd --zone=public --remove-port=21/tcp --permanent
firewall-cmd --zone=public --remove-port=53/udp --permanent
Batch add interval ports
firewall-cmd --zone=public --add-port=4400-4600/udp --permanent
firewall-cmd --zone=public --add-port=4400-4600/tcp --permanent
Open firewall command :
systemctl start firewalld.service
Restart the firewall command :
firewall-cmd --reload perhaps service firewalld restart
Check out the port list :
firewall-cmd --permanent --list-port
Disable firewall
systemctl stop firewalld
Set boot up
systemctl enable firewalld
Stop and disable startup
sytemctl disable firewalld
Check the status
systemctl status firewalld
perhaps
firewall-cmd --state
边栏推荐
- 充电宝的玄机
- (8)顺序栈和链栈
- A glimpse of easy rule
- Multimedia architecture -- Introduction to display
- Docker install redis
- Asynchronous sending and receiving of message passing based concurrent programming (MPI)
- LVS Technology Practice
- [multi thread programming] thread scheduling strategy and priority
- Detailed explanation of subnet mask
- 丰田bZ4X取消上市发布会,就算低温充电问题不存在,产品力如何?
猜你喜欢

A training summary of Intranet penetration test

Model electricity experiment -- Experiment 2 JFET common source amplifier circuit

Usage and understanding of async/await in JS

面试突击59:一个表中可以有多个自增列吗?

Microsoft Remote Desktop 10.7.6 official

Problems caused by canvas palette width and height and canvas width and height

How Navicat queries the password information of the connected database

An example shows the difference between let and VaR

Phpcms mobile portal configuration

什么是分布式事务
随机推荐
The difference between get and post requests
4、 Button component
RAID technology
9、 Textinput component
LVS Technology Practice
Expérience électrique en mode - - expérience 2 circuit d'amplification de source commune JFET
Daily maintenance of website
Unity AssetBundle packaging
What is distributed transaction
Canvastotempfilepath of wechat
模電實驗——實驗二 JFET共源極放大電路
Do you want to modify the title of the website
MySQL transactions
Win openfeign from simple to deep
It operation and maintenance knowledge map
Symbolic processing of crash log
Multimedia architecture -- Introduction to display
MTK platform execution disable_ Interrupt signals masked during IRQ will be enabled when I execute enable_ Continue triggering after IRQ
Common array operations in JS
基于消息传递的并发编程(MPI)之异步收发