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

Connects/routes perfectly but after 5 minutes connections revert to normal route? #5

Closed
GoogleCodeExporter opened this issue Feb 13, 2016 · 13 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. Connect Putty to server and enable tunnel
2. Start badvpn-tun2socks routing through local proxy
3. Add route tables to direct traffic
4. Connect to various sites to verify the connection
5. Wait a few minutes, close browser then try again

What is the expected output? What do you see instead?

When I first connect as described in the doc 
(https://code.google.com/p/badvpn/wiki/tun2socks) the results are as expected. 
I can for example see that my IP changes using various IP checking websites. 
All works fantasticly!

After about 5 minutes however I notice that my IP has returned back to its real 
IP and it appears that connections are no longer being routed.

I've checked the route table and confirmed that my route is still active and 
that the tun2socks program is running and that the socks tunnel is still there.

I cannot think of why this would happen. It is almost like the route table is 
ignoring its own rules?


What version of the product are you using? On what operating system?

1.999.127rc1

Any idea what could be going on?

Many thanks!

Original issue reported on code.google.com by mi...@wangled.com on 11 Mar 2013 at 4:23

@GoogleCodeExporter
Copy link
Author

I've seen this happen on Windows 7 (but not XP). I'm sorry but I have no idea 
about the cause, it seems external to tun2socks, that is, the OS just stops 
routing packets into tun2socks. You can try playing with stuff in Network 
Connection and Windows Firewall, and check the Windows Event Log.

Original comment by ambr...@gmail.com on 11 Mar 2013 at 4:31

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Yes, this is on Windows 7.

I'm looking at my routing tables and as you say it seems that Windows is just 
ignoring them.

What about removing the other 0.0.0.0 route, essentially meaning that all other 
traffic must go through 10.0.0.2?

Original comment by mi...@wangled.com on 11 Mar 2013 at 4:33

@GoogleCodeExporter
Copy link
Author

Monitoring the virtual network interface with Wireshark may also provide some 
hints. One suspicion I have is that something in Windows is deciding that the 
route doesn't work and disables it silently.

Original comment by ambr...@gmail.com on 11 Mar 2013 at 4:33

@GoogleCodeExporter
Copy link
Author

Yes, removing the default route entry does the job. I've now been connected for 
about 10 minutes and connections are still going through as they should.

It looks like it is something MS changed in their implementation from Vista 
onwards:

http://serverfault.com/questions/255799/windows-vista-and-7-dont-honor-routing-t
able-metric

Apart from that tun2socks works great by the way.. very smooth!

Original comment by mi...@wangled.com on 11 Mar 2013 at 4:45

@GoogleCodeExporter
Copy link
Author

Ok, I guess there's nothing that can be done from tun2socks about this problem.

Original comment by ambr...@gmail.com on 11 Mar 2013 at 4:48

  • Changed state: WontFix

@GoogleCodeExporter
Copy link
Author

Issue 9 has been merged into this issue.

Original comment by ambr...@gmail.com on 24 Apr 2013 at 11:10

@GoogleCodeExporter
Copy link
Author

Issue 9 has been merged into this issue.

Original comment by ambr...@gmail.com on 24 Apr 2013 at 11:23

@GoogleCodeExporter
Copy link
Author

Issue 9 has been merged into this issue.

Original comment by ambr...@gmail.com on 24 Apr 2013 at 11:35

@GoogleCodeExporter
Copy link
Author

Issue 9 has been merged into this issue.

Original comment by ambr...@gmail.com on 24 Apr 2013 at 12:04

@GoogleCodeExporter
Copy link
Author

Issue 9 has been merged into this issue.

Original comment by ambr...@gmail.com on 24 Apr 2013 at 12:13

@GoogleCodeExporter
Copy link
Author

Issue 9 has been merged into this issue.

Original comment by ambr...@gmail.com on 24 Apr 2013 at 12:16

@GoogleCodeExporter
Copy link
Author

Issue 9 has been merged into this issue.

Original comment by ambr...@gmail.com on 24 Apr 2013 at 1:19

@GoogleCodeExporter
Copy link
Author

Issue 9 has been merged into this issue.

Original comment by ambr...@gmail.com on 24 Apr 2013 at 1:20

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

No branches or pull requests

1 participant