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=路径 - 指定程序路径
相关推荐
栗子叶17 小时前
IP协议 地址划分&MAC地址作用&ip addr命令
网络·tcp/ip·macos
xflySnail20 小时前
nas服务域名高速访问-获取公网IP和端口
网络·tcp/ip·智能路由器
禾叙_21 小时前
【netty】Netty之TCP链接
网络·网络协议·tcp/ip
徐子童1 天前
网络协议---TCP协议
网络·网络协议·tcp/ip·面试题·1024程序员节
UrSpecial1 天前
IP网络协议
服务器·网络·tcp/ip
寻星探路1 天前
【深度长文】深入理解网络原理:TCP/IP 协议栈核心实战与性能调优
java·网络·人工智能·python·网络协议·tcp/ip·ai
阿波罗尼亚1 天前
Tcp SSE Utils
android·java·tcp/ip
桃花键神2 天前
Undetectable接入亮数据代理IP深度测评:高效、稳定、适配性极强的海外多账号运营利器
网络协议·tcp/ip·php
阿拉伯柠檬2 天前
文章内容管理
tcp/ip
永恒之歌2 天前
VMware固定IP配置方式
服务器·网络·tcp/ip