找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8688|回复: 9

openwrt/Lede 安装 及 配置 frps 【非 frpc】

[复制链接]
本帖最后由 tanpengsscd 于 2019-10-14 17:20 编辑

0. ngrok 2开始不开源了,所以用frp吧。可惜没有frps 的 luci界面,就只能自己修改配置了,折腾了半天。
1. 安装   
系统 - 软件 - 搜索 frps - 安装
> 如果搜不到 添加 源
  1. <blockquote>      src/gz openwrt_packages https://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/packages
复制代码

2. 配置
ssh 进入 或者 使用 TTYD
编辑 /etc/config/frps

  1. root@OpenWrtx86-64:/tmp# cat /etc/config/frps
  2. config init
  3.         option stdout 1
  4.         option stderr 1
  5.         option user frps
  6.         option group frps
  7.         option respawn 1
  8. #        OS environments pass to frp for config file template, see
  9. #        https://github.com/fatedier/frp#configuration-file-template
  10. #        list env 'ENV_NAME=value'
  11. #        Config files include in temporary config file.
  12. #        list conf_inc '/etc/frp/frps.d/frps_full.ini'

  13. config conf 'common'
  14.         option bind_port 7000 #监听端口 默认7000
  15.         option dashboard_addr 0.0.0.0 #监听地址
  16.         option dashboard_port 7443   #frps 看板端口
  17.         option token YOURTOKEN #frps 连接令牌
  18.         option dashboard_user YOURNAME #frps看板登陆名
  19.         option dashboard_pwd PASSWORD  #frps看板登陆密码

  20. #        List options with name="_" will be directly appended to config file
  21. #        list _ '# Key-A=Value-A'
复制代码



系统 - 软件 - 启动项 - frps - 重启。 访问 路由器的端口7443 能看到看板了终端运行

# 调试(如果不正常)
frps -c   /var/etc/frps.ini      
看看结果,然后问谷歌吧
> PS: 修改 /var/etc/frps.ini 是没用的,重启就会恢复默认
更多选项请看官方源码有中文 https://github.com/fatedier/frp



我的恩山、我的无线 The best wifi forum is right here.
感谢的了。最近正在弄。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢大佬,弄了两天发现这个帖子才解决了问题,原来是配置路径的问题……谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

c 和 s 有啥区别?

点评

c是客户端 s是服务器  详情 回复 发表于 2021-1-18 10:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

mark一下,正在摸索
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

标记一下,准备试试.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

阿Dee 发表于 2020-3-10 21:53
c 和 s 有啥区别?

c是客户端  s是服务器
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

阿Dee 发表于 2020-3-10 21:53
c 和 s 有啥区别?

frpc是客户端上安装的,frps是架设服务端上安装的~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我有这个需求,但是没有看到楼主的,自己瞎搞了也没有成功。
我有联通宽带 1个有公网IP。移动宽带和广电宽带都没有公网就是想通过联通的宽带内网穿透一下。以前下载的估计自带fprs插件的,但是现在那个插件合并到其他地方了,那个新估计就没有这款插件了:@
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢指点,学习了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 12:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表