xfrpc
is frp client implemented by c language for OpenWRT
The motivation to start xfrpc project is that we are OpenWRTer, and openwrt usually run in devices which have limit ROM and RAM space, however frpc always need more space and memory; therefore we launched xfrpc project.
xfrpc partially compitable with latest frp release feature, It targets to fully compatible with latest frp release.
the following table is detail compatible feature:
Feature | xfrpc | frpc |
---|---|---|
tcp | Yes | Yes |
tcpmux | Yes | Yes |
http | Yes | Yes |
https | Yes | Yes |
subdomain | No | Yes |
use_encryption | No | Yes |
use_compression | No | Yes |
udp | No | Yes |
p2p | No | Yes |
xtcp | No | Yes |
vistor | No | Yes |
xfrp need libevent openssl-dev and json-c support
Before compile xfrp, please install libevent
and json-c
in your system.
Install json-c libevent in ubuntu 20.04 LTS
sudo apt-get install -y libjson-c-dev
sudo apt-get install -y libevent-dev
git clone https://github.com/liudf0716/xfrpc.git
cd xfrp
mkdir build
cmake ..
make
xfrpc was recruited by openwrt community since version 1.04.515
anyway I highly recommend you to use latest version
in order to compile xfrpc in openwrt sdk environment, you should firstly make menuconfig
, then select Network --> Web Servers/Proxies ---> xfrpc
before using xfrpc, you should get frps server: frps
frps use latest release 0.42.0
# frps.ini
[common]
bind_port = 7000
run frps
./frps -c frps.ini
#xfrpc_mini.ini
[common]
server_addr = your_server_ip
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6128
compare with supporting tcp, supporting http&https need to add vhost_http_port&vhost_https_port in frps.ini as the following
# frps.ini
[common]
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
# xfrpc_mini.ini
[common]
server_addr = x.x.x.x
server_port = 7000
[http]
type = http
local_port = 80
custom_domains = www.example.com
[https]
type = https
local_port = 443
custom_domains = www.example.com
xfrpc -c frpc_mini.ini -f -d 7
xfrpc -c frpc_mini.ini -d 0
If running xfrpc in openwrt box, luci-app-xfrpc is a good choice
luci-app-xfrpc was recruited by luci project
See CONTRIBUTING for details on submitting patches and the contribution workflow.
QQ群 : 331230369
支付宝打赏
微信打赏
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。