From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) by passt.top (Postfix) with ESMTPS id 646895A026D for ; Sun, 28 May 2023 12:50:23 +0200 (CEST) Date: Sun, 28 May 2023 10:50:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1685271022; x=1685530222; bh=z0w28t1OpZ6d4ebOMCL6HS7ezHeUBFxBSJwmwczUVKw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=WRjN9G27kz1Ri0S/kH85gDyJhlgsgA+WYAnOO+pv7OvIYgaBHfUty0NCLqcIeyv1f rUL265U82A2gfi/vgRPqW0RyprqUHOQEMXVdenhTghSRKgkykH3W4kSeNtIiJF76BD kPamQVTNYKyIJKrlWQSBYy+Zmg9L1bWiqpS1ic8X8UAJGN34xB6WYv33rah4pRYpbt 5CuVqTgZVMFVVUEiZCBNiFWMBXZ/oAmKOfzn6NY12iW14+Ct5mSISM5W/kTEd+vaeD UVzbd6Y+VQ2tTElm1vaY2eq9Nmja8a3WPpKkBYW+jnStCb385xHO1b3sj+A6oiYflN r7iwc9UvoEfQQ== To: David Gibson From: Juan Orti Subject: Re: IPv6 UDP not working Message-ID: In-Reply-To: References: Feedback-ID: 45474451:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: UI3EZYH2SY3B3XFDFMQL54BLSTAFF4NN X-Message-ID-Hash: UI3EZYH2SY3B3XFDFMQL54BLSTAFF4NN X-MailFrom: jorti@pm.me X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: "passt-user@passt.top" X-Mailman-Version: 3.3.8 Precedence: list List-Id: "For users: support, questions and answers" Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: ------- Original Message ------- El domingo, 28 de mayo de 2023 a las 12:12, Juan Orti escribi= =C3=B3: > I don't understand why it's not working, as the service listens on the ::= address. Maybe it's using a socket option that it's causing this? I need t= o investigate this further. >=20 > # netstat -putan > Active Internet connections (servers and established) > Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name > tcp 0 0 :::3003 :::* LISTEN 2/AdGuardHome > tcp 0 0 :::54 :::* LISTEN 2/AdGuardHome > udp 0 0 :::54 :::* 2/AdGuardHome >=20 > # cat /proc/net/udp6 > sl local_address remote_address st tx_queue rx_queue tr tm->when retrnsmt= uid timeout inode ref pointer drops >=20 > 4718: 00000000000000000000000000000000:0036 00000000000000000000000000000= 000:0000 07 00000000:00000000 00:00000000 00000000 0 0 38510801 2 000000007= 3476783 0 After stracing the AdGuardHome process, I can see that the UDP packet is in= deed reaching the service but it's the reply that fails to be sent: 11 10:25:04.445902 recvmsg(25, 11 10:25:04.446238 <... recvmsg resumed>{msg_name=3D{sa_family=3DAF_INET= 6, sin6_port=3Dhtons(33308), sin6_flowinfo=3Dhtonl(0), inet_pton(AF_INET6, = "fddc:f797:78ef:10::b46", &sin6_addr), sin6_scope_id=3D0}, msg_namelen=3D11= 2 =3D> 28, msg_iov=3D[{iov_base=3D"\246\245\1 \0\1\0\0\0\0\0\1\3www\6google= \3com\0\0\1\0\1\0\0)\4\320\0\0\0\0\0\f\0\n\0\10\207a\315\224\245\253\v\37",= iov_len=3D65535}], msg_iovlen=3D1, msg_control=3D[{cmsg_len=3D36, cmsg_lev= el=3DSOL_IPV6, cmsg_type=3D0x32}], msg_controllen=3D40, msg_flags=3D0}, 0) = =3D 55 <0.000059> 11 10:25:04.446371 futex(0xc000064548, FUTEX_WAKE_PRIVATE, 1 11 10:25:04.446415 <... futex resumed>) =3D 1 <0.000032> 11 10:25:04.446461 recvmsg(25, 11 10:25:04.446658 <... recvmsg resumed>{msg_namelen=3D112}, 0) =3D -1 E= AGAIN (Resource temporarily unavailable) <0.000097> 11 10:25:04.447130 sendmsg(25, {msg_name=3D{sa_family= =3DAF_INET6, sin6_port=3Dhtons(33308), sin6_flowinfo=3Dhtonl(0), inet_pton(= AF_INET6, "fddc:f797:78ef:10::b46", &sin6_addr), sin6_scope_id=3D0}, msg_na= melen=3D28, msg_iov=3D[{iov_base=3D"\246\245\201\200\0\1\0\1\0\0\0\0\3www\6= google\3com\0\0\1\0\1\300\f\0\1\0\1\0\0\0\n\0\4\330\357&x", iov_len=3D48}],= msg_iovlen=3D1, msg_control=3D[{cmsg_len=3D36, cmsg_level=3DSOL_IPV6, cmsg= _type=3D0x32}], msg_controllen=3D40, msg_flags=3D0}, 0) =3D -1 EINVAL (Inva= lid argument) <0.000020> It's not clear to me what's wrong with the sendmsg syscall. Any ideas? Thanks.