-
查看防火状态
javasystemctl status firewalld service iptables status -
暂时关闭防火墙
javasystemctl stop firewalld service iptables stop -
永久关闭防火墙
javasystemctl disable firewalld chkconfig iptables off -
启动防火墙
javasystemctl start firewalld -
重启防火墙
javasystemctl enable firewalld service iptables restart -
设置开机启动
javasystemctl enable firewalld -
停止并禁用开机启动
javasytemctl disable firewalld -
在指定区域打开端口(记得重启防火墙)
javafirewall-cmd --zone=public --add-port=80/tcp永久生效再加上 --permanent
javafirewall-cmd --zone=public --add-port=5060-5059/udp --permanent
Linux防火墙相关命令(开启防火墙、关闭防火墙、添加ip白名单等)
liaozk_c2024-02-03 13:15
相关推荐
未济2 天前
linux 配置环境变量傲世仙尊2 天前
目录即文件-Ext文件系统收尾篇虎头金猫2 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺_艾伦 耶格尔.3 天前
进程间通信AI职业加油站3 天前
AI智能体应用工程师证书:政策红利下的职业新风口Liuqy-053 天前
Linux IO编程——静态库、动态库此冬歌咏3 天前
K8s 节点故障实战:优雅驱逐 31 秒,硬故障 331 秒,以及那个永远 Pending 的 Pod彧azz3 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题-梅3 天前
linux(8) 软硬链接AIgorithmGEEK3 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create