From nobody Wed Dec 22 14:12:10 2021 X-Original-To: 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 3782918F4A04 for ; Wed, 22 Dec 2021 14:12:10 +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 4JJwHs6nWLz4fWg for ; Wed, 22 Dec 2021 14:12:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 C9C611E93D for ; Wed, 22 Dec 2021 14:12:09 +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 1BMEC97G095476 for ; Wed, 22 Dec 2021 14:12:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BMEC9bK095475 for bugs@FreeBSD.org; Wed, 22 Dec 2021 14:12:09 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: bugs@FreeBSD.org Subject: [Bug 260609] rc.firewall options nologports but no logports ? Date: Wed, 22 Dec 2021 14:12:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: belot.nicolas@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640182330; 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=eZQq8Lul3d44vGSPXfnvdKIDmjMPctwgKaOBu/moqGs=; b=PjmQxqDg60GhJyMh15XejMOEjyNtxEmRvgbf/XGylH/jmtMmOWDiVrgK9KAG2hhnPVSHFq Zs2rdZD0bcLeI9kcVNjupzUwbNNf7h4D3CRF2T2is6Qm8/+sSvMPnTA38ZL1wxeIRMQw01 jNLszPrsVXAftp0RcYLAhIE69rJhhXztWg7gxWULCnAs9TlobE/8Dd6z/bOGy19nOHkMMy FbJpMv6pzgwxGw28Y0yyJEy+L0xeHhVLjmIX+RW8KHnx7zn6oZMNVqto7lTYiwglSjEGw1 fVMTJ3bwoIFXhxcUu4UzNfzii0SKPrFn55WvM0+WTDLnc3q4rBFpVrbapG/oEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640182330; a=rsa-sha256; cv=none; b=mqiCDEhqZzo8GQ4HmVFVMBws+ZN+zxbYKhPKoeYyK3ZUl9Sp2gDfnio4BKQks8Bw32UzBy gdkOJQpQsQ21Bj+2YFHbmXvU/YHw3xoF7+qbZcbl/in3OCHqTWBVe0lp7EyuHsmqLN6j39 yPTS477dZHMWCWErVa4zxLx+gJPxk7NNfMDYRFoSJvdhYfS21Wqhy9Ux0cFRPD6Nt7MmMB zV/cxFGFgD885t12xsIwT2j6Xcnd1a7G1Nqwf3LBf5dm0WwSDJK2bczqM0Kzj40/ksiI5D 6BGM85d/EHz2V6FuXeLyLuYujI3WyF0B9tLPRtsr1cowRNwllzLJ0Lt9BnZdfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260609 Bug ID: 260609 Summary: rc.firewall options nologports but no logports ? Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: belot.nicolas@gmail.com Hello, When configuring firewall with type workstation, we can log nothing, all but max 500 logs or all except some tcp/udp ports. It's not possible to log some specific port except using firewall script but that's a great loose in term= of configuration readabilty. Is there a way to implement a rc variable firewall_logports or firewall_forcelogports and for example create rules accordingly=20 if [ -n "${firewall_logports}" ] ; then sysctl net.inet.ip.fw.verbose=3D1 >/dev/null log=3D"log logamount 500" # The default of 100 is too low. for i in ${firewall_logports} ; do ${fwcmd} add deny $log ip from any to me $i in done fi ? Best regards Nicolas --=20 You are receiving this mail because: You are the assignee for the bug.=