celzero / firestack

Userspace wireguard and network monitor
https://rethinkdns.com/app
Mozilla Public License 2.0
100 stars 16 forks source link

udp.ProxyMux: invalid protocol number dialing into WireGuard #114

Closed ignoramous closed 4 days ago

ignoramous commented 4 days ago
11-14 01:27:07.134 10131 10177 E LibLogger: F udp.ProxyMux [11] invalid protocol number = 0
11-14 01:27:07.140 10131 10177 E LibLogger: goroutine 89 [running]:             
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/golang/go/src/runtime/panic.go:785 +0x124
11-14 01:27:07.140 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*Endpoint).Init(0x4000712398, 0x400001e008, 0x0, 0x11, 0x4000712548, 0x40003b00c0)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/transport/internal/network/endpoint.go:129 +0x218
11-14 01:27:07.140 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/transport/udp.newEndpoint(0x400001e008, 0x0, 0x40003b00c0)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/transport/udp/endpoint.go:117 +0x12c
11-14 01:27:07.140 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*protocol).NewEndpoint(0x76c44fae00?, 0x7a50e0?, 0x4000000011?)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/transport/udp/protocol.go:58 +0x20
11-14 01:27:07.140 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).NewEndpoint(0x4000134020?, 0xefc00?, 0x0, 0x40003b00c0)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/stack/stack.go:826 +0x5c
11-14 01:27:07.140 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/adapters/gonet.DialUDP(0x400001e008, 0x0, 0x0, 0x0)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/adapters/gonet/gonet.go:571 +0x54
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra/ipn.(*wgtun).DialUDPAddrPort(0x400014ab40, {{{0x9?, 0x40000b2280?}, {0x4000126468?}}, 0x90?}, {{{0x77e2c405e0?, 0x40007dbe18?}, {0x0?}}, 0x9?})
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/ipn/wgnet.go:261 +0x1a8
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra/ipn.(*wgtun).ListenUDPAddrPort(...)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/ipn/wgnet.go:265
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra/ipn.(*wgtun).Announce(0x400014ab40, {0x76c42e4abb, 0x4}, {0x400012cf10, 0x9})
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/ipn/wgproxy.go:904 +0x22c
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra/ipn.(*wgproxy).Announce(0x40007dbee8?, {0x76c42e4abb?, 0x40007dbee8?}, {0x400012cf10?, 0x303a?})
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/ipn/wgproxy.go:162 +0x28
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra.(*muxTable).associate(0x40003a56e0, {0x4000220620, 0x10}, {0x40004264e4, 0x4}, {0x4000220650, 0x5}, {{{0x0, 0xffff0a6fde01}, {0x4000126468}}, ...}, ...)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/udpmux.go:535 +0x25c
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra.(*udpHandler).Connect(0x40003a56f0, 0x40007901e0, {{{0x0, 0xffff0a6fde01}, {0x4000126468}}, 0x92d9}, {{{0x0, 0xffff646f92d4}, {0x4000126468}}, 0x1bb}, ...)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/udp.go:279 +0xff0
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra.(*udpHandler).proxy(0x40003a56f0, 0x40007901e0, {{{0x60?, 0x400053e6d8?}, {0x4000126468?}}, 0x793c?}, {{{0x40007901e0?, 0x0?}, {0x4000126468?}}, 0x1e0?}, ...)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/udp.go:163 +0x30
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra.(*udpHandler).ProxyMux(0x0?, 0x4000191c08?, {{{0x40001b24d0?, 0x0?}, {0x4000126468?}}, 0x24d0?}, {{{0x40009ac5a8?, 0x76c41614e8?}, {0x4000126468?}}, 0x3e40?}, ...)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/udp.go:133 +0x68
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra/netstack.handle({0x76c461bf20?, 0x40003a56f0?}, 0x0?, {{{0x4?, 0x4000126468?}, {0x4000126468?}}, 0x0?}, {{{0x4?, 0x4000126468?}, {0x4000126468?}}, ...}, ...)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/netstack/udp.go:162 +0x64
11-14 01:27:07.140 10131 10177 E LibLogger: github.com/celzero/firestack/intra/netstack.Up.OutboundUDP.udpForwarder.func1(0x400009a780)
11-14 01:27:07.140 10131 10177 E LibLogger: >---/home/jitpack/build/intra/netstack/udp.go:155 +0x1d0
11-14 01:27:07.141 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*Forwarder).HandlePacket(0x40003a5910, {0x1bb, {{0x64, 0x6f, 0x92, 0xd4, 0x0, 0x0, 0x0, 0x0, ...}, ...}, ...}, ...)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/transport/udp/forwarder.go:47 +0xb0
11-14 01:27:07.141 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0x400014c488, 0x11, 0x4000259040)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/stack/nic.go:869 +0x3c4
11-14 01:27:07.141 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).deliverPacketLocally(0x4000400008, {0x4000152580, 0x14, 0x80}, 0x4000259040, {0x0?, 0x4?})
11-14 01:27:07.141 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/network/ipv4/ipv4.go:1335 +0xb4c
11-14 01:27:07.141 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0x4000400008, {0x4000152580, 0x14, 0x80}, 0x4000259040, {0x0, 0x0})
11-14 01:27:07.141 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/network/ipv4/ipv4.go:1166 +0x6bc
11-14 01:27:07.141 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0x4000400008, 0x4000259040)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/network/ipv4/ipv4.go:874 +0x5a4
11-14 01:27:07.141 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0x400014c488, 0x800, 0x4000259040)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/stack/nic.go:769 +0x1ac
11-14 01:27:07.141 10131 10177 E LibLogger: gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0x4000168f50?, 0x800, 0x4000259040)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/tmp/gomobile-work-1015688146/pkg/mod/gvisor.dev/gvisor@v0.0.0-20241009022347-94b16c128c1c/pkg/tcpip/link/nested/nested.go:61 +0xb0
11-14 01:27:07.141 10131 10177 E LibLogger: github.com/celzero/firestack/intra/netstack.(*SnoopyEndpoint).DeliverNetworkPacket(0x4000168f50, 0x800, 0x4000259040)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/home/jitpack/build/intra/netstack/snooper.go:128 +0x4c
11-14 01:27:07.141 10131 10177 E LibLogger: github.com/celzero/firestack/intra/netstack.(*endpoint).InjectInbound(0x40003e6ab0, 0x800, 0x4000259040)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/home/jitpack/build/intra/netstack/fdbased.go:521 +0x158
11-14 01:27:07.141 10131 10177 E LibLogger: github.com/celzero/firestack/intra/netstack.(*processor).deliverPackets(0x40003def88)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/home/jitpack/build/intra/netstack/forwarders.go:172 +0x170
11-14 01:27:07.141 10131 10177 E LibLogger: github.com/celzero/firestack/intra/netstack.(*processor).start(0x40003def88, 0x40003ceac0)
11-14 01:27:07.141 10131 10177 E LibLogger: >---/home/jitpack/build/intra/netstack/forwarders.go:152 +0x144
11-14 01:27:07.141 10131 10177 E LibLogger: created by github.com/celzero/firestack/intra/netstack.(*supervisor).start in goroutine 52
11-14 01:27:07.141 10131 10177 E LibLogger: >---/home/jitpack/build/intra/netstack/forwarders.go:235 +0x200