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

相关推荐
行思理7 分钟前
centos crontab 设置定时任务访问链接
linux·运维·centos
阳光明媚大男孩12 分钟前
24.0.2 双系统ubuntu 安装显卡驱动黑屏,系统启动界面键盘失灵
linux·ubuntu·计算机外设
无名之逆12 分钟前
[特殊字符] Hyperlane:为现代Web服务打造的高性能Rust文件上传解决方案
服务器·开发语言·前端·网络·后端·http·rust
再玩一会儿看代码41 分钟前
[特殊字符] 深入理解 WSL2:在 Windows 上运行 Linux 的极致方案
linux·运维·windows·经验分享·笔记·学习方法
有谁看见我的剑了?1 小时前
centos7.9 升级 gcc
linux
良许Linux1 小时前
FreeRTOS大家都是怎么学的呀?
linux
良许Linux1 小时前
类似于STM32之类的MCU,使用RTOS真的比裸机编程有那么大优势?
linux
良许Linux1 小时前
为什么越来越多的人要转行做嵌入式呢?
linux
良许Linux1 小时前
单片机中有FLASH为啥还需要EEROM?
linux
良许Linux1 小时前
嵌入式rtos中哪一个更加值得去学习?
linux