Frp内网穿透代理

2021-08-15 14:18
303
1

1,项目下载地址 :https://github.com/fatedier/frp

2,tar -zxvf frp-0.37.0.tar.gz

3,  cd frp-0.37.0
4,  go build -o bin/frps ./cmd/frps  
5, cd bin
6, vi frps.ini
[common]
bind_port = 7000

#http端口设置
vhost_http_port = 80
#客户端连接令牌
token = 20190704token123token
#https端口设置
#vhost_https_port=8047
#显示的日志级别
log_level = info
#https端口设置
#vhost_https_port=8047
7, ./frps -c frps.ini

客户端
1,cd frp-0.37.0
2,go build -o bin/frpc.exe  ./cmd/frpc
3,  cd bin
4,  vi frpc.ini
[common]
server_addr = 23.23.23.23
server_port = 7000 
token = 20190704token123token
admin_addr = 127.0.0.1
admin_port = 7400
admin_user = admin
admin_pwd = admin

[web01] 
type = http
local_ip =127.0.0.1
local_port =8091
custom_domains =23.23.23.23

5, frpc.exe -c frpc.ini

全部评论

10
2021-08-31 20:41
dddd