• Stars
    star
    331
  • Rank 127,323 (Top 3 %)
  • Language
    Shell
  • Created over 5 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

v2ray core

V2ray Magisk模块

基于Magisk的V2Ray代理,使用iptables转发,相较于VPN模式更为省电、无感。

历史版本

本版本是fork自v2ray-for-android。由于源项目年久失修,在使用时需要大幅度自行调整内容。就将自己的改动保存到了自己的仓库。 本仓库删除了历史遗留的二进制大文件,直接检出旧版本不保证能正常使用,有需要匹配旧设备以及查看历史内容的需求请在源仓库查看。

包含内容

安装

目前还未合并至Magisk官方模块仓库,下载zip后自行在Magisk Manager中从本地安装

配置文件(底层)

  • /data/v2ray/config.json V2Ray配置文件
  • /data/v2ray/appid.list 需要代理的APP列表
  • /data/v2ray/softap.list 需要代理的子网

使用方法

通过命令行

启动停止V2Ray进程

V2ray的进程可以通过下面的脚本来进行管理,默认情况下V2Ray进程将开机自动运行:

/data/adb/modules/v2ray/script/v2ray.service (start|stop|restart|status)

使用iptables代理应用

代理iptables规则可以通过下面的脚本管理,同V2Ray进程一样默认情况下iptables规则将开机自动运行:

/data/adb/modules/v2ray/script/v2ray.tproxy (enable|disable|renew)
  • 全局代理 在appid.list编辑内容:
0
  • 分应用代理 在appid.list指定需要代理应用的UID,例:
10131

UID可以通过应用包名在/data/system/packages.list中找到:

lavender:/ $ pm list package -3 
package:com.vanced.android.youtube # 应用 Vanced Youtube
lavender:/ $ grep 'com.vanced.android.youtube' /data/system/packages.list
com.vanced.android.youtube 10131 0 /data/user/0/com.vanced.android.youtube ....
# 10131即是应用Vanced Youtube的UID
  • 代理热点子网 在softap.list中指定热点子网IP即可,也可以使用网段,例:
192.168.43.0/24

各种机型的ROM中打开热点时子网网段并不一致,请根据实际情况编辑

关闭代理的开机自启

/data/v2ray/目录下新建空白文件manual即可

touch /data/v2ray/manaual

通过管理应用

请参照v2manager页面

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 v2ray 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 ] -- V2Ray -- [ Outbond ]

⇕ ( Shadowsocks, Vmess )

Proxy Server ( SS, V2Ray) [ Internet outside ]

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

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

卸载

  1. 删除v2manager应用 pm uninstall co.lintian.v2manager
  2. 在Magisk Manager中停用并删除本插件
  3. 删除v2ray目录 rm -rf /data/v2ray

Project V

Project V 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 ProjectV website for more information.

License

The MIT License (MIT)

More Repositories

1

MagiskHidePropsConf

This tool is now dead...
Shell
1,979
star
2

busybox-ndk

busybox-ndk
Shell
892
star
3

movecert

movecert
Shell
663
star
4

wifi-bonding

Double your bandwith on your Qualcomm devices.
Shell
582
star
5

submission

Submit your Magisk Modules!
559
star
6

HideNavBar

Shell
498
star
7

adb-ndk

adb-ndk
Shell
457
star
8

ViPER4Android-FX

Shell
404
star
9

G-VisualMod

Systemlessy customize your Android's Visual
Shell
393
star
10

callrecorder-skvalex

callrecorder-skvalex
Shell
326
star
11

energizedprotection

Energized Protection Magisk Module.
Shell
321
star
12

terminal_systemizer

terminal_systemizer
Shell
317
star
13

acc

Upstream repo:
Shell
317
star
14

KaliNethunter

KaliNethunter
Shell
298
star
15

Detach

Detach
Shell
249
star
16

com.piyushgarg.rclone

Shell
247
star
17

terminal_debloater

terminal_debloater
Shell
229
star
18

OneController

Magisk module which adds proper key mapping for various game controllers.
Shell
209
star
19

riru_lsposed

Shell
203
star
20

twrp-keep

twrp-keep
Shell
195
star
21

ssh

ssh
Shell
175
star
22

xmlpak

Shell
175
star
23

mm

mm
Shell
157
star
24

riru-core

Shell
148
star
25

Fdroid-Priv

Fdroid-Priv
Shell
128
star
26

nano-ndk

nano-ndk
Shell
127
star
27

xposed

Shell
126
star
28

ainur_narsil

Sauron audiomod developed with many experimental tweaks to squeeze more from your device in terms of sound
Shell
124
star
29

CloudflareDNS4Magisk

CloudflareDNS4Magisk
Shell
120
star
30

Pix3lify

Pix3lify
Shell
115
star
31

ccbins

Shell
109
star
32

liboemcryptodisabler

liboemcryptodisabler
Shell
109
star
33

acp

