-
查看防火状态
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
相关推荐
用户03284722207015 小时前
如何搭建本地yum源(上)A小辣椒2 天前
TShark:Wireshark CLI 功能A小辣椒2 天前
TShark:基础知识AlfredZhao2 天前
OCI 明明分配了 200G 系统盘,为什么 df 只看到 30G?AlfredZhao3 天前
vi 删除指定范围的行,不用再反复按 dd用户9718356334663 天前
银河麒麟 KY10 申威(SW64) 安装 nginx-1.16.1-2.p01.ky10.sw_64.rpm 详细步骤猪脚踏浪3 天前
linux 拷贝文件或目录到指定的位置大树884 天前
金刚石散热越强,管路越先见顶摇滚侠4 天前
Linux CentOS7 rpm 安装 MySQL 5.7霸道流氓气质4 天前
领域驱动设计(DDD)在 Spring Boot 微服务中的实践指南