User-Profile-Image
hankin
  • 5
  • 首页
  • 分类
    • Windows
    • Web
    • VoIP
    • Virtualization
    • Trading
    • Smart Home
    • SEO
    • Security
    • Python
    • Program
    • PHP
    • OSX
    • OS
    • OpenSource
    • Nginx
    • MySQL
    • Mood
    • Linux
    • Life
    • Injection
    • Hosting
    • Exploits
    • CDN
  • 页面
    • About
  • 友链
    • 维酷科技
    • Tesra超算网络
Help?

Please contact us on our email for need any support

Support
  • 首页
    首页   ›   Program   ›   正文
Program

利用FRP远程桌面连接公司电脑

2020-08-14 22:21:05
439  0 0

公司电脑没有公网IP或者没有内网映射权限的时候可以通过FRP实现端口转发将本地3389端口映射到有公网IP的服务器上,这样通过连接公网IP服务器就可以远程桌面到公司电脑。目前市面上在售的公网IP盒子或者花生壳类的产品运用的就是相同的原理。

1、服务器端配置

https://github.com/fatedier/frp

在GitHub下载好对应版本的程序,Windows或者Linux都行。

frps.ini 服务器端配置文件

[common]
bind_port = 7000  #绑定7000端口与客户端通信

dashboard_port = 7500  #绑定7500端口对外提供dashboard监控界面
dashboard_user = admin #登陆账号
dashboard_pwd = passwd #登陆密码

authentication_method = token  #客户端验证方式token
token = passwd   #设置你的token,客户端需要与服务器设置一致方可连接
#运行服务器端 -c 参数指定配置文件为刚刚编辑的文件
./frps -c frps.ini

2、客户端配置

frpc.ini客户端配置文件

[common]
server_addr = 服务器地址
server_port = 7000  #服务器通信端口,与上面配置一致
token = passwd #token验证,需与服务器端一致

[3389]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 8001  #将本地机器3389端口映射到服务器8001端口
#运行客户端,如果是windows的话可以在命令提示符下
frpc.exe -c frpc.ini

服务端需要注意设置防火前开放7000,7500,8001等需要用到的端口访问权限。

评论 (0)

Click here to cancel reply.

欢迎您 游客  

    ProdigYu
    163文章 10评论 2点赞 80817浏览
    随机文章
    VMware下Debian正常使用Gnome3
    7年前
    webpy+nginx+fastcgi使用spawn-fcgi启动fastcgi
    11年前
    Nginx+Spawn-fcgi+web.py
    11年前
    Mac连接安卓手机导入数据
    11个月前
    Squid3.0安装
    9年前
    Tags
    Apache CentOS CMD DDOS Debian DNS FastCGI Google IIS IP iptables Linux Mac MySQL Nginx Opensource PHP Python Skill Spawn-FCGI SSH Ubuntu Vim VMware VPN web.py Windows 删除 命令 命令提示符 安装 开源 技巧 插件 漏洞 百度 系统 组件 终端 缓存 网络电话 脚本 自建 详解 错误
    Meta
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2021
    Designed by hankin
    主页
    页面
    • About
    博主
    ProdigYu 管理员
    Something about myself
    163 文章 10 评论 80817 浏览
    测试
    测试