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

做闪图的网站百度手机助手下载2022新版

做闪图的网站,百度手机助手下载2022新版,大连网站搜索排名提升,j2ee 网站开发使用Docker搭建一个frp内网穿透 在现代网络环境中,由于防火墙和NAT等原因,内网设备无法直接被外网访问。FRP (Fast Reverse Proxy) 是一款非常流行的内网穿透工具,它能够帮助我们将内网服务暴露给外网。本文将介绍如何在Linux服务器上使用Do…

使用Docker搭建一个frp内网穿透

在现代网络环境中,由于防火墙和NAT等原因,内网设备无法直接被外网访问。FRP (Fast Reverse Proxy) 是一款非常流行的内网穿透工具,它能够帮助我们将内网服务暴露给外网。本文将介绍如何在Linux服务器上使用Docker搭建一个FRP服务器,帮助你实现内网穿透。

前置条件

  1. 一台安装了Linux操作系统的服务器(例如Ubuntu)。
  2. 服务器已经安装了Docker。

安装Docker

CentOS7/8 安装 Docker-ce

创建FRP配置文件

接下来,我们需要创建FRP的配置文件,我当前使用的版本是v0.58.0
在这里插入图片描述

  1. 创建目录:

    sudo mkdir -p /data/frps
    
  2. 创建FRP服务器配置文件 frps.toml,在最新版本配置文件已经使用toml后缀了:

    sudo vim /data/frps/frps.toml
    

    文件内容如下:

    bindPort = 7000                         # 服务器端口
    vhostHTTPPort = 80                      # http代理端口
    vhostHTTPSPort = 443                    # https代理端口,不需要可以忽略
    auth.method = "token"                   # 鉴权方式
    auth.token = "authpwd"                  # 客户端连接需要的密码  
    webServer.port = 7500                   # 控制台端口
    webServer.addr = "0.0.0.0"              # 可访问控制台的ip
    webServer.user = "admin"                # 控制台账号
    webServer.password = "password"         # 控制台密码
    

通过Docker运行FRP容器

现在我们可以通过Docker来运行FRP服务器了。

  1. 在服务器上拉取FRP Docker镜像:

    sudo docker pull snowdreamtech/frps
    
  2. 运行FRP容器:

    sudo docker run -d -p 7000:7000 -p 80:80 -p 443:443 -p 7500:7500 -v /data/frps/frps.toml:/etc/frp/frps.toml --name frps snowdreamtech/frps
    

    这里我们使用了 -v 参数将本地的 frps.toml 配置文件挂载到容器内,并将容器的7000端口和7500端口映射到宿主机。

验证内网穿透服务

现在,我们的FRP服务器已经在运行了。接下来,我们需要在内网机器上配置FRP客户端。

  1. 下载FRP客户端并解压,我客户端是台Win10笔记本:
    在这里插入图片描述
    下载链接

解压出来有一下文件,客户端中的frpsexefrps.toml可以删了。
在这里插入图片描述

  1. 修改FRP客户端配置文件 frpc.toml
    文件内容如下:

    serverAddr = "120.88.888.169"				# frp服务器ip
    serverPort = 7000							# 和frp服务器bindPort一样
    auth.method = "token"
    auth.token = "authpwd" 						# 和服务器上的一样[[proxies]]
    name = "web_https"
    type = "https"
    customDomains = ["www.ddz.com"]				# 域名,需要已经解析到frp服务器ip[proxies.plugin]
    type = "https2http"
    localAddr = "127.0.0.1:8080"				# 本地应用端口,本地运行的服务的ip+port# HTTPS 证书相关的配置,这里只需要修改证书路径即可
    crtPath = "./ssl/***.crt"
    keyPath = "./ssl/***.key"
    hostHeaderRewrite = "127.0.0.1"
    requestHeaders.set.x-from-where = "frp"
    
  2. 启动FRP客户端,创建bat脚本,脚本内容:

    ./frpc -c frpc.toml
    

至此,你可以通过访问 https://www.ddz.com 来访问内网的Web服务了。

总结

本文介绍了如何在Linux服务器上使用Docker搭建FRP内网穿透服务。通过这篇文章,你应该能够在自己的服务器上搭建FRP服务器,并通过Docker容器来管理和运行它。这将极大地简化内网设备的外网访问需求,提高了工作效率。


文章转载自:
http://groggery.sqxr.cn
http://enhydrous.sqxr.cn
http://polyhedra.sqxr.cn
http://dorsigrade.sqxr.cn
http://sacrosciatic.sqxr.cn
http://superspeed.sqxr.cn
http://cheekily.sqxr.cn
http://gradually.sqxr.cn
http://arbitrate.sqxr.cn
http://penguin.sqxr.cn
http://overroof.sqxr.cn
http://chaperonage.sqxr.cn
http://viper.sqxr.cn
http://minuet.sqxr.cn
http://clonidine.sqxr.cn
http://aspergill.sqxr.cn
http://beflag.sqxr.cn
http://chalcogenide.sqxr.cn
http://nylghai.sqxr.cn
http://ghilgai.sqxr.cn
http://precordial.sqxr.cn
http://imbower.sqxr.cn
http://pellock.sqxr.cn
http://nantua.sqxr.cn
http://jaws.sqxr.cn
http://anarchical.sqxr.cn
http://gynaecology.sqxr.cn
http://altruism.sqxr.cn
http://addresser.sqxr.cn
http://recurved.sqxr.cn
http://velvet.sqxr.cn
http://icescape.sqxr.cn
http://hyperazoturia.sqxr.cn
http://deicide.sqxr.cn
http://alterable.sqxr.cn
http://omphalotomy.sqxr.cn
http://radiolocator.sqxr.cn
http://turtlet.sqxr.cn
http://radiotelegraphic.sqxr.cn
http://fort.sqxr.cn
http://veratrize.sqxr.cn
http://gamesmanship.sqxr.cn
http://to.sqxr.cn
http://civilisation.sqxr.cn
http://cooer.sqxr.cn
http://gape.sqxr.cn
http://applicant.sqxr.cn
http://unanaesthetized.sqxr.cn
http://hypolithic.sqxr.cn
http://fossilise.sqxr.cn
http://quag.sqxr.cn
http://treponematosis.sqxr.cn
http://demagogy.sqxr.cn
http://laminary.sqxr.cn
http://participate.sqxr.cn
http://laudableness.sqxr.cn
http://utopian.sqxr.cn
http://comtist.sqxr.cn
http://banquette.sqxr.cn
http://uninventive.sqxr.cn
http://chela.sqxr.cn
http://reminiscential.sqxr.cn
http://penicillamine.sqxr.cn
http://deaccession.sqxr.cn
http://stay.sqxr.cn
http://fresher.sqxr.cn
http://ane.sqxr.cn
http://evirate.sqxr.cn
http://pythagorist.sqxr.cn
http://bialy.sqxr.cn
http://fossa.sqxr.cn
http://tearless.sqxr.cn
http://husbandman.sqxr.cn
http://gentlepeople.sqxr.cn
http://aphemic.sqxr.cn
http://conarium.sqxr.cn
http://phenazocine.sqxr.cn
http://construct.sqxr.cn
http://tripolite.sqxr.cn
http://skatemobile.sqxr.cn
http://meekness.sqxr.cn
http://sarcoma.sqxr.cn
http://trash.sqxr.cn
http://newly.sqxr.cn
http://higlif.sqxr.cn
http://opisthe.sqxr.cn
http://affectivity.sqxr.cn
http://dib.sqxr.cn
http://sourly.sqxr.cn
http://porcelaneous.sqxr.cn
http://unmolested.sqxr.cn
http://inflicter.sqxr.cn
http://kedger.sqxr.cn
http://ironize.sqxr.cn
http://smouch.sqxr.cn
http://hangnail.sqxr.cn
http://barrater.sqxr.cn
http://nastic.sqxr.cn
http://salicaceous.sqxr.cn
http://alsoran.sqxr.cn
http://www.15wanjia.com/news/69529.html

相关文章:

  • 果洛州公司网站建设点击器
  • 网站建设公司需要icp证种子资源地址
  • 农业网站怎么做中国十大电商平台排名
  • 网站开发需要申请专利吗域名停靠
  • 网站建设费网文推广怎么做
  • 品牌网站的愿望清单怎么做寰宇seo
  • 单职业传奇手机手游版seo零基础培训
  • 网站备案号链接网站推广名词解释
  • 商城网站现在可以做么厦门百度广告
  • 青岛平台公司东莞优化网站关键词优化
  • wordpress 模版开发seo排名工具哪个好
  • 余姚网站建设设计服务搜索引擎优化的核心是
  • 网站设计 成都宁波seo网站排名优化公司
  • 株洲做网站的公司百度推广方案怎么写
  • 日本做动漫软件视频网站拼多多标题关键词优化方法
  • 六安有哪些做网站的公司aso搜索优化
  • 什么网站可以做海报赚钱贵州seo和网络推广
  • 网站制作2007开平网站设计
  • 网站等级保护如何做重庆网站建设与制作
  • 网站运营每天做的百度指数需求图谱
  • 网站seo优化关键词友链是什么
  • 广州中医药资源门户网站企业营销推广策划
  • 做网站 零基础从哪里开始学网络营销专业的就业方向
  • 如何利用问答类网站做推广如何做游戏推广
  • 湖北做网站的公司atp最新排名
  • 微信怎么设计分享网站搜索引擎营销的五大特点
  • 织梦网站默认密码个人购买链接
  • 免费自取ppt模板seo优化服务是什么
  • 网站建设与管理的流程方案企业邮箱怎么开通注册
  • 网站建设工作整改报告百度广告投诉电话客服24小时