From nobody Tue Jan 9 04:58:23 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T8Jbh0lv9z568xs for ; Tue, 9 Jan 2024 04:58:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T8Jbg66WNz4qK1 for ; Tue, 9 Jan 2024 04:58:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704776303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9XHW4hP3eThbWrMKcN2h6YA4/M+vt6MU6nw1p7/YDio=; b=S3uc1lrWKQd3+B1spKaMp1UynkXEnSdDFXZxC/MwONOxf5fpDlHzUPKJ36RXjhJ0WWDx6b MCeqKhEG1lsP+4zRBNa5BKCb4cgcUlysyRspsYXyapkMsDdTjBrANWyX+L/tbv7oaqcWc7 s8zaucCdjJEV36EBD4F1rRxjUMm5Tx+GnxNrbbaMXGbUicrVP3TqAVFIlqx5zMeQnOJV2Z 4eKPHQR7J69JaAEqP5cEuJ5bdWnt02Tx9tZulzN9D3D6I3aHsE3dLiwLK6z3ATPfI7bIag FkQY6l//hAPfPE4kZKmRB38kMdTKRnlt37PxNvhcXw2XwRbP4GD5b4Nctj5smA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704776303; a=rsa-sha256; cv=none; b=kZj4mgLuNU/PZbDyR+1QAHDTF9QeMFULErifZnssvyW8yRKScEbjb+jFYyHb7+wEQhL7Pf wiHhEBa6uUD18OiqxAO3sdKhhfhk+kOi9EqXDU6oX6wlMBgpbKfvpFRwAtn0XlbEEp02bG YoDyoIWDtK7744pPtfy0Jsnn3vSLJjXQEklFH2cocusAZyQRk9a8Nj3NJnr89rzV69892y Xz4tx6894klKLLwvGiq6VvojUD2z1QYXHAM7KaZ/wYV4cX/EEmnaTcjWmwdTFZl/8Qev5T YwIzc48JNFSe78Vra+doMxv0WGrIHPLcAR0VYf5CU0etICVxedOp5EfKmAYU0g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T8Jbg53Q2zd2R for ; Tue, 9 Jan 2024 04:58:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4094wNq0029736 for ; Tue, 9 Jan 2024 04:58:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4094wNbc029735 for ports-bugs@FreeBSD.org; Tue, 9 Jan 2024 04:58:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 276213] net-mgt/unifi7: explicitly disable preferIPv4Stack Date: Tue, 09 Jan 2024 04:58:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hugo@slabnet.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276213 Bug ID: 276213 Summary: net-mgt/unifi7: explicitly disable preferIPv4Stack Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: hugo@slabnet.com I'm running unifi7 on an opnsense 23.7.11 box, based on FreeBSD 13.2 with unifi7 version 7.5.187_1. The system is fully dual stack, but out of the box the java processes for t= he unifi7 application (web UI and such) appear to bind only to IPv4. I've confirmed that explicitly toggling java.net.preferIPv4Stack in /usr/local/etc/rc.d/unifi to 'false' permits the application to bind to bot= h v4 and v6 (tcp46 bind). The java docs at https://docs.oracle.com/javase%2F7%2Fdocs%2Fapi%2F%2F/java/net/doc-files/ne= t-properties.html indicate that this setting *should* be 'false' by default, but in an out-of-the-box setup it definitely was only listening on v4 for me. I don't have another system to validate this on at the moment, but if it *i= s* binding on v4 by default, could we toss an explicit '-Djava.net.preferIPv4Stack=3Dfalse' in the rc script to permit a dual AF b= ind by default? e.g.: $ diff -u unifi unifi_afbind --- unifi 2024-01-07 18:27:14 +++ unifi_afbind 2024-01-07 18:27:07 @@ -46,6 +46,7 @@ : ${unifi_chdir=3D/usr/local/share/java/unifi} : ${unifi_java_home=3D/usr/local/openjdk17} : ${unifi_javaflags=3D"-Djava.awt.headless=3Dtrue -Xmx1024M \ + -Djava.net.preferIPv4Stack=3Dfalse \ --add-opens java.base/java.lang=3DALL-UNNAMED \ --add-opens java.base/java.time=3DALL-UNNAMED \ --add-opens java.base/sun.security.util=3DALL-UNNAMED \ --=20 You are receiving this mail because: You are the assignee for the bug.=