Code Monkey home page Code Monkey logo

luci-app-xray's Introduction

Build Packages

luci-app-xray

Yet Another LuCI frontend for Xray. An opinionated forked version of yichya/luci-app-xray with lots of quality of life improvements.

This project will never provide updates through an opkg feed. It's easy though, but adding a custom feed from untrusted source (anywhere, even me!) is a huge security flaw. Manual installation with opkg or pack the ipk into the firmware image with OpenWrt imagebuilder is recommanded.

OpenWrt Version compatible?
22.03
21.02 ✅(Not fully tested)
≤19.07 ⚠️(Untested)

Features

🌟: only in this fork, NOT available upstream.

  • Proxy servers management.
  • Separate upstream proxies for TCP and UDP.
  • Transparent proxy through nftables (>=22.03) or iptables (<=21.02) (🌟completely rewritten)
  • Proxy rules config by whitelist/blacklist.
  • 🌟Xray confdir support, allowing maximum flexibility.
  • 🌟Explicitly naming auto-generated configuration files for better sorting, improving the integration with confdir.
  • Using Xray as an HTTPS reverse proxy.
  • 🌟ulimit configuration (file descriptors, memory usage) for Xray process.
  • Configuration option to bypass proxy for network traffic from intranet hosts by host MAC address.
  • Configuration option to bypass proxy for network traffic from router processes by UID and GID.
  • 🌟Optional dnsmasq takeover, which automatically setting xray DNS inbound as dnsmasq upstream.

Breaking changes differ from upstream project

Service name is changed from xray to xapp, to avoid conflict with service provided by openwrt package xray-core.

# start service
/etc/init.d/xapp start
# stop service
/etc/init.d/xapp stop

luci-app-xray's People

Contributors

yichya avatar ttimasdf avatar mitsuhaxy avatar zmz125000 avatar babxhwzunbetv avatar

Stargazers

akhzz avatar JeffChen avatar AVA avatar Changhua avatar  avatar  avatar Hamed Fallah avatar Kaambiz avatar Naldo Wang avatar ShiyanWangMS avatar  avatar

Watchers

James Cloos avatar Hamed Fallah avatar

luci-app-xray's Issues

如何配置才能正常转发

拓扑:
互联网 <--> 光猫(192.168.0.1) <--> 路由器1 (192.168.1.1) <--> OpenWRT (xapp, 192.168.2.1)

放置路由器1的原因是,OpenWRT无法从互联网访问进来;而路由器1又无法使用xray。期望结果是:让OpenWRT能正常转发,移除路由器1

现象:
1、上述链接中,OpenWRT中可以ping 192.168.0.1,但连接OpenWRT的设备(如PC 192.168.2.103)无法ping 192.168.0.1,提示如下:

ping 192.168.0.1 
PING 192.168.0.1 (192.168.0.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
ping: sendto: No route to host
Request timeout for icmp_seq 4
ping: sendto: Host is down
Request timeout for icmp_seq 5
ping: sendto: Host is down
Request timeout for icmp_seq 6

2、同时,如果将OpenWRT替换路由器1,LAN改为192.168.1.1,则LAN下的服务无法从互联网访问。

版本:
OpenWrt 23.05-SNAPSHOT, r23213-8a0746955d
xapp f46cec6

之前使用上游版本,遇到了上述问题,从ISSUE里找到这里,但可能是没有正确配置,问题仍然存在。

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.