From nobody Fri Jun 07 17:53:49 2024 X-Original-To: freebsd-questions@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 4VwpjQ2HpSz5LxYD for ; Fri, 07 Jun 2024 17:54:02 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VwpjP3x3yz52jl for ; Fri, 7 Jun 2024 17:54:01 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-57a32b0211aso3273553a12.2 for ; Fri, 07 Jun 2024 10:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717782840; x=1718387640; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ya2/BNLtl1ZjWeL8/9V3ajqyRZBxhrlOQpAKJuEwmTo=; b=Qcs9fs2GtHLiG9S0L/TqL1kIDI0UglTOgxssQQkcela3G5d9bVyGti83xFDjR87C+7 MBBnZgyRNqTRsBw3SFLTdD0lR4J976tzHCW4aKZ2LFLnSk6Ea0wGtkBePL5sm3OmKQd8 Cfw9dAeVOYEYTI11EV3X+4J8O2hvSeefEqeT3mmTBfPzN1d2xa0fuFZgsGkM0mr5RTN2 FheEGtEDj4KGyYWmSVUpg7zjBFGHh5ZHAcs9A08ZDZkyFNnWW7h0J4yRxsgEWzD8QWcc K2hNr1S8397Xbi57zSGT3mA8Hw+n++p0SSgnwS6BlqX3UoV7OKJ3Tfp3s5Z3eraIdqTI Pyxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717782840; x=1718387640; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ya2/BNLtl1ZjWeL8/9V3ajqyRZBxhrlOQpAKJuEwmTo=; b=MpNgm8bINviUsfa1ndhmTGzaUtl1PalgGJ8gNGZ5iI5I64YDKGfvh/3WpkIBeZZHFd IElnmjwKeoxAfoOFVcqGsnt6bxTOH2VmMcDD+KdIMuDUyE8X3kba65dtsYDTg8cMJ3fL IkM+TawokrhruZvAQV4loRekN1HlW+/MzBn2eNN8XdwQHxe+Brnny67f0ZecC3S4uhoc 2ed8liJz+qGBqyQvt6Y8kIT/kCR7zsWemTj58ms3FvYbEOjHObTdoUMG6VL75VN/Y7F7 h3NUfMjwM9RxcD9wId6fzfugN36AKTBxckRL3xii8jcJ6hQWmEQIEiZduD99RorMmlUs +dKg== X-Gm-Message-State: AOJu0YxQDkaqJ6Og2YcGk3w57/8CQC72neXBIC61FiN2H7MNSJgNdj0K G/iB7TvMCWzww/ub8vI6m6kLqxaOGfdneGs9cimqlY/+xv5Fmh7Bw+/u9qqfelgCEwPI1oFvv6M tGh0PJO5GtsQtbWHePUy1ZfIxBQ== X-Google-Smtp-Source: AGHT+IE9ZDtnXSzBKKm20L+uSFCTvXomvvZErlAt1r427yFWnps7zLViii9wFbu/7oDGsz70rbLMqs10CN9HRrFHeg8= X-Received: by 2002:a05:6402:7d3:b0:57a:27f5:1273 with SMTP id 4fb4d7f45d1cf-57c5098011cmr2015992a12.37.1717782839410; Fri, 07 Jun 2024 10:53:59 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <2207a201-691f-43c5-b76a-565af11ab9f8@cloudzeeland.nl> In-Reply-To: <2207a201-691f-43c5-b76a-565af11ab9f8@cloudzeeland.nl> From: Paul Procacci Date: Fri, 7 Jun 2024 13:53:49 -0400 Message-ID: Subject: Re: IPFW blocking ip ranges To: Jos Chrispijn Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000f1cd3c061a507b94" 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:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4VwpjP3x3yz52jl --000000000000f1cd3c061a507b94 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jun 7, 2024 at 1:41=E2=80=AFPM Jos Chrispijn = wrote: > Can you tell me how to block in ipfw a certain ip range in one line, like > 1.184.192.0 - 1.184.255.255 > Thanks. > ipfw add deny all from 1.184.0.0/18 to any Replace accordingly. ~Paul --=20 __________________ :(){ :|:& };: --000000000000f1cd3c061a507b94 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Jun 7, 2024 at 1:41= =E2=80=AFPM Jos Chrispijn <josc@= cloudzeeland.nl> wrote:
=20 =20 =20
Can you tell me how to block in ipfw = a certain ip range in one line, like 1.184.192.0 - 1.184.255.255
Thanks.

ipfw add <rulenum> deny all from 1.184.0.0/18 to any

Replace = <rulenum> accordingly.


~Paul

--
__________________

:(){ :|:& = };:
--000000000000f1cd3c061a507b94--