ftp网络穿透简易教程


下载地址

https://github.com/fatedier/frp/blob/dev/README_zh.md

用途

1.端口映射

暂时用不到。也很简单,主要修改客户端配置文件。
参考frpc_full.ini文件。

2.内网穿透(隧道)

frps

VPS:服务端
frps.ini文件为

[common]
bind_port = 7230
server_addr = VPSIP
token = mytoken2d4a814454792b1fd0fed29
dashboard_port = 7500
dashboard_addr = 101.133.213.20
dashboard_pwd = passwttttord
dashboard_user = apssdmin

第一行是必须的,token为了客户端与服务端传输安全。
dashboard为web页面,不配置可以节省资源。
运行

./frps -c ./frps.ini

frpc

frpc.ini配置文件为

[common]
server_addr = VPSIP
server_port = 7230
token = mytoken2d4a814454792b1fd0fed29

[plugin_socks5]
type = tcp
remote_port = 6005
plugin = socks5
plugin_user = a3bTc
plugin_passwd = a0b6c

plugin=socks5 配置socks5代理
即:
客户端或者webshell中运行frpc.exe -c frpc.ini
得到代理

socks5://a3bTc:a0b6c@IP:6005