Linux 防火墙设置 - firewall-cmd

list ports

firewall-cmd --list-all

open port port/tcp or port/upd

firewall-cmd --permanent --add-port=20/tcp

firewall-cmd --permanent --add-port=21/tcp

firewall-cmd --permanent --add-port=22/tcp

firewall-cmd --permanent --add-port=80/tcp

firewall-cmd --permanent --add-port=6800/tcp

firewall-cmd --permanent --add-port=7050-7100/tcp

firewall-cmd --permanent --add-port=8000/tcp

firewall-cmd --permanent --add-port=12621/tcp

firewall-cmd --permanent --add-port=20002/tcp

firewall-cmd --permanent --add-port=20003-20020/tcp

firewall-cmd --permanent --add-port=12443/tcp

firewall-cmd --permanent --add-port=8888/tcp

reload

firewall-cmd --reload

show new

firewall-cmd --list-ports

相关推荐
IMPYLH5 分钟前
Linux 系统备份与镜像
linux·服务器·网络
qetfw10 分钟前
Bash 字符串处理:参数展开、序列与脚本执行方式
linux·开发语言·chrome·bash
hhwyqwqhhwy15 分钟前
设备树之 provider 和 consumer
java·linux·前端
aaa最北边1 小时前
Linux 上的交叉编译
linux·运维·服务器
蒲公英内测分发1 小时前
智能门锁量产时,工厂测试 App 一直在更新,产线怎么避免装错 APK?
服务器·人工智能·github·智能硬件·智能手表
垆边人似月.1 小时前
Python中如何使用get函数实现频次查询
服务器·前端·python
小张成长计划..2 小时前
【Linux】27:日志
linux·运维·服务器
别动我齐刘海2 小时前
机器人 C++ / 系统联调补强2——异常处理、Protobuf
linux·c++·人工智能·学习·算法·机器学习·机器人
Lsetea2 小时前
curl -I检查HTTPS返回405:HEAD、GET与证书验收分层排查
linux·http·https·ssl证书·curl
dlhto2 小时前
Windows 使用 Rufus 制作 AlmaLinux 10.2 启动 U 盘:从 ISO 下载到服务器安装
运维·服务器·windows