这是indexloc提供的服务,不要输入任何密码
Skip to content

Add API for binding specific process or session to network #771

@t1m013y

Description

@t1m013y

Feature description

I need to bind specific processes or Termux sessions to the tun interface while using other processes/sessions with the normal network. I can't just bind the process to the specific network interface due to Android system limitations (I have unrooted phone and currently can't root it). For example, curl <some_url> --interface tun1 doesn't work.

I need this feature to set up a SOCKS proxy server that redirects requests to tun network while other Termux sessions and apps making connections through normal network.

Reference implementation

Have you checked if the feature is accessible through the Android API?

Yes, bindProcessToNetwork.

Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)

No. Please tell me if you know any app that can bind to tun and set up a SOCKS proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions