Skip to content

garymaxallen/v2pn

Repository files navigation

v2pn

v2pn, a very simple but usable Android vpn app based on https://github.com/v2fly/v2ray-core and https://github.com/xjasonlyu/tun2socks

It has http server api.

ba04747e3019293a93883fc5576b1ef

a628fd2866bcfbb058d17f57383e4b4

installation:

  1. use gomobile to generate v2pn.aar from https://github.com/garymaxallen/vt
  2. put v2pn.aar in app/libs/vpn folder
  3. gradlew.bat assembleDebug/installDebug

I'm an android amateur/rookie, only care about usability.

This app is very simple, only for personal use.

It doesn't have fancy GUI settings.

Change settings with curl Termux(https://github.com/termux/termux-app)

Get allowed apps

curl http://localhost:8080/v2pn/allowedlist

Get global vpn status

curl http://localhost:8080/v2pn/globalvpn

Get vpn running status

curl http://localhost:8080/v2pn/running

upload v2ray config.json file, must upload before connect to vpn

curl http://localhost:8080/v2pn/fileupload -F "filename=@config.json"

add app to allowed list

curl http://localhost:8080/v2pn/allowedlist -d "com.termux"

set vpn global or not

curl http://localhost:8080/v2pn/globalvpn -d "true"

curl http://localhost:8080/v2pn/globalvpn -d "false"

About

v2pn, a very simple but usable Android vpn app based on https://github.com/v2fly/v2ray-core and https://github.com/xjasonlyu/tun2socks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages