From nobody Sun Jul 13 23:07:09 2025 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 4bgLgp1hR6z61cFJ for ; Sun, 13 Jul 2025 23:07:18 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from smtp3.cretaforce.gr (smtp3.cretaforce.gr [5.75.209.92]) (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 (2048 bits) client-digest SHA256) (Client CN "*.cretaforce.gr", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bgLgn4WN4z3d1p for ; Sun, 13 Jul 2025 23:07:12 +0000 (UTC) (envelope-from chris@cretaforce.gr) Authentication-Results: mx1.freebsd.org; none Received: from server1.cretaforce.gr (server1.cretaforce.gr [94.130.217.104]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) client-signature RSA-PSS (2048 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by smtp.cretaforce.gr (Postfix) with ESMTPS id C876320620 for ; Mon, 14 Jul 2025 02:07:13 +0300 (EEST) Received: from smtpclient.apple (unknown [149.210.77.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: chris@cretaforce.gr) by server1.cretaforce.gr (Postfix) with ESMTPSA id 0D231106EB; Mon, 14 Jul 2025 02:07:09 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cretaforce.gr; s=cretaforce; t=1752448026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yXzMASRvnXUEkueevhTgBrS0cfd1m3J54mTvsr9HIgc=; b=NbZsMhE+/Ghd4X7x2PCiljsg+xJGSTy1n7dst2kpnPtjm8gdHN25tJ72AkZLVn8CCLe4BH NFJ2FIYU6O69HL335bijfEiDdwV8mQ6VzwqFyPx/fIeUZrrm2RcpiTpP0eGi/KZWgEoYpR p8zWwfXePq0ofa/tueHSWXoIBH93bUY= From: Christos Chatzaras Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_7DEEF7F4-E742-4108-8382-45BCD2686BC1" 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 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: Issues with IPFW skipto Rule and Whitelisting Logic Date: Mon, 14 Jul 2025 02:07:09 +0300 In-Reply-To: <20250714001805.073389b5@nuclight.lan> Cc: freebsd-net , FreeBSD Questions Mailing List To: Vadim Goncharov References: <3A01EF48-EBE8-48C3-9C66-6A250A240341@cretaforce.gr> <20250714001805.073389b5@nuclight.lan> X-Mailer: Apple Mail (2.3826.600.51.1.1) X-Rspamd-Queue-Id: 4bgLgn4WN4z3d1p 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:24940, ipnet:5.75.128.0/17, country:DE] --Apple-Mail=_7DEEF7F4-E742-4108-8382-45BCD2686BC1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >=20 > Did you try to remove `-q` from all your scripts and see if there are = errors? > May be something in dmesg? Adding another log rules for your test IP? = tcpdump? >=20 > --=20 > WBR, @nuclight ipfw -q add 00032 count log logamount 0 ip from 175.178.0.0/16 to any After that, I checked /var/log/security while trying to connect from = 175.178.167.241 (I can only use a web interface they provide me to test = the connection). During these tests, I saw DNS requests coming from = 175.178.254.144 and 175.178.136.250 to port 53, which I assume are their = DNS resolvers. Once I added those two IPs to table(3), I could no longer = reproduce the issue. I will test again tomorrow, but I=E2=80=99m now = quite sure the real problem was DNS resolution failing because those = resolver IPs were blocked.= --Apple-Mail=_7DEEF7F4-E742-4108-8382-45BCD2686BC1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Did you try = to remove `-q` from all your scripts and see if there are errors?
May = be something in dmesg? Adding another log rules for your test IP? = tcpdump?

--
WBR, = @nuclight

ipfw -q add 00032 count log = logamount 0 ip from 175.178.0.0/16 to any

After that, = I checked /var/log/security while = trying to connect from 175.178.167.241 (I can only use a web interface = they provide me to test the connection). During these tests, I saw DNS = requests coming from 175.178.254.144 and 175.178.136.250 to port 53, = which I assume are their DNS resolvers. Once I added those two IPs to = table(3), I could no longer reproduce the issue. I will test again = tomorrow, but I=E2=80=99m now quite sure the real problem was DNS = resolution failing because those resolver IPs were = blocked.

= --Apple-Mail=_7DEEF7F4-E742-4108-8382-45BCD2686BC1--