termux / termux/termux-api

Feature request: termux vpn

Open
#545 2 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Feature description

Implement android vpn interface, obtain the tun file descriptor, and expose it to termux command line programs.

Currently android only allow one active vpn app, but a lot of functions need to be implemented as vpn service, such as dns filtering, proxying, packet inspection, etc. Other gui apps could implement some of the functionalities, but very rare to do them all. It is also impossible to compose these gui app to make them work together.

If we could obtain the tun descriptor and pass it to termux programs, we can do all the things together by chaining a series of processors together easily, without root, and all network packet logic is in our hands.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review Android VPN interface requirements and the existing termux-api architecture first; the issue names no source files, entry points, or tests. The work would be complete when a VPN TUN descriptor can be obtained and exposed to Termux command-line programs, with the behavior validated by project tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
cli, mobile, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.