Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using as a local VPN for Android #17

Open
JonForShort opened this issue Mar 14, 2021 · 0 comments
Open

Using as a local VPN for Android #17

JonForShort opened this issue Mar 14, 2021 · 0 comments

Comments

@JonForShort
Copy link

Hi, thanks for the project. Do you know if there is a way to use this for creating a local VPN service on Android?

Just to give a bit of background, the way VPN services work on Android is that the application receives a file descriptor that is attached to the devices TUN interface. When the Android application reads from this file descriptor, it gets all the outgoing packets for the device. These packets are raw IP layer-3 packets (including IP header). It is up to the app to figure out how to send these raw IP packets. When the Android application writes to the file descriptor, the system passes these packets back to the device and to the original sending application. These packets also need to be formatted as raw IP packets.

I was looking through the source code and the socks functionality looks like it is what I need but I wasn't sure.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant