当前位置:网站首页>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
边栏推荐
- Unity AssetBundle load
- Wechat games (5)
- Stored procedures and functions of MySQL
- UI draw line
- Invalid applet margin right, text overflow?
- MTK platform execution disable_ Interrupt signals masked during IRQ will be enabled when I execute enable_ Continue triggering after IRQ
- What is distributed transaction
- Device tree failed to add SPI device node
- itertools 排列组合
- Use multithreading to speed up your crawler
猜你喜欢

Relative positioning, absolute positioning, fixed positioning

Microsoft Remote Desktop 10.7.6 official

AutoCAD 2020.3中文版 (旧版本)

什么是分布式事务

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

数据可视化优秀案例

Expérience électrique en mode - - expérience 2 circuit d'amplification de source commune JFET

Template code overview

Remote Desktop Manager

IP address planning
随机推荐
4 solutions de court - circuit et 2 solutions d'arbre de génération minimum
(7)双向链表
[common template problems in graph theory] four shortest path solutions and two minimum spanning tree solutions
How to improve Baidu's weight
各大企业连连出现亏损,环保行业何去何从?
Common array operations in JS
easy-rule 初窥
How to handle root password forgetting in MySQL
The applet uses the step bar vant steps in vant
Solve syntaxerror: cannot use import statement outside a module
[songhongkang MySQL database] [advanced chapter] [07] MySQL storage engine
(9)顺序队列与栈队列
【Oracle 数据库】奶妈式教程day15 DDL、DML、索引、视图、序列、死锁这一篇就够了
Remote Desktop Manager
Excellent cases of data visualization
[songhongkang MySQL database] [advanced chapter] [06] logical architecture of MySQL
MySQL 8.0 under Linux forgets the password
What are uniapp, wap2app and 5 + app in dccloud?
Lookup encapsulation of unity monobehavior component
JS to assign values to two objects with the same attributes