美文网首页
frp内网穿透

frp内网穿透

作者: 几簟生凉 | 来源:发表于2022-06-15 16:30 被阅读0次

服务端

编辑配置文件frps.ini

注意: 新版的需要加上tls_enable ,不然会报错 login to server failed: EOF

[common]
bind_port = 7000

dashboard_port = 7500
dashboard_user = xxxx
dashboard_pwd = 123456

vhost_http_port = 7800
vhost_https_port = 443

token = 123456
tls_enable = true

启动

frps -c frps.ini

客户端

编辑配置文件frpc.ini

[common]
server_addr = xx.xx.xx.xx
server_port = 7000
tls_enable = true

[dell.ubuntu-ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 7222

启动

frpc -c frpc.ini

Windows自动启动+后台运行

新建一个.vbs的文件,写入以下内容,注意修改成你的文件路径而且路径不要有空格

set ws=wscript.createobject("wscript.shell")
ws.run "C:\opt\frp\frpc.exe -c C:\opt\frp\frpc.ini",0

然后将这个.vbs(用这个文件的快捷方式也可以)放到目录C:\Users\你的用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup下(这个目录可以通过win+r 输入 shell:startup 打开)。启动后可以在任务管理器看到名为frpc.exe的进程。

相关文章

网友评论

      本文标题:frp内网穿透

      本文链接:https://www.haomeiwen.com/subject/gufayrtx.html