一、firewall服务 1、启动 2、设置开机自启动 二、firewall配置 1、查看默认防火墙状态 2、查看防火墙规则 3、查看区域信息 4、更新防火墙规则 5、ip白名单设置 ...
一. 设置firewall规则 例 :对外暴露 端口 firewall cmd permanent add port tcp 例 :使mysql服务的 端口只允许 . . . 网段的服务器能访问 添加规则 firewall cmd permanent add rich rule rule family ipv source address . . . port protocol tcp port ...
2020-06-23 11:04 0 1850 推荐指数:
一、firewall服务 1、启动 2、设置开机自启动 二、firewall配置 1、查看默认防火墙状态 2、查看防火墙规则 3、查看区域信息 4、更新防火墙规则 5、ip白名单设置 ...
在nginx主配置文件中,创建一个ip名单文件,并设置规则,如下: 在server段中包含这哥文件即可,就是这么简单........ 这是简单的白名单设置 最简单的还是下面这种: 直接allow ip/或者加网段,deny ip/或者加网段即可 ...
其他命令: 命令说明 ...
在做分享、支付的时候需要跳转到对应的app,这里有需要设置的白名单列表<key>LSApplicationQueriesSchemes</key> <array> <!-- 微信 URL Scheme 白名单--> <string> ...
vim $tomcat_home/conf/server.xml(可以单个IP或者多个ip,多个ip用|分隔,支持正则) ...
1:ip.config 192.168.3.15 1;192.168.3.10 1;192.168.0.8 1; 2:nginx.conf #geoIP的白名单 geo $remote_addr $ip_whitelist { default 0; include ip.conf ...
通在/etc/sysconfig/iptables文档中添加端口白名单,命令如下(编辑好后 esc->wq 保存退出): 添加好后重启防火墙,命令如下: https://www.cnblogs.com/linuxprobe/p ...
例子表示 使mysql服务的3306端口只允许192.168.1.1/24网段的服务器能访问#添加规则firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.1.1/24" port ...