From nobody Sun Mar 24 14:48:35 2024 X-Original-To: freebsd-hackers@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 4V2f870VpDz5Fr01 for ; Sun, 24 Mar 2024 14:48:39 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V2f865lYfz44YT for ; Sun, 24 Mar 2024 14:48:38 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTPS id oLdcrTX6QdrxEoP9KrOM69; Sun, 24 Mar 2024 14:48:38 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id oP9IrpzLEByQroP9JrzSzX; Sun, 24 Mar 2024 14:48:37 +0000 X-Authority-Analysis: v=2.4 cv=UOF+Hzfy c=1 sm=1 tr=0 ts=66003d45 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=IkcTkHD0fZMA:10 a=K6JAEmCyrfEA:10 a=puQWGBksFvoA:10 a=NEAV23lmAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=m_3L-afJOhMsJdpAJRIA:9 a=QEXdDO2ut3YA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from [127.0.0.1] (walden [192.168.0.252]) by spqr.komquats.com (Postfix) with ESMTPSA id 30CA65D8; Sun, 24 Mar 2024 07:48:36 -0700 (PDT) Date: Sun, 24 Mar 2024 07:48:35 -0700 From: Cy Schubert To: freebsd-hackers@freebsd.org, Tom Forbes Subject: =?US-ASCII?Q?Re=3A_Removing_or_changing_the_ping_in?= =?US-ASCII?Q?terval_restriction_for_non-root_users?= In-Reply-To: <954e1d80-d44f-4c3d-88a7-122dc0f25de4@app.fastmail.com> References: <954e1d80-d44f-4c3d-88a7-122dc0f25de4@app.fastmail.com> Message-ID: <2D5DD001-DD98-4A8E-9458-6754E6D977EE@cschubert.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CMAE-Envelope: MS4xfCHyZbXTJKA46/DLka7eGnuOYugzTqQi9F+ONPENBpzrZ1/18IUCZmOA+Dbo7lVboMZWWvPvZcX0lCUqtTUsOWto8yyV4s4ycRgfKvkZQaiI3nIPt2K8 mNfUU+RyFt2Nlo0zAaH36Kq7hrVhYS5XQ+nFZcaA/1R0fZoUt9e4HSy66cgbVyq+K1hkELitv4oS6NcGjGOpGJNELIxiGvUWHYO54UgQZgUTpUDLBDxdBJ+/ X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4V2f865lYfz44YT On March 24, 2024 5:57:01 AM PDT, Tom Forbes wrote: >Hello, >I maintain a small project called gping[1] that recently added support fo= r FreeBSD=2E One of the issues I ran into with running this on FreeBSD was = that the `ping` command seems to disallow intervals of less than 1 second i= f you are not running as root[2]=2E This check was last touched 23 years ag= o and I'm curious as to why this restriction exists? I assume it's from an = earlier time in the internets history, and perhaps is related to potential = misuse of the command to flood targets with packets via ping? > >If it is then I'd like to suggest that this limitation be removed or is r= educed to `0=2E1` seconds instead? Using `ping` for this kind of thing isn'= t a viable attack today, and the 1 second limitation seems like it would ge= t in the way of useful uses of the ping command=2E > >Also this is my first post to any *BSD mailing list, so please let me kno= w if this is not the right place to ask this question or propose this! > >Thanks, >Tom > >1=2E https://github=2Ecom/orf/gping >2=2E https://github=2Ecom/freebsd/freebsd-src/blame/8a56ef8d75b42ee722824= 7466c8c1712de6e3b6f/sbin/ping/ping6=2Ec#L441 Other UNIX-like systems have the same restriction=2E At $JOB we use Solari= s and various Linux systems=2E All maintain the same restriction=2E Other B= SDs are the same=2EI don't think FreeBSD should be an outlier=2E Maybe setgid bit or a capability to remove the restriction may be a bette= r solution=2E But to reduce the timeout to essentially remove it is IMO unw= ise=2E=20 --=20 Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD=2Eorg NTP: Web: https://nwtime=2Eorg e^(i*pi)+1=3D0 Pardon the typos=2E Small keyboard in use=2E