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

Not connecting to the internet when Vpn is enabled #2

Open
dmitrybbch opened this issue Mar 16, 2018 · 7 comments
Open

Not connecting to the internet when Vpn is enabled #2

dmitrybbch opened this issue Mar 16, 2018 · 7 comments
Assignees
Labels

Comments

@dmitrybbch
Copy link

dmitrybbch commented Mar 16, 2018

Hi, I'm trying to build a really simple local VpnService that just sends the packages without actually doing anything to them, and looking for similiar projects (because I don't know much about networking) I found yours.
Download and build works fine, however when launching on Android it seems like internet connection doesn't work anymore.
Is this expected?

Thanks,
Dmitry

@LipiLee
Copy link
Owner

LipiLee commented Mar 17, 2018

Hi, @dmitrybbch No, it isn't expected. Internet connection should work fine after running this app. If you need a very simple VpnService sample code, check the Google's original Android VPN sample.
https://github.com/aosp-mirror/platform_development/tree/master/samples/ToyVpn .

@dmitrybbch
Copy link
Author

Thanks! But it seems to me that the sample from Google is not a local VPN, it has to connect to an external server. So I guess yours is the most similar to what I had in mind.
On the connecting issue, if it helps, this is the Log:
03-17 13:49:44.348 28176-28311/com.lipisoft.toyshark E/SessionHandler: **** ==> Session not found: 10.120.0.1:33519-66.102.1.188:5228
03-17 13:49:45.460 28176-28311/com.lipisoft.toyshark E/SessionHandler: **** ==> Session not found: 10.120.0.1:56871-74.125.200.188:443
03-17 13:49:46.273 28176-28311/com.lipisoft.toyshark E/SessionHandler: **** ==> Session not found: 10.120.0.1:51401-169.47.5.248:5222
03-17 13:49:46.781 28176-28311/com.lipisoft.toyshark E/SessionHandler: **** ==> Session not found: 10.120.0.1:56566-169.60.79.89:80
03-17 13:49:54.685 28176-28311/com.lipisoft.toyshark E/SessionHandler: **** ==> Session not found: 10.120.0.1:40942-31.13.86.34:443
(and keeps going)

@LipiLee
Copy link
Owner

LipiLee commented Mar 18, 2018

@dmitrybbch, thanks for your critical bug report. I found the current master version was not working well. I committed some patches for it.

@LipiLee LipiLee added the bug label Mar 19, 2018
@LipiLee LipiLee self-assigned this Mar 19, 2018
@CandySu
Copy link

CandySu commented Apr 28, 2018

image

@CandySu
Copy link

CandySu commented Apr 28, 2018

I fetch the latest code,then Logcat output too much error info as before

@LipiLee
Copy link
Owner

LipiLee commented Apr 30, 2018

@CandySu , thanks for your report. So I submitted a patch for it. And this project have used AT&T ARO project(https://github.com/attdevsupport/ARO) as TCP/IP stack. Unfortunately it has been not clean as you know. If you want to clean it, welcome to your PRs for it.

@CandySu
Copy link

CandySu commented Apr 30, 2018

@LipiLee Thank you for your kindly help and sharing.

Jungwoon pushed a commit to Jungwoon/ToyShark that referenced this issue Jan 22, 2019
Jungwoon pushed a commit to Jungwoon/ToyShark that referenced this issue Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants