satishnada / android-vpn-implementation-guide

This Git repository serves as a comprehensive guide and resource for developers looking to implement a Virtual Private Network (VPN) in Android applications. The guide covers fundamental concepts, step-by-step implementation instructions, and best practices for creating a secure and reliable VPN solution on the Android platform.
Apache License 2.0
10 stars 4 forks source link

Feature Request: Show example of VPN Logic #1

Open alexanderankin opened 3 months ago

alexanderankin commented 3 months ago

I see that you have an echo -type placeholder here:

https://github.com/satishnada/android-vpn-implementation-guide/blob/b5dd6e424c1b4be43ad5016243dae154e8e41787/app/src/main/java/com/satish/vpnguide/service/LocalVpnService.kt#L115-L130

I think it would be a neat challenge to flesh this out into something more real.

Tanzin01 commented 2 months ago

Does it work? In my case, apps cant connect to internet.... a14

alexanderankin commented 2 months ago

it is not a complete working example without a vpn client in my understanding as well.

Tanzin01 commented 2 months ago

Um, i thought vonservice itself was enough, and as you said in the codes, traffic is eco -ed

alexanderankin commented 2 months ago

here is a starting point of what needs to be implemented for openvpn protocol, its more than echoing data back to the server

https://openvpn.net/community-resources/openvpn-protocol/

Tanzin01 commented 2 months ago

Thanks will look into it