Administrator
发布于 2024-03-09 / 16 阅读
0
0

FRP

FRP

FRP 介绍

frp 是一个专注于内网穿透的高性能的反向代理应用,支持 TCP、UDP、HTTP、HTTPS 等多种协议,且支持 P2P 通信。可以将内网服务以安全、便捷的方式通过具有公网 IP 节点的中转暴露到公网。

github

FRP 使用

FRP 下载

github 下载

FRP 安装

FRP服务端安装

docker安装

docker版地址

docker-compose.yaml

	version: "3"
	
	services:
	  frps:
	    image: snowdreamtech/frps
	    container_name: frps
	    restart: always
	    volumes:
	      - /home/john-y/frp/frps.toml:/etc/frp/frps.toml
	    ports:
	      - "6000:6000"
	      - "6001:6001"
	      - "6080:6080"
	      - "6139:6139"
	      - "6445:6445"
	      - "7000:7000"
	      - "7500:7500"

frps.toml

	[common]
	# 监听端口
	bind_port = 7000
	# 面板端口
	dashboard_port = 7500
	# 登录面板账号设置
	dashboard_user = xxx
	dashboard_pwd = xxx
	# 设置http及https协议下代理端口(非重要)
	# vhost_http_port = 6080
	# vhost_https_port = 6081
	
	# [ssh]
	# listen_port = 6000
	
	# 身份验证
	# token = 12345678

FRP客户端安装

frpc.toml

	serverAddr = "xx.xx.xx.xx"
	serverPort = 7000
	# token = "12345678"
	                                
	[[proxies]]          
	name = "ssh"   
	type = "tcp"     
	localIP = "127.0.0.1"
	localPort = 22
	remotePort = 6000  
	
	
	[[proxies]]
	name = "http"
	type = "tcp"
	localIP = "127.0.0.1"
	localPort = 80
	remotePort = 6080
	
	
	[[proxies]]
	name = "smb1"
	type = "tcp"
	localIP = "127.0.0.1"
	localPort = 139
	remotePort = 6139

FRP客户端启动

	/usr/local/frp/frpc -c /usr/local/frp/frpc.toml


评论