acp
Shell
98
star
34

ainur_jamesdsp

ainur_jamesdsp
Shell
81
star
35

riru_edxposed

Shell
77
star
36

IPControl

IPControl
Shell
74
star
37

adreno-dev

adreno-dev
Shell
72
star
38

ARCore_enabler

Shell
72
star
39

callrecorder-axet

Magisk module for installing axet's Call Recorder app
Shell
71
star
40

microG_installer

Go here ->
Shell
70
star
41

zipsigner

zipsigner
Shell
69
star
42

benchkit

A developer-centric toolkit module for Android to facilitate in-depth profiling and benchmarking.
Shell
67
star
43

GoogleDialerFramework

GoogleDialerFramework
Shell
65
star
44

riru_storage_redirect

Storage Isolation (Storage Redirect) is an app which provides isolated storage feature for apps. It can prevent poor-designed apps making your storage messy and let you control files app can access.
Shell
61
star
45

magisk-drm-disabler

Read-only mirror from GitLab. A Magisk module designed to disable DRM completely on Android
Shell
60
star
46

magisk-frida

You are probably looking for: https://github.com/ViRb3/magisk-frida
55
star
47

mtd-ndk

mtd-ndk
Shell
53
star
48

terminalmods

terminalmods
Shell
52
star
49

aml

aml
Shell
51
star
50

ExSDCard

ExSDCard
Shell
49
star
51

active_edge_system_mod

Active Edge Mod for Pixel devices
Shell
48
star
52

NfcScreenOff

Read NFC tags when screen is off. Disable NFC tagging sound.
Shell
47
star
53

CloudflareDNS4Magisk-IPv6

CloudflareDNS4Magisk-IPv6
Shell
45
star
54

wirelessFirmware

wirelessFirmware
Shell
44
star
55

djs

Daily Job Scheduler
Shell
43
star
56

BluetoothLibraryPatcher

Shell
43
star
57

hidden_settings

Shell
38
star
58

quickstepswitcher

Shell
36
star
59

WDAnimationcxair

Boot and Shut animation switcher Magisk Module for any supported android device
Shell
32
star
60

twrp-helper

A Magisk module to provide dynamic, in-situ patching of a device's TWRP recovery image to include Internal Storage in Data back-ups.
Shell
31
star
61

ViPER4AndroidFX-Legacy

ViPER4AndroidFX Legacy
Shell
31
star
62

Oxy-ify

Oxy-ify
Shell
30
star
63

airmusic

airaudio
Shell
30
star
64

noneDisplayCutout

Shell
29
star
65

nexusmedia

nexusmedia
Shell
26
star
66

sony-device-dummy

sony-device-dummy
Shell
25
star
67

overlayfix

Shell
23
star
68

vold-posix

vold-posix
Shell
23
star
69

foxy-boot

Shell
22
star
70

miracast-enabler

Magisk module to re-enable Mircast on certain android devices
Shell
22
star
71

Systemless_TZData

Systemless_TZData
Shell
21
star
72

PIXELARITY

Contains pixel exclusives, fix and tweaks to boost user experience on devices running Android 9/10
Shell
20
star
73

sqlite3

sqlite3
Shell
20
star
74

adreno-630-gpu-driver

Original repo at:
Shell
19
star
75

HEVCEnabler

HEVCEnabler
Shell
16
star
76

riru_location_report_enabler

A module of Riru. Enable Google location report and Google app timeline by hook __system_property_get in specific packages.
Shell
13
star
77

libsecure_storage

This Magisk module contains modified libsecure_storage.so libraries that allow rooted Samsung to function without losing Bluetooth pairings after a reboot.
Shell
13
star
78

disable-screenshot-camera-sounds

disable-screenshot-camera-sounds
Shell
13
star
79

com.catchingnow.icebox

Shell
12
star
80

wifi5ghzdisabler

Magisk module to disable WiFi 5Ghz Band on your Qualcomm device
Shell
11
star
81

apt-x

apt-x
Shell
10
star
82

ctenabler

Shell
9
star
83

disable-mdnsd

Shell
9
star
84

zsh_arm64

Shell
9
star
85

sonymusic

Shell
8
star
86

tcpdump_static_aarch64

Shell
8
star
87

oosbar

Shell
8
star
88

AppOpsPlugin

Shell
8
star
89

ASUS-Style-Suite

ASUS-Style-Suite
Shell
7
star
90

OneUISounds

One UI system sounds
Shell
7
star
91

logcat

Shell
7
star
92

aospill

Shell
7
star
93

motoclockwidget

motoclockwidget
Shell
7
star
94

xposed_dalvik

Shell
7
star
95

miui-10-sounds

Shell
6
star
96

ViPER4AndroidXHiFi

ViPER4AndroidXHiFi
Shell
6
star
97

HideGesBar

Shell
4
star
98

PS4RE

Shell
4
star
99

kfmark

Shell
2
star