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

wget fail #264

Open
pavlexander opened this issue Jul 17, 2024 · 2 comments
Open

wget fail #264

pavlexander opened this issue Jul 17, 2024 · 2 comments

Comments

@pavlexander
Copy link

Fresh distro installation of vpntoolkit

wsl.exe -d wsl-vpnkit --cd /app wsl-vpnkit

output

+ VPNKIT_GATEWAY_IP=192.168.127.1
+ VPNKIT_HOST_IP=192.168.127.254
+ VPNKIT_LOCAL_IP=192.168.127.2
+ TAP_MAC_ADDR=5a:94:ef:e4:0c:ee
+ VMEXEC_PATH=/app/wsl-vm
+ GVPROXY_PATH=/app/wsl-gvproxy.exe
+ TAP_NAME=wsltap
+ CHECK_HOST=example.com
+ CHECK_DNS=1.1.1.1
+ DEBUG=0
+ set +x
+ WSL2_TAP_NAME=eth0
+ WSL2_GATEWAY_IP=10.255.255.254
+ '[' 0 -eq 0 ]
+ set +x
starting vm and gvproxy...
INFO[0000] waiting for packets...
time="2024-07-17T17:41:21+03:00" level=info msg="waiting for clients..."
time="2024-07-17T17:41:21+03:00" level=info msg="new connection from remote to 53136"
started vm and gvproxy
check: ✔️ ping success to IPv4 WSL 2 gateway / Windows host (10.255.255.254)
check: ✔️ ping success to IPv4 Windows host (192.168.127.254)
check: ✔️ ping success to IPv4 gateway (192.168.127.1)
check: ✔️ nslookup success for example.com A using 192.168.127.1
check: ✔️ nslookup success for example.com A using 10.255.255.254
check: ❌ nslookup fail for example.com A using 1.1.1.1
check: ✔️ ping success to IPv4 external host domain (example.com)
check: ✔️ ping success to IPv4 external host IP (1.1.1.1)
check: ✔️ nslookup success for example.com AAAA using 192.168.127.1
check: ✔️ nslookup success for example.com AAAA using 10.255.255.254
check: ❌ nslookup fail for example.com AAAA using 1.1.1.1
ping: bad address 'example.com'
check: ➖ ping fail to IPv6 external host (example.com)
wget: server returned error: HTTP/1.0 501 Not Implemented
check: ❌ wget fail for http://example.com
W0717 17:41:36.447769   53136 gonet.go:457] ep.GetRemoteAddress() failed: endpoint not connected
wget: error getting response: Resource temporarily unavailable
check: ❌ wget fail for https://example.com

it mostly succeeds but the last 2 requests fail wget fail for http://example.com and one for https.. what is the reason for this?
I can access the domain just fine on a host windows machine.

any way to investigate and fix it?

@sirVir
Copy link

sirVir commented Jul 31, 2024

Same issue with Windows 11 and Cisco AnyConnect

  • Windows 11 Enterprise 22H2 22621.3880
  • VPNKit v0.4.1
  • WSL version: 2.2.4.0
  • Cisco Secure Client 5.1.3.1110

@sirVir
Copy link

sirVir commented Aug 14, 2024

As a note, I made it work when setup as systemd service following the README instruction. It doesn't seem to work in standalone mode though.

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

2 participants