首页 > 其他分享 >FRP(Fast Reverse Proxy)网络映射工具部署

FRP(Fast Reverse Proxy)网络映射工具部署

时间:2024-03-01 16:45:57浏览次数:17  
标签:123 Reverse 118.195 fatedier Fast FRP ini port 服务端

Fast Reverse Proxy(FRP) 是一款由fatedier开发的高性能的反向代理工具,用于穿透防火墙、NAT等网络障碍,将内网服务映射到公网上

github地址

https://github.com/fatedier/frp

 

下载

https://github.com/fatedier/frp/releases

根据操作系统找到对应版本,客户端服务端共用一个包。

 例如ubuntu系统,下载:frp_0.54.0_linux_amd64.tar.gz

 

服务端安装

修改配置文件frps.ini

[common]
bind_port = 7000
bind_addr = 0.0.0.0
token = 123

dashboard_port = 37500
dashboard_user = admin
dashboard_pwd = 123
vhost_http_port = 6001

7000为服务端口,37500为web管理界面

启动

nohup ./frps -c frps.ini 2>&1 &

客户端安装

安装包和服务端是同一个。

配置文件修改 frpc.ini

[common]
server_addr = 118.195.111.111
server_port = 7000
token = 123
[ssh]
type = tcp 
local_ip = 127.0.0.1
local_port = 22
remote_port = 10022

例如服务端公网ip: 118.195.111.111

启动:

nohup ./frpc -c frpc.ini 2>&1 &

 

配置完成,此时的效果就可以从服务端公网ip 118.195.111.111的10022端口,ssh连接到客户端机器。

标签:123,Reverse,118.195,fatedier,Fast,FRP,ini,port,服务端
From: https://www.cnblogs.com/lixiaoran/p/18047441

相关文章

  • faster-fifo:C++实现的python多进程通信队列 —— 强化学习ppo算法库sample-factory的C
    项目地址:https://github.com/alex-petrenko/faster-fifo需要注意,该项目给出了两种安装方法,一种是pip从pypi官网安装,一种是从GitHub上的源码安装;经过测试发现这个项目维护程度较差,因此pypi官网上的项目比较落后,因此不建议使用pypi上的安装,而是进行源码编译安装。给出源码编......
  • FastAPI系列:HttpBasic基本认证
    HttpBasic基本认证fromfastapiimportFastAPI,Dependsfromfastapi.securityimportHTTPBasic,HTTPBasicCredentialsfromfastapi.exceptionsimportHTTPExceptionfromfastapi.responsesimportPlainTextResponsefromstarlette.statusimportHTTP_401_UNAUTHORIZE......
  • FastAPI系列:jwt认证
    jwt认证1.头部Header,主要是对jwt元数据的描述{'alg':'HS256','typ':'JWT'}2.载荷playload,主要包含jwt信息需要传递的主体数据{'iss':'jack',#由jwt签发'sub':'jack',#该jwt面向的用户组,也称为主题......
  • FastAPI系列:异步redis
    aioredisofficialwebsiteInstallpipinstallaioredisConnecttoredisfromfastapiimportFastAPIimportaioredisapp=FastAPI()@app.on_event('startup')asyncdefstartup_event():#创建的是线程池对象,默认返回的结果为bytes类型,设置decode_responses表......
  • FastAPI系列:fastapi定制的数据库操作库sqlmodel
    官网sqlmodel安装#安装sqlmodel会自动安装pydantic和sqlalchemypipinstallsqlmodel使用#步骤1,创建sqlmodel引擎fromsqlmodelimportcreate_engine#driver://用户名:密码@ip/数据库engine=create_engine("mysql+mysqldb://root:123456@localhost/api")#步骤......
  • FastAPI系列:自定义认证
    fromtypingimportOptional,TuplefromfastapiimportFastAPI,RequestfrompydanticimportBaseModel#通过starlette.authentication导入AuthenticationBackendfromstarlette.authenticationimportAuthenticationBackend,AuthenticationError,AuthCredentials,S......
  • FastAPI系列:依赖注入
    函数式依赖项fromfastapiimportFastAPIfromfastapiimportQuery,Dependsfromfastapi.exceptionsimportHTTPExceptionapp=FastAPI()defusername_check(username:str=Query(...)):ifusername!='zhong':raiseHTTPException(status_code......
  • FastAPI系列:环境配置读取
    依赖包pipinstallpython-dotenv使用#.env文件ADMIN_EMAIL="[email protected]"APP_NAME="ChimichangApp"#config.pyfrompydantic_settingsimportBaseSettingsclassSettings(BaseSettings):app_name:str="AwesomeAPI"......
  • FastAPI系列:后台任务进程
    注:后台任务应附加到响应中,并且仅在发送响应后运行用于将单个后台任务添加到响应中fromfastapiimportFastAPIfromfastapi.responsesimportJSONResponsefromstarlette.backgroundimportBackgroundTaskfrompydanticimportBaseModelapp=FastAPI()classUser(B......
  • FastAPI系列:中间件
    中间件介绍中间件是一个函数,它在每个请求被特定的路径操作处理之前,以及在每个响应返回之前工作装饰器版中间件1.必须使用装饰器@app.middleware("http"),且middleware_type必须为http2.中间件参数:request,call_next,且call_next它将接收request作为参数@app.middleware("h......