bubuntux / nordlynx

GNU General Public License v3.0
192 stars 43 forks source link

Docker Desktop - Windows 11 - WSL2 not working iptables-restore #151

Closed dvh312 closed 5 months ago

dvh312 commented 8 months ago
:warning: Make sure to follow the template, troubleshoot on your own first, review Open/Closed Issues, Discussions, Wiki and consider creating a discussion thread instead. :warning:

Describe the bug

Failed to create ip link wg0

To Reproduce using docker-compose

Install Docker WSL2 on Windows 11.

docker-compose.yml if used (hide credentials)

version: '3.8'
services:
  nordlynx:
    image: ghcr.io/bubuntux/nordlynx
    cap_add:
      - NET_ADMIN #required
      - SYS_MODULE
    environment:
      - PRIVATE_KEY=XXX #required
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1

Expected behavior

Running curl checkip.amazonaws.com inside the container should return the VPN IP but freeze instead.

Logs

Focus on errors or warnings messages, if not available post entire logs

2023-11-16 00:25:05 [2023-11-16T08:25:05+00:00] Connecting...
2023-11-16 00:25:05 [2023-11-16T08:25:05+00:00] Connected! \(ᵔᵕᵔ)/
2023-11-16 00:25:05 [#] 
2023-11-16 00:25:05 [#] ip link add wg0 type wireguard
2023-11-16 00:25:05 [#] wg setconf wg0 /dev/fd/63
2023-11-16 00:25:05 [#] ip -4 address add 10.5.0.2/32 dev wg0
2023-11-16 00:25:05 [#] ip link set mtu 1420 up dev wg0
2023-11-16 00:25:05 [#] resolvconf -a wg0 -m 0 -x
2023-11-16 00:25:05 [#] wg set wg0 fwmark 51820
2023-11-16 00:25:05 [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
2023-11-16 00:25:05 [#] ip -4 rule add not fwmark 51820 table 51820
2023-11-16 00:25:05 [#] ip -4 rule add table main suppress_prefixlength 0
2023-11-16 00:25:05 [#] iptables-restore -n
2023-11-16 00:25:05 Warning: Extension CONNMARK revision 0 not supported, missing kernel module?
2023-11-16 00:25:05 iptables-restore: line 7 failed
2023-11-16 00:25:05 [#] resolvconf -d wg0 -f
2023-11-16 00:25:05 [#] ip -4 rule delete table 51820
2023-11-16 00:25:05 [#] ip -4 rule delete table main suppress_prefixlength 0
2023-11-16 00:25:05 [#] ip link delete dev wg0

Additional context

Distribution used, versions, architecture and any other context about the problem here.

kfedderson commented 7 months ago

I'm having the exact same issue. Everything was working fine until the last week or so. Windows 10 WSL2.

2023-11-29 14:12:14 [2023-11-29T21:12:14+00:00] Connecting... 2023-11-29 14:12:15 [2023-11-29T21:12:15+00:00] Connected! (ᵔᵕᵔ)/ 2023-11-29 14:12:14 [#] 2023-11-29 14:12:14 [#] ip link add wg0 type wireguard 2023-11-29 14:12:14 [#] wg setconf wg0 /dev/fd/63 2023-11-29 14:12:14 [#] ip -4 address add 10.5.0.2/32 dev wg0 2023-11-29 14:12:14 [#] ip link set mtu 1420 up dev wg0 2023-11-29 14:12:14 [#] resolvconf -a wg0 -m 0 -x 2023-11-29 14:12:14 [#] wg set wg0 fwmark 51820 2023-11-29 14:12:14 [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820 2023-11-29 14:12:14 [#] ip -4 rule add not fwmark 51820 table 51820 2023-11-29 14:12:14 [#] ip -4 rule add table main suppress_prefixlength 0 2023-11-29 14:12:14 [#] iptables-restore -n 2023-11-29 14:12:14 Warning: Extension CONNMARK revision 0 not supported, missing kernel module? 2023-11-29 14:12:14 iptables-restore: line 7 failed 2023-11-29 14:12:14 [#] resolvconf -d wg0 -f 2023-11-29 14:12:14 [#] ip -4 rule delete table 51820 2023-11-29 14:12:14 [#] ip -4 rule delete table main suppress_prefixlength 0 2023-11-29 14:12:14 [#] ip link delete dev wg0

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.