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

bind: An attempt was made to access a socket in a way forbidden by its access permissions. #245

Open
mr-martin-metal opened this issue Oct 20, 2023 · 0 comments

Comments

@mr-martin-metal
Copy link

PS C:\Users<user>> wsl.exe -d wsl-vpnkit --cd /app ./wsl-vpnkit

  • 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=192.168.16.1
  • '[' 0 -eq 0 ]
  • set +x
    starting vm and gvproxy...
    INFO[0000] waiting for packets...
    time="2023-10-20T14:36:59+02:00" level=error msg="cannot add network services: listen tcp 127.0.0.1:2222: bind: An attempt was made to access a socket in a way forbidden by its access permissions."
    ERRO[0000] cannot read size from socket: EOF
    started vm and gvproxy
    ping: sendto: Network unreachable
    check: ❌ ping fail to IPv4 WSL 2 gateway / Windows host (192.168.16.1)
    ping: sendto: Network unreachable
    check: ❌ ping fail to IPv4 Windows host (192.168.127.254)
    ping: sendto: Network unreachable
    check: ❌ ping fail to IPv4 gateway (192.168.127.1)
    nslookup: can't connect to remote host (192.168.127.1): Network unreachable
    check: ❌ nslookup fail for example.com A using 192.168.127.1
    nslookup: write to '192.168.16.1': Network unreachable
    check: ❌ nslookup fail for example.com A using 192.168.16.1
    nslookup: can't connect to remote host (1.1.1.1): Network unreachable
    check: ❌ nslookup fail for example.com A using 1.1.1.1
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

1 participant