henryhwang / badvpn

Automatically exported from code.google.com/p/badvpn
Other
0 stars 0 forks source link

wont work on Windows Xp (faild to get ConnectEx) #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. OpenVPN installed & Tun adapter configured to 10.0.0.1 / 255.255.255.0
2. Run badvpn-tun2sock with params below. (tunnel created with putty, and its 
working)
3. route add [single_ip] mask 255.255.255.255 10.0.0.2 metric 1
4. telnet [single_ip] 80

What is the expected output? What do you see instead?
Working connection.
Telnet connects, but after a single keypress it disconnects (no message)

What version of the product are you using? On what operating system?
win32-1.999.127rc1

Please provide any additional information below.

D:\badvpn-win32-1.999.127rc1\bin>badvpn-tun2socks.exe --tundev 
"tap0901:tundev:10.0.0.1:10.0.0.0:255.255.255.0" --netif-ipaddr 10.0.0.2 
--netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:8080 --loglevel 4
NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.127rc1
INFO(BTap): Looking for TAP-Win32 with component ID tap0901, name tundev
INFO(BTap): Opening device \\.\Global\{2149300B-D86B-46C0-8F0E-10D3D906BF13}.tap

INFO(BTap): Device opened
NOTICE(tun2socks): entering event loop
ERROR(BConnection): faild to get ConnectEx
ERROR(BSocksClient): BConnector_Init failed
ERROR(tun2socks): listener accept: BSocksClient_Init failed

Original issue reported on code.google.com by annu...@gmail.com on 28 Aug 2013 at 1:55

GoogleCodeExporter commented 9 years ago
That's a strange error. Apparently the OS doesn't support the ConnectEx 
function which is required. But then, MSDN states WinXP does support it, 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms737606(v=vs.85).aspx .

Perhaps there is something wrong with your OS, or the MSDN is wrong about 
ConnectEx being supported on XP? Do you happen to have a very old version of XP?

Original comment by ambr...@gmail.com on 28 Aug 2013 at 7:31

GoogleCodeExporter commented 9 years ago
Hi! I've tried it with a virtualized XP (SP3), and it works flawlessly.
Unfortunately i can't check the version of the problematic xp until tomorrow.

Do you have any suggestion? What lib should i install/reinstall?

Thank you!

Original comment by annu...@gmail.com on 28 Aug 2013 at 7:42

GoogleCodeExporter commented 9 years ago
I've got the version info:
Both of them are XP SP3 (Professional), and "cmd" tells Microsoft Windows XP 
[Version 5.1.2600]

Original comment by annu...@gmail.com on 28 Aug 2013 at 7:56

GoogleCodeExporter commented 9 years ago
It appears then your system is broken in some way, I don't believe there's 
anything I can do.

Original comment by ambr...@gmail.com on 28 Aug 2013 at 8:08

GoogleCodeExporter commented 9 years ago
"Microsoft Fix it 50203" resolved this issue.
http://go.microsoft.com/?linkid=9662461

Thanks for this great sw! (:

Original comment by annu...@gmail.com on 28 Aug 2013 at 8:38