Giter Site home page Giter Site logo

openwrt-frp's Introduction

openwrt-frp

Frpc/Frps for OpenWrt

OpenWrt/LEDE 上可用的 Frp 客户端/服务端

Release Version Latest Release Download Total Download

安装说明

  1. release 页面下载最新版的frpcfrps(注:请根据你的路由器架构下载对应版本)

  2. 将文件上传到你的路由器上,进行安装

opkg install frpc_*.ipk
opkg install frps_*.ipk

安装完毕,你可以在 /usr/bin 目录下找到对应的二进制文件。

获取 Luci 请访问:kuoruan/luci-app-frpc

编译说明

请使用最新版的 OpenWrt SDK 或 master 版源代码。

进入 SDK 根目录或源码根目录,执行命令下载 Makefile:

git clone https://github.com/kuoruan/openwrt-frp.git package/frp

编译流程:

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig

Network  ---> Web Servers/Proxies  ---> <*> frpc
Network  ---> Web Servers/Proxies  ---> <*> frps

make package/frp/{clean,compile} V=s

卸载说明

opkg remove frpc
opkg remove frps

openwrt-frp's People

Contributors

github-actions[bot] avatar kuoruan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openwrt-frp's Issues

MT7628/76288无法安装frpc_0.38.0-1_mips_24kc和frpc_0.38.0-1_mipsel_24kc

MT7628/76288无法安装
root@HDL:~# opkg install /tmp/frpc_0.38.0-1_mips_24kc.ipk
Unknown package 'frpc'.
Collected errors:

  • pkg_hash_fetch_best_installation_candidate: Packages for frpc found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package frpc.

root@HDL:~# cat /etc/*release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Chaos Calmer'
DISTRIB_REVISION='unknown'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='ramips/mt7688'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05.1'
DISTRIB_TAINTS='no-all busybox'

root@HDL:~# opkg print-architecture
arch all 100
arch noarch 200
arch ralink 300
arch ramips 400
arch mipsel_24kec_dsp 500
arch ramips_24kec 600

在openwrt17中怎么编译?我这边编译会报错

看上去像是我的SDK没有golang变异环境?
make[1]: Entering directory '/work/mtk7621/jc-openwrt-mtk-sdk'
make[2]: Entering directory '/work/mtk7621/jc-openwrt-mtk-sdk/package/libs/toolchain'
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
echo "libc" >> /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
echo "libgcc" >> /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
echo "libstdcpp" >> /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
echo "libpthread" >> /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
echo "librt" >> /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /work/mtk7621/jc-openwrt-mtk-sdk/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
make[2]: Leaving directory '/work/mtk7621/jc-openwrt-mtk-sdk/package/libs/toolchain'
make[2]: Entering directory '/work/mtk7621/jc-openwrt-mtk-sdk/package/network/frp'
Makefile:32: /work/mtk7621/jc-openwrt-mtk-sdk/feeds/packages/lang/golang/golang-package.mk: No such file or directory
make[2]: *** No rule to make target '/work/mtk7621/jc-openwrt-mtk-sdk/feeds/packages/lang/golang/golang-package.mk'. Stop.
make[2]: Leaving directory '/work/mtk7621/jc-openwrt-mtk-sdk/package/network/frp'
package/Makefile:105: recipe for target 'package/network/frp/compile' failed
make[1]: *** [package/network/frp/compile] Error 2
make[1]: Leaving directory '/work/mtk7621/jc-openwrt-mtk-sdk'
/work/mtk7621/jc-openwrt-mtk-sdk/include/toplevel.mk:197: recipe for target 'package/network/frp/compile' failed
make: *** [package/network/frp/compile] Error 2

建议用upx对编译出的二进制进行压缩

实测mipsel_24kc下的frpc 从9.8M 压缩到了3.6M。
鉴于upx压缩过程序在某些时候可能会失效
可以提供upx版本和非upx版本。

毕竟在Openwrt下一般存储空间都很堪忧

openwrt上安装frps,不能连接

有外网ip的openwrt x86软路由上安装了frps,frps.ini配置文件如下:

[common]
bind_port = 7000

另一台电脑(不在这个路由器下)上安装了frpc,frpc.ini配置文件如下:

[common]
server_addr = xxx.xxx.xxx.xxx
server_port = 7000

[https-tcp]
type = tcp
local_ip = 127.0.0.1
local_port = 443
remote_port = 12345
custom_domains = example.com

如果用通过这个openwrt路由器上网的任何设备访问https://example.com:12345,都毫无问题,非常完美。但是用不是通过这个路由器上网的设备(比如手机4G)就访问不了。完全是小白,但是猜想可能是openwrt上某个防火墙设置有问题,瞎折腾了半天还是不行。防火墙上7000端口是打开的,不然路由器背后的设备也不可能访问。想请教一下大概可能是什么地方出了问题吗?谢谢!

Is it compatible with this framework?

root@OpenWrt:/tmp# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt"
DISTRIB_RELEASE="Barrier Breaker"
DISTRIB_REVISION="std-200218"
DISTRIB_CODENAME="barrier_breaker"
DISTRIB_TARGET="ramips/generic"
DISTRIB_DESCRIPTION="OpenWrt Barrier Breaker 14.07 (std-200218)"
DISTRIB_TAINTS="no-all busybox"
root@OpenWrt:/tmp# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt"
DISTRIB_RELEASE="Barrier Breaker"
DISTRIB_REVISION="std-200218"
DISTRIB_CODENAME="barrier_breaker"
DISTRIB_TARGET="ramips/generic"
DISTRIB_DESCRIPTION="OpenWrt Barrier Breaker 14.07 (std-200218)"
DISTRIB_TAINTS="no-all busybox"

root@OpenWrt:/tmp# cat /proc/cpuinfo
system type : MT7620
machine : Unknown
processor : 0
cpu model : MIPS 24KEc V5.0
BogoMIPS : 385.02
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available

k2p

可以支持下K2p的frpc吗,架构1004k的,大小最好在1500KB左右,谢谢拜托

v0.44.0-1 mips_24kc symbol not found error

# /mnt/sda1/packages/usr/bin/frpc -h
Error relocating /mnt/sda1/packages/usr/bin/frpc: __nanosleep_time64: symbol not found

# cat /proc/cpuinfo
system type             : Atheros AR9330 rev 1
machine                 : ***
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 265.42
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16
Options implemented     : tlb 4kex 4k_cache prefetch mcheck ejtag llsc dc_aliases perf_cntr_intr_bit nan_legacy nan_2008 perf
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

top观察cortex_A7_neon的VSZ为768M

刷机Netgear EX6200v2到OpenWRT 18.06.2
整机内存256M,闪存可用于jffs的空间8M
使用您编译的 cortex_A7_neon,ver 0.31.2,再加上您另一个工程的luci界面,一次配置成功

唯一的疑问如下

Mem: 60252K used, 190640K free, 580K shrd, 3272K buff, 14096K cached
CPU:   1% usr   1% sys   0% nic  96% idle   0% io   0% irq   0% sirq
Load average: 0.03 0.10 0.09 2/90 3835
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 3835  3453 py27     R     1072   0%   3% top
 2225     2 root     IW       0   0%   1% [kworker/1:0]
 1768     1 nobody   S     786m 320%   0% /usr/bin/frpc -c /var/etc/frpc/frpc.main.ini
 1320     1 root     S     3168   1%   0% /usr/bin/monit -I
 2728     1 root     S     1616   1%   0% /usr/sbin/hostapd -s -P /var/run/wifi-phy1.pid -B /var/run/
 2400     1 root     S     1616   1%   0% /usr/sbin/hostapd -s -P /var/run/wifi-phy0.pid -B /var/run/
  649     1 root     S     1532   1%   0% /sbin/netifd
  513     1 root     S     1396   1%   0% /sbin/rpcd -s /var/run/ubus.sock -t 30
    1     0 root     S     1340   1%   0% /sbin/procd
  687     1 root     S     1228   0%   0% /usr/sbin/odhcpd

top看运行情况,大多数进程的VSZ(虚拟内存分配)只有1.x K左右
而frpc达到了768M,也就是说极端情况下(比如代码bug造成内存泄露),所有物理内存全给了也不够用

是否某个栈的预分配空间就不小,加上多个线程乘起来就分了786M(虽然知道正常情况下不会吃这么多)
这个数字如果降到20~30M,也就是说FRPC在极端状态下吃掉30M内存,听起来合理一些吧?

麻烦加入本地http转https的功能

可能会有点麻烦 八成是要多一个文件夹放证书。
https://github.com/fatedier/frp#enable-https-for-local-http-service

如链接所示frp有本地http转https的功能。
对于开启了hsts的人来说由于本地要穿透的网页http、https混杂,所以有时候需要反代就很麻烦。因为在nginx上至少我不知道到怎么一个通配符里如何按情况反代不类型的连接。所以加入能统一成一样的https那么就方便很多了,所以为此麻烦加入一下这个功能。
在此表示感谢。

wrong SDK binaries since version v0.38.0-1

Latest working kuoruan binaries is frps_0.37.1-1_arm_cortex-a15_neon-vfpv4.ipk of Aug 4, 2021

v0.49.0-1 ./frps -h
Error relocating ./frps: __nanosleep_time64: symbol not found

OpenWRT 21.02

Target Platform ipq806x/generic arm_cortex-a15_neon-vfpv4

cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 0 (v7l)
BogoMIPS : 9.37
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x2
CPU part : 0x04d
CPU revision : 0

processor : 1
model name : ARMv7 Processor rev 0 (v7l)
BogoMIPS : 19.53
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x2
CPU part : 0x04d
CPU revision : 0

Hardware : Generic DT based system
Revision : 0000
Serial : 0000000000000000

0.38.0 is not working for WRT3200ACM

Package: frps_0.38.0-1_arm_cortex-a9_vfpv3-d16
Model: Linksys WRT3200ACM
OpenWrt Version: 19.07.7

Behavior:

root@cn1:~# frps
root@cn1:~# error relocating __nanosleep_time64: symbol not found

Downgraded to 0.37.1, things are working fine. So I think there's something wrong with this package only maybe?

frpc v0.32.0-1 mipsel_24kc 问题

设备:zbt-we826-32M
启动时有一定几率(约为2/3)报错:

SIGILL: illegal instruction
PC=0x47a6cc m=0 sigcode=128

goroutine 1 [running, locked to thread]:
runtime.asyncPreempt()
  runtime/preempt_mipsx.s:40 +0x7c fp=0x1439f0c sp=0x1439e18 pc=0x47a6cc
errors.New(0x97c637, 0x31, 0xaccd70, 0x140e7b0)
  errors/errors.go:59 +0x38 fp=0x1439f20 sp=0x1439f10 pc=0x48ba5c
github.com/pquerna/cachecontrol/cacheobject.init()
  github.com/pquerna/[email protected]/cacheobject/directive.go:46 +0x3bc fp=0x1439f34 sp=0x1439f20 pc=0x7d7d24
runtime.doInit(0xd91f00)
  runtime/proc.go:5414 +0xcc fp=0x1439f48 sp=0x1439f34 pc=0x451378
runtime.doInit(0xd8f920)
  runtime/proc.go:5409 +0x80 fp=0x1439f5c sp=0x1439f48 pc=0x45132c
runtime.doInit(0xd93de0)
  runtime/proc.go:5409 +0x80 fp=0x1439f70 sp=0x1439f5c pc=0x45132c
runtime.doInit(0xd91ec0)
  runtime/proc.go:5409 +0x80 fp=0x1439f84 sp=0x1439f70 pc=0x45132c
runtime.doInit(0xd939c0)
  runtime/proc.go:5409 +0x80 fp=0x1439f98 sp=0x1439f84 pc=0x45132c
runtime.doInit(0xd94900)
  runtime/proc.go:5409 +0x80 fp=0x1439fac sp=0x1439f98 pc=0x45132c
runtime.doInit(0xd90780)
  runtime/proc.go:5409 +0x80 fp=0x1439fc0 sp=0x1439fac pc=0x45132c
runtime.main()
  runtime/proc.go:190 +0x22c fp=0x1439fec sp=0x1439fc0 pc=0x441d98
runtime.goexit()
  runtime/asm_mipsx.s:651 +0x4 fp=0x1439fec sp=0x1439fec pc=0x479f4c

r0   0x0  r1   0x4
r2   0x8  r3   0x77e29088
r4   0x8ed704 r5   0x1
r6   0x8  r7   0x5
r8   0x908100 r9   0xac33d0
r10  0x8  r11  0x0
r12  0xf6 r13  0x1
r14  0x0  r15  0xf7
r16  0x0  r17  0x15
r18  0xf9 r19  0x0
r20  0x140e7b0  r21  0x140e7b0
r22  0xd91f28 r23  0xdd0000
r24  0x1  r25  0x77f079cc
r26  0x0  r27  0x0
r28  0x77f3d2a0 r29  0x1439e18
r30  0x14000e0  r31  0x48ba5c
pc   0x47a6cc link 0x48ba5c
lo   0x0  hi   0x0

v0.31.2-1 正常。或许是FRP本身的原因?

开启不了Http选项

大大好,我的Openwrt 版本是19.07
frpc的tcp都用的没有问题,但是我想用http,插件直接显示“服务未运行”,把http关掉或者禁用就又正常了

ARM cortex a9 binary is missing in release

Hi Kuoruan,

I could not find the binary in the latest releases for arm_cortex-a9_vfpv3 (ARM cortex a9 for Linksys WRT1900ACS model router).

so i started compiling with openwrt SDK (openwrt-sdk-18.06.7-mvebu-cortexa9_gcc-7.3.0_musl_eabi.Linux-x86_64) for my router model

But i faced issue like many go lang libraries were missing while compilation.

But i solved that with your post solution from other issue thread (kuoruan/openwrt-v2ray#15), i was able to recompile and successfully produce the binary .

I would like to submit the binaries for both client and server to you for everyone else to use.

mips架构安装失败?

CPU是MT7621,安装v0.33.0-1的frpc_0.33.0-1_mips_24kc.ipkfrpc_0.33.0-1_mips_mips32.ipk均失败,错误信息为:

Unknown package 'frpc'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for frpc found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package frpc.`

编译失败,请帮忙看下原因

github.com/fatedier/frp/cmd/frpc

/home/bosense/lede/staging_dir/hostpkg/lib/go-cross/pkg/tool/linux_amd64/link: running aarch64-openwrt-linux-musl-gcc failed: exit status 1
/home/bosense/lede/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cannot find /home/bosense/lede/tmp/go-link-106415062/go.o: Invalid argument
collect2: error: ld returned 1 exit status

github.com/fatedier/frp/cmd/frps

/home/bosense/lede/staging_dir/hostpkg/lib/go-cross/pkg/tool/linux_amd64/link: running aarch64-openwrt-linux-musl-gcc failed: exit status 1
/home/bosense/lede/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cannot find /home/bosense/lede/tmp/go-link-2875649584/go.o: Invalid argument
collect2: error: ld returned 1 exit status

make[3]: *** [Makefile:65: /home/bosense/lede/build_dir/target-aarch64_cortex-a53_musl/frp-0.49.0/.built] Error 1
make[3]: Leaving directory '/home/bosense/lede/feeds/packages/net/frp'
time: package/feeds/packages/frp/compile#7.81#4.34#50.81
ERROR: package/feeds/packages/frp failed to build.
make[2]: *** [package/Makefile:116: package/feeds/packages/frp/compile] Error 1
make[2]: Leaving directory '/home/bosense/lede'
make[1]: *** [package/Makefile:110: /home/bosense/lede/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/bosense/lede'
make: *** [/home/bosense/lede/include/toplevel.mk:231: world] Error 2

新三路由0.47.0最新版不能工作

2023/02/20 15:55:41: frp服务启动失败,请检查服务端 “TCP多路复用(tcp_mux)”设置,确保与客户端完全一致!
frpc -v不显示版本,貌似没正常工作

使用 UPX 压缩是否可行?

在我的QCA9531上测试,目前的版本经过UPX压缩以后,二进制文件只有3.5M,但是在设备上无法运行,表现为:运行后CPU占用率50%,程序没有任何输出。
搜索发现以前有一些人说UPX压缩后可以用,不知道是不是我哪里做得不对...

build is unable to load embed

Hi, I'm trying to build this by using the gl-inet sdk and got stuck here:

build github.com/fatedier/frp/cmd/frpc: cannot load embed: malformed module path "embed": missing dot in first path element

Building targets
build .: cannot find module for path .

I'm new to go so i wonder if you can give me some ideas on how to resolve it please? Thanks.

init script for frps?

I'm using the router for frps and I just found out there's no way to manage the frps instance.

Given there's no luci-app-frps counterpart like frpc, I have to put this line somewhere, or execute it manually whenever the router reboots.

nohup frps -c <path-to-frps.ini> &

Can anyone point me to a package for this? While the nohup method works for me, it's still a bit hackish.

Failed to compile openwrt-frp for openwrt-x86_64-19.07.7 on Ubuntu 20.04.

Hi,

On Ubuntu 20.04, I try to compile openwrt-frp for openwrt-x86_64-19.07.7 but failed as shown below.

See the following for the openwrt firmware version info for my case:

root@OpenWrt:~# cat /etc/openwrt_release 
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='19.07.7'
DISTRIB_REVISION='r11306-c4a6851c72'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt 19.07.7 r11306-c4a6851c72'
DISTRIB_TAINTS=''

The openwrt master version info is shown below:

$ git log -1
commit 209c5918b511d9e406a094ba246a985b640e519f (HEAD -> master, origin/master, origin/HEAD)
Author: Vivek Unune <[email protected]>
Date:   Fri Nov 13 08:43:00 2020 -0500

I compile openwrt-frp according to the guidance here with the following steps:


$ git clone https://github.com/kuoruan/openwrt-frp.git package/frp

$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
  
$ make menuconfig

Network  ---> Web Servers/Proxies  ---> <*> frpc
Network  ---> Web Servers/Proxies  ---> <*> frps
 
$ make package/frp/{clean,compile} V=s
[...]
cp -fpR /home/werner/Public/repo/git.openwrt.org/openwrt/openwrt.git/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib/ld-musl-*.so* /home/werner/Public/repo/git.openwrt.org/openwrt/openwrt.git/build_dir/target-x86_64_musl/toolchain/.pkgdir/libc/lib/
cp: cannot stat '/home/werner/Public/repo/git.openwrt.org/openwrt/openwrt.git/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib/ld-musl-*.so*': No such file or directory
make[2]: *** [Makefile:728: /home/werner/Public/repo/git.openwrt.org/openwrt/openwrt.git/build_dir/target-x86_64_musl/toolchain/.pkgdir/libc.installed] Error 1
make[2]: Leaving directory '/home/werner/Public/repo/git.openwrt.org/openwrt/openwrt.git/package/libs/toolchain'
time: package/libs/toolchain/compile#0.28#0.15#0.39
    ERROR: package/libs/toolchain failed to build.
make[1]: *** [package/Makefile:114: package/libs/toolchain/compile] Error 1
make[1]: Leaving directory '/home/werner/Public/repo/git.openwrt.org/openwrt/openwrt.git'
make: *** [/home/werner/Public/repo/git.openwrt.org/openwrt/openwrt.git/include/toplevel.mk:230: package/frp/compile] Error 2

OTOH, I can successfully compile openwrt-frp from within OpenWrt SDK using the same above-mentioned steps. See the following for the generated ipk files:

$ find . -type f -name '*.ipk' | grep frp
./bin/packages/x86_64/base/frps_0.36.2-1_x86_64.ipk
./bin/packages/x86_64/base/frpc_0.36.2-1_x86_64.ipk

Any hints for solving this problem?

Regards,
HY

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.