首页文章正文

Linux防火墙添加ip白名单,ip地址白名单怎么设置

如何加入防火墙白名单 2024-01-07 21:54 841 墨鱼
如何加入防火墙白名单

Linux防火墙添加ip白名单,ip地址白名单怎么设置

iptables -nL 重载防火墙配置firewall-cmd --reload 添加单个单端口firewall-cmd --permanent --zone=public --add-port=81/tcp 添加多个端口firewall-cmd -Linux防火墙设置IP端口白名单

≥^≤ 白名单操作查看下防火墙的状态:systemctl status firewalld 需要开启防火墙systemctl start firewalld 查看已开放的端口firewall-cmd –zone=public –list-ports 添加(1)、vim /etc/sysconfig/iptables 进入防火墙配置文件(2)、添加需要访问服务器IP(白名单):-A INPUT -s 172.31.3.132 -j ACCEPT (3)、启动防火墙并查看其状态(4)、继续通过

示例一:添加IP地址为10.0.0.1的白名单sudo iptables -A INPUT -s 10.0.0.1 -p tcp --dport 80 -j ACCEPT 这个命令将会允许IP地址为10.0.0.1的用户通过TCP协议Linux—系统网络防火墙(一)---firewall 一、安装firewalld服务1 2 [root@localhost ~]# apt-get install firewalld [root@localhost ~]# yum install firewal

Linux防火墙设置黑白名单Linux防⽕墙设置⿊⽩名单本章内容基于CentOS6.5(32位)切换到root⽤户只有root账号可以查看防⽕墙,所以要先切换到root⽤户su root 然后输⼊root要在Linux防火墙iptables中添加域名或IP为白名单,放行指定IP或域名,您需要编辑iptables规则配置文件。通常情况下,该文件位于/etc/sysconfig/iptables或/etc/iptables/rules.v4(取决

1、查看防火墙状态systemctl status firewalld 1 2、开启防火墙systemctl start firewalld.service 1 3、开机启动防火墙systemctl enable firewalld.servicsystemctl stop firewalld # 启动防火墙systemctl start firewalld # 关闭防火墙自启动systemctl disable firewalld # 开启防火墙自启动systemctl enable firewalld #查看

后台-插件-广告管理-内容页尾部广告(手机)

标签: ip地址白名单怎么设置

发表评论

评论列表

灯蓝加速器 Copyright @ 2011-2022 All Rights Reserved. 版权所有 备案号:京ICP1234567-2号