From nobody Sat Sep 16 17:50:18 2023 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 4Rnz9R00Llz4spWV for ; Sat, 16 Sep 2023 17:50:19 +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 4Rnz9Q50Jcz3SYZ for ; Sat, 16 Sep 2023 17:50:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694886618; a=rsa-sha256; cv=none; b=BEJKM2bpXT9AdCAryS0zHpjtPPZ6v4FEzBnIN2Ke/RgdXgNv2NXRY4sjzrP5DTc5pSz7nA 976+KsKNwE3h5GXH51VMbYOiabuWci8uhkkteH8KHku1UEkr2huMzMrDzh5TjjwFn5cG0E TdW7XRlC/t4MzJ7RBjYdhOCdLnSugWsjscLf3g81i0wQ2pnlgh2uA8QQYbWXrY7iWLY0hI YS0c39rnsOT6X4zU4MiNVd/+9NIPORia4xUeksxhzO/5zjEmGu1VFTLV/FDroYfKiA9qrM /xVUyKmGTM/mef+6AOXiG32kvn9rjlz4hH/WBdjckz1jcjuAeRwiYltZsEsUsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694886618; 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=xb6QSWYEGvmKQbD2OOb2oW21H+zNpY0BUjthhG3fZ0w=; b=nDyG2u1uODpzfCKMxVie8DyCYSsleL7eYzlHEdiopVefBHDupvYHrXEpAc1vA1bvfPhXEj zxHNaQQ7KHtVjzdgE3hWmp4u1ujhkT4ojUXuKd+HZ1aXs/4XjmiLu2GA/HUJCf1oKEJREi 7PJgZvUsU8sD0x6yzpBa874huGWiCTN2KA3lX8avt0GKJMjz6GuOF/XNQipFujnODGbd4A 1iPyxSM7eojbkMLhIjW/RDkYmbZuMRWh57Lg9ICrD+et+7LckIFbQjqai89ZtogER6yhmE 9zNpKM95S6koQOK3l8OPR5Q8hEGPPE2BAnuRAdJ/8+hU1eUicZYYSRDITZnIvA== 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 4Rnz9Q43v7z1fy for ; Sat, 16 Sep 2023 17:50:18 +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 38GHoIAM069385 for ; Sat, 16 Sep 2023 17:50:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38GHoIEW069384 for ports-bugs@FreeBSD.org; Sat, 16 Sep 2023 17:50:18 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 273860] security/knock does not open port anymore on freebsd 13.2 Date: Sat, 16 Sep 2023 17:50:18 +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 Some People X-Bugzilla-Who: zero1@zaclys.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sbz@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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=3D273860 Bug ID: 273860 Summary: security/knock does not open port anymore on freebsd 13.2 Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: sbz@FreeBSD.org Reporter: zero1@zaclys.net Flags: maintainer-feedback?(sbz@FreeBSD.org) Assignee: sbz@FreeBSD.org Hi, knock doesn't work on 13.2, it's like it isn't triggered or doesn't receiv= ed the signal, yet tcpdump shows the packets received from the client sent via security/knock. The firewall doesn't seem involved because I tried with pf or ipfw but in v= ain the result is the same.=20 Meanwhile on Freebsd 12.4 security/knock works just fine, so the problem is coming from 13.2. Just in case, I put the link of the forum's thread that talks about it. https://forums.freebsd.org/threads/the-knock-of-amd64-freebsd-cannot-listen= -for-information.90272/ Freebsd 12.4 as client root@fbsd12 ~ : freebsd-version ; uname -asm 12.4-RELEASE-p5 FreeBSD fbsd12 12.4-RELEASE-p5 FreeBSD 12.4-RELEASE-p5 GENERIC amd64 root@fbsd12 ~ : ifconfig vtnet0 | grep inet inet 192.168.2.172 netmask 0xffffff00 broadcast 192.168.2.255 root@fbsd12 ~ : knock -v 192.168.2.173 7000:tcp 8000:tcp 9000:tcp hitting tcp 192.168.2.173:7000 hitting tcp 192.168.2.173:8000 hitting tcp 192.168.2.173:9000 root@fbsd12 ~ : nmap -p 22 192.168.2.173 | grep ssh 22/tcp filtered ssh Freebsd 13.2 as serveur root@fbsd13 ~ : freebsd-version ; uname -asm 13.2-RELEASE-p3 FreeBSD fbsd13 13.2-RELEASE-p3 FreeBSD 13.2-RELEASE-p3 GENERIC amd64 root@fbsd13 ~ : ifconfig vtnet0 | grep inet inet 192.168.2.173 netmask 0xffffff00 broadcast 192.168.2.255 root@fbsd13 ~ : cat /var/log/knockd.log [2023-09-16 18:42:56] starting up, listening on vtnet0 root@fbsd13 ~ : tcpdump -n -t -i vtnet0 tcp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on vtnet0, link-type EN10MB (Ethernet), capture size 262144 bytes IP 192.168.2.172.64594 > 192.168.2.173.7000: Flags [S], seq 3144177609, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3683868432 ecr 0], leng= th 0 IP 192.168.2.172.26006 > 192.168.2.173.8000: Flags [S], seq 2244267204, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 1283481177 ecr 0], leng= th 0 IP 192.168.2.172.57766 > 192.168.2.173.9000: Flags [S], seq 233451712, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 2416705257 ecr 0], leng= th 0 ^C 3 packets captured 10 packets received by filter 0 packets dropped by kernel Looking at the /var/log/knockd.log there is nothing expect when the service= is stopped or started and the port 22 remains closed. Now if I invert the role meaning using freebsd 12.4 as server and freebsd 1= 3.2 as client everything works. Note that I've used the same exact knockd config file in both case. root@fbsd13 ~ : knock -v 192.168.2.172 7000:tcp 8000:tcp 9000:tcp hitting tcp 192.168.2.172:7000 hitting tcp 192.168.2.172:8000 hitting tcp 192.168.2.172:9000 root@fbsd13 ~ : nmap -p 22 192.168.2.172 | grep ssh 22/tcp open ssh root@fbsd12 ~ : tail -f /var/log/knockd.log [2023-09-16 19:32:59] 192.168.2.173: openSSH: Stage 1 [2023-09-16 19:32:59] 192.168.2.173: openSSH: Stage 2 [2023-09-16 19:32:59] 192.168.2.173: openSSH: Stage 3 [2023-09-16 19:32:59] 192.168.2.173: openSSH: OPEN SESAME [2023-09-16 19:32:59] openSSH: running command: /sbin/ipfw -q add 95 allow proto tcp src-ip 192.168.2.173 dst-port 22 I hope I gave you enough information.=20=20 Thank you in advance. --=20 You are receiving this mail because: You are the assignee for the bug.=