Home

Awesome

Xray Magisk Module

A fork of V2ray for Android This is a Xray module for Magisk, and includes binaries for arm, arm64, x86, x64.

Included

Install

You can download the release installer zip file and install it via the Magisk Manager App.

Manual download Xray-core

Download the correct CPU Architecture Xray-core zip file and put it in your /sdcard/Download folder.

such as "Xray-linux-arm64-v8a.zip"

The Installer will install it.

Custom Xray-core

Put any Xray-core.zip in /sdcard/Download folder.

The Installer will install it.

Config

Usage

Normal usage ( Default and Recommended )

Manage service start / stop

Select which App to proxy

Share transparent proxy to WiFi guest or USB guest

Advanced usage ( for Debug and Develop only )

Enter manual mode

If you want to control xray by running command totally, just add a file /data/xray/manual. In this situation, xray service won't start on boot automatically and you cann't manage service start/stop via Magisk Manager App.

Manage service start / stop

Manage transparent proxy enable / disable

Transparent proxy

What is "Transparent proxy"

"A 'transparent proxy' is a proxy that does not modify the request or response beyond what is required for proxy authentication and identification". "A 'non-transparent proxy' is a proxy that modifies the request or response in order to provide some added service to the user agent, such as group annotation services, media type transformation, protocol reduction, or anonymity filtering".

​ -- Transparent proxy explanation in Wikipedia

Working principle

This module also contains a simple script that helping you to make transparent proxy via iptables. In fact , the script is just make some REDIRECT and TPROXY rules to redirect app's network into 65535 port in localhost. And 65535 port is listen by xray inbond with dokodemo-door protocol. In summarize, the App proxy network path is looks like :

Android App ( Google, Facebook, Twitter ... )

⇕ ( TCP & UDP network protocol )

Android system iptables [ localhost inside ]

⇕ ( REDIRECT & TPROXY iptables rules )

[ 127.0.0.1:65535 Inbond ] -- xray -- [ Outbond ]

⇕ ( Shadowsocks, Vmess )

Proxy Server ( SS, xray) [ Internet outside ]

⇕ ( HTTP, TCP, ... other application protocol )

App Server ( Google, Facebook, Twitter ... )

Uninstall

  1. Uninstall the module via Magisk Manager App.

  2. You can clean xray data dir by running command rm -rf /data/xray .

Project X

Project X is a set of network tools that help you to build your own computer network. It secures your network connections and thus protects your privacy. See Project X for more information.

License

The MIT License (MIT)