Jenkins设置防火墙规则允许访问本机IP端口

batch 复制代码
netsh advfirewall firewall add rule name="Jenkins_8080" dir=in action=allow protocol=TCP localport=8080

命令组成部分

  • netsh - 网络配置命令行工具
  • advfirewall firewall - 高级防火墙配置
  • add rule - 添加新规则
  • name="Jenkins_8080" - 规则名称
  • dir=in - 入站规则(允许外部连接进入)
  • action=allow - 允许连接
  • protocol=TCP - TCP协议
  • localport=8080 - 本地端口8080

命令作用

  • 创建一个Windows防火墙规则
  • 允许外部通过TCP协议访问本机的8080端口
  • 通常用于允许外部访问Jenkins服务
  • 规则名称为"Jenkins_8080"方便识别和管理

相关常用参数

  • dir=out - 出站规则
  • enable=yes/no - 启用/禁用规则
  • remoteip=地址 - 指定允许的远程IP
  • program=路径 - 指定程序路径
相关推荐
ITxiaobing20232 天前
IP 库与 AppsFlyer 国家/地区数据不一致时的对账方法
tcp/ip
TechWayfarer2 天前
IP地址查询之后:如何在请求抵达前识别风险
python·tcp/ip·网络安全
qq_349447952 天前
Ubuntu26安装jenkins
jenkins
蓝天星空2 天前
Jenkins项目矩阵授权配置
jenkins
2401_873479402 天前
IP属地为什么有时显示外省?用IP查询工具核查动态分配、运营商出口与GeoIP库
python·tcp/ip·ip
可爱系程序猿2 天前
WSD 打印机时好时坏:从发现服务、地址变化到 Standard TCP/IP 端口的迁移记录
网络·网络协议·tcp/ip·程序人生·电脑
Cx330❀2 天前
【Linux网络】网络层 IP 协议:从网段划分到内核源码解析
大数据·linux·服务器·网络·tcp/ip·性能优化·langchain
今年下半年3 天前
Jenkins阿里云服务器一键部署
jenkins
javaDocker3 天前
生产事件BUG跟进-【curl 卡在 Client Hello 问题复盘】
tcp/ip·生产事件
myy-learn3 天前
33-HTTP协议TCP网页设计相关知识
tcp/ip·http