liudf0716/xfrpc logo

liudf0716/xfrpc

Free

xfrpc 是一个轻量级的 FRP 客户端,完美兼容 frps,采用 C 语言实现,专为 OpenWRT 和物联网等资源受限系统优化设计。它针对 ROM 和 RAM 空间有限的设备,提供高效的内网穿透解决方案。xfrpc 集成了xDPI(深度包检测)功能,增强了安全性,有效防止内网穿透中因恶意嗅探导致的安全威胁,确保数据传输和网络访问的可靠保护。技术交流QQ群 331230369

FreeFree tier
Type
Open Source

About liudf0716/xfrpc

xfrpc is a lightweight FRP (Fast Reverse Proxy) client implemented in C, specifically designed for resource-constrained devices such as OpenWRT routers and IoT systems. It is compatible with frps (the server component) and aims to provide a minimal memory and storage footprint while supporting a wide range of tunneling features. The project currently offers partial but growing compatibility with the latest frp release, including support for TCP, TCPMUX, HTTP, HTTPS, custom domains, subdomain, SOCKS5, XTCP, STCP, and QUIC transport. It also integrates xDPI (deep packet inspection) for enhanced security against malicious sniffing. Built on top of libevent, json-c, and a TLS library (wolfSSL or OpenSSL), xfrpc is an open-source solution for efficient NAT traversal on embedded devices.

Key Features

Written in C for reduced resource usage on OpenWRT and IoT
Compatible with frps server (partial compatibility, targeting full support)
Supports TCP, TCPMUX, HTTP, HTTPS, custom domains, subdomain
Supports SOCKS5 proxy
Supports XTCP, STCP, and QUIC transport
Integrated xDPI (deep packet inspection) for security
Uses libevent, json-c, and TLS library (wolfSSL or OpenSSL)
Open source (MIT license implied by repository)

Pros & Cons

Pros
  • Extremely lightweight, ideal for devices with limited ROM and RAM
  • C language implementation ensures efficiency and low overhead
  • Broad protocol support including modern transports like QUIC
  • Includes xDPI for additional security against network sniffing
  • Open source with active development and community (QQ group 331230369)
Cons
  • Does not support encryption (use_encryption) or compression (use_compression) yet
  • No P2P support (p2p feature is marked No)
  • Only partially compatible with the latest frp server release
  • Limited to resource-constrained platforms; not general-purpose
  • Documentation mainly in Chinese, may be less accessible to non-Chinese users

Best For

NAT traversal for OpenWRT routers and IoT devicesRemote access to local network services (e.g., web interfaces, SSH)Exposing home server applications through a reverse proxySecure tunneling for lightweight embedded systems with limited storage

FAQ

What is xfrpc?
xfrpc is a lightweight implementation of the FRP (Fast Reverse Proxy) client written in C, specifically designed for OpenWRT and IoT systems with limited resources.
Is xfrpc fully compatible with the latest frp server?
Currently, xfrpc is partially compatible with the latest frp release features. The project targets full compatibility in the future.
What dependencies does xfrpc require?
xfrpc requires libevent, json-c, and a TLS library such as wolfSSL or OpenSSL. On Ubuntu/Debian, these can be installed via apt.