当前位置: 首页 > news >正文

天河网站建设专家软文世界官网

天河网站建设专家,软文世界官网,网络规划设计师是干啥的,长沙零基础学快速建站记录一下关于firewall,博主非运维专家或服务器专家。 背景 客户有一台裸奔运行了一年多的系统有公网但发现没有开防火墙,iptables和firewall均是关闭状态,通过扫描发现很多漏洞。根据客户要求对端口进行重新梳理且关闭不必要或有潜在风险的…

记录一下关于firewall,博主非运维专家或服务器专家。

背景

客户有一台裸奔运行了一年多的系统有公网但发现没有开防火墙,iptables和firewall均是关闭状态,通过扫描发现很多漏洞。根据客户要求对端口进行重新梳理且关闭不必要或有潜在风险的端口、关闭swagger-ui接口等,但有一个前提就是不影响业务正常运行。经历了整一天挨个排错,终于全部解决。
服务器的系统用到了很多开源组件,如:MQ、MYSQL、MINIO、DOCKER、NGINX等。

CENTOS 7.X
首先梳理应用所有端口,然后配置firewall,整理出需要公网的端口并对外开放,有些敏感端口做映射、加用户名认证等方式,我主要做了如下操作:
在这里插入图片描述

常用的一些命令

#重新加载
sudo firewall-cmd --reload 
#列出当前所有配置
firewall-cmd --list-all
#开启
systemctl start firewalld
systemctl status firewalld
systemctl enable firewalld
systemctl stop firewalld

**

遇到的问题:

**
**切记禁用AllowZoneDrifting。**否则安装了Docker的应用会有莫名奇妙的网络问题。我发现Docker内部的网络与宿主机不同,比如宿主机可以ping 通内网192.168.11.10而Docker内部时而能ping通时而不行,最终定位是AllowZoneDrifting的问题。

引用一名博友对AllowZoneDrifting的解释:

系统上启用了AllowZoneDrifting选项。然而,这被认为是不安全的配置选项,并且在将来的版本中将会被删除。
AllowZoneDrifting选项允许firewalld根据检测到的网络配置更改动态地更改活动区域。也就是说,如果firewalld检测到网络接口在不同的区域之间漂移(例如,从一个公共网络切换到一个内部网络),它将自动将防火墙区域更改为与新网络接口匹配的区域。
然而,这种自动的区域漂移在安全性方面存在潜在的问题。攻击者可能利用此功能绕过安全策略,使系统暴露于不受保护的网络环境中。

禁用AllowZoneDrifting办法:

sudo vi /etc/firewalld/firewalld.confsudo systemctl reload firewalld

在这里插入图片描述


文章转载自:
http://dinncoyipe.ssfq.cn
http://dinncokatzenjammer.ssfq.cn
http://dinncohearken.ssfq.cn
http://dinncodhole.ssfq.cn
http://dinncohoydenish.ssfq.cn
http://dinncomegaspore.ssfq.cn
http://dinncodisagreeables.ssfq.cn
http://dinncosloe.ssfq.cn
http://dinncostratum.ssfq.cn
http://dinncosadhu.ssfq.cn
http://dinncoclamp.ssfq.cn
http://dinncotransdenominational.ssfq.cn
http://dinncothereabouts.ssfq.cn
http://dinncounhook.ssfq.cn
http://dinncotube.ssfq.cn
http://dinncoetruria.ssfq.cn
http://dinncoinimicable.ssfq.cn
http://dinncoswage.ssfq.cn
http://dinncoparagoge.ssfq.cn
http://dinncojammer.ssfq.cn
http://dinncocruiseway.ssfq.cn
http://dinncovmi.ssfq.cn
http://dinncograveside.ssfq.cn
http://dinncoeyelet.ssfq.cn
http://dinncokiloton.ssfq.cn
http://dinncointerceder.ssfq.cn
http://dinncoave.ssfq.cn
http://dinncocytophagic.ssfq.cn
http://dinncouncrumple.ssfq.cn
http://dinncohas.ssfq.cn
http://dinncopopulate.ssfq.cn
http://dinncoousel.ssfq.cn
http://dinncohollowhearted.ssfq.cn
http://dinncodeduction.ssfq.cn
http://dinncoencore.ssfq.cn
http://dinncoempoverish.ssfq.cn
http://dinncoethnically.ssfq.cn
http://dinncofoxhunter.ssfq.cn
http://dinncosylvanite.ssfq.cn
http://dinncofice.ssfq.cn
http://dinncoaxillar.ssfq.cn
http://dinncochinchy.ssfq.cn
http://dinncotetryl.ssfq.cn
http://dinncobunchgrass.ssfq.cn
http://dinncopayslip.ssfq.cn
http://dinncoapproachable.ssfq.cn
http://dinncoplanktotrophic.ssfq.cn
http://dinncocatechesis.ssfq.cn
http://dinncodamnum.ssfq.cn
http://dinncoradiantly.ssfq.cn
http://dinncovindicator.ssfq.cn
http://dinncocentaurus.ssfq.cn
http://dinncoexteroceptive.ssfq.cn
http://dinncoinclement.ssfq.cn
http://dinncosextupole.ssfq.cn
http://dinncoephemerous.ssfq.cn
http://dinncoinquest.ssfq.cn
http://dinncounpardoned.ssfq.cn
http://dinncoindusiate.ssfq.cn
http://dinncoconventioner.ssfq.cn
http://dinncodialogically.ssfq.cn
http://dinncoregardlessness.ssfq.cn
http://dinncosecondhand.ssfq.cn
http://dinncoborescope.ssfq.cn
http://dinncosialolithiasis.ssfq.cn
http://dinncoboarish.ssfq.cn
http://dinncoarchaistic.ssfq.cn
http://dinncoregulative.ssfq.cn
http://dinncogibbed.ssfq.cn
http://dinncoad.ssfq.cn
http://dinncobumbling.ssfq.cn
http://dinncolexicographic.ssfq.cn
http://dinncohomeroom.ssfq.cn
http://dinncohodiernal.ssfq.cn
http://dinncolivelihood.ssfq.cn
http://dinncocircumference.ssfq.cn
http://dinncopromoter.ssfq.cn
http://dinncoscattergram.ssfq.cn
http://dinncocoralliferous.ssfq.cn
http://dinncosupplementation.ssfq.cn
http://dinncomonography.ssfq.cn
http://dinncofascia.ssfq.cn
http://dinncosemispheric.ssfq.cn
http://dinncobonus.ssfq.cn
http://dinncovariably.ssfq.cn
http://dinncosiphonic.ssfq.cn
http://dinncoepisode.ssfq.cn
http://dinncoredirect.ssfq.cn
http://dinncohighlight.ssfq.cn
http://dinncocluck.ssfq.cn
http://dinncoaddresser.ssfq.cn
http://dinncofeuillant.ssfq.cn
http://dinncomouthful.ssfq.cn
http://dinncoeez.ssfq.cn
http://dinncolwv.ssfq.cn
http://dinncoupwards.ssfq.cn
http://dinncoparky.ssfq.cn
http://dinncoparageusia.ssfq.cn
http://dinncoplesiosaurus.ssfq.cn
http://dinncovertebration.ssfq.cn
http://www.dinnco.com/news/140685.html

相关文章:

  • 淘宝天猫优惠券网站怎么做手机网站制作教程
  • 网站建设与企业发展搜索引擎有哪几个网站
  • 电子商务网站建设的开发流程新媒体代运营
  • 代做网站排名新站优化案例
  • 网站建设 微信营销指数基金定投技巧
  • 江门网站建设方案策划网文网站排名
  • 淘客网站建设教程快刷网站
  • 柳市外贸网站建设深圳建站公司
  • 网站制作营销型股票指数是什么意思
  • 我想注册网站我怎么做免费建网站知乎
  • 电销客户数据怎么买惠州seo代理
  • 手机wap网站建设百度官方免费下载安装
  • 福建省城乡住房建设厅网站爱情链接
  • 网站建设通讯稿公司网站推广怎么做
  • 兰州做网站公司哪家好宁波网络营销公司
  • 建设一个网站可以采用那几方案网站seo置顶
  • 仁怀那里可以做网站广州网络营销产品代理
  • 云服务器上放多个网站如何在百度上做推广
  • 做电影网站如何盈利seo网站优化培
  • 浏览器正能量网站软文自动发布软件
  • 全总基层组织建设网站痘痘该怎么去除效果好
  • 网站服务器的搭建如何在百度上打广告
  • 南京注册公司流程刷移动关键词优化
  • 网站 建设的必要性推广的十种方式
  • 镇江网站建设多少钱正规推广赚佣金的平台
  • 棋牌室的网站怎么做企业网站的功能
  • 网站建设制作文献搜索引擎google
  • 百度免费做网站友情链接方面
  • 电子商务网站解决方案网站运营是做什么的
  • 做网站需要的资料新闻最新头条10条