From nobody Tue Dec 28 10:29:04 2021 X-Original-To: freebsd-pf@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 ADE2E190AD29 for ; Tue, 28 Dec 2021 10:29:15 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JNW3v4H6lz3Nnf for ; Tue, 28 Dec 2021 10:29:15 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: by mail-ua1-x92f.google.com with SMTP id p37so31054338uae.8 for ; Tue, 28 Dec 2021 02:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ry6a+zAoWkxxBB8j2v+HYb77G0wZTAKXtN1HfywJ2QE=; b=MVdz1VXA0PhKVnCjaf+vI6f63sPrXcjc/S7pcwtKTqUw20Ux60bLRwLdO9vn9ASUJy FfFRJAyHUy2OpZF9Gx2RnTUoq/wX0Z5Dil4A7H6c0WiGTrRIA3R6ncXWPtFRqC2t5uMR 0nGjOglxCdqbO4GaaxdP17YnEEg1MWWgZ3LIrsq7LLyH2p4iFPoyOYu9yWWsISzIsgA2 YRgd00ZthP9BodDYZfp59hz1LrRTe5csmqaYEKrlnio4kBqkGPYKTxeXfeuxpWeniy9x d5CrdZH6u4LC2CeMvlg7esMU4VdiR57l4vJ8iuAdxQMh8jkm/omZVZTRY6/uXy6hARpu jMnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ry6a+zAoWkxxBB8j2v+HYb77G0wZTAKXtN1HfywJ2QE=; b=R5kdzrwnNMCAkLas8qsOPdZfdqkTrQFo/d56TkfeQPPydDUe1yW2wOkci+Rk8tE1DC MUwW0CFIpw+mWIKRzjoARMk5ZaezEzlhmwFaovovVzjQ1NrayHteAiwI8J708DStIIuY ZXB3X3imBam1fSgJce/gaAbCrIp9Jrg4UZwSglG/IczeqPW27afrNZG6MhPUHoF1+zfr 0XiQlRoSMla0c/UZgJgINckrCmY8lOueQVgUgpo/kkrZl2zUn8l4aaYfjQFOngU+10Bt 7Lr4X5OPWds7mRuiS/mldSJlz7xLpv6jyekVb57D18QN5qieqiDVfR3/dc5bj04sWLOH zrFQ== X-Gm-Message-State: AOAM533ooAFXPdThTp+Vllykkr9a+IpeAwcyRbSyauyD61p0bqPOraWE IyFEhDRn6qxN6xHTy4RROp/hzCMgx5t2EuJgQRkGwBzb2+Oe7w== X-Google-Smtp-Source: ABdhPJwAz1VWukV5eGH7hDJ6CVNgoMW6PRbqkQdH/ZgqCUb4wOaqhc+Bs3DQah9ZpPmGqd7LOFlOyTesKO6fVNEs4Sk= X-Received: by 2002:a05:6102:3e8d:: with SMTP id m13mr5306056vsv.6.1640687355085; Tue, 28 Dec 2021 02:29:15 -0800 (PST) List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org MIME-Version: 1.0 References: <5AB60713-21D3-4EFA-B054-2335DAB8FCC7@lastsummer.de> In-Reply-To: <5AB60713-21D3-4EFA-B054-2335DAB8FCC7@lastsummer.de> From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= Date: Tue, 28 Dec 2021 13:29:04 +0300 Message-ID: Subject: Re: Logging NAT translations and correlating nat & rule logs To: Franco Fichtner Cc: freebsd-pf@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4JNW3v4H6lz3Nnf X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Yes I confirmed that, there is no "rdr pass" rule within the ruleset. # pfctl -P -sn -a "nat-portForwarding" rdr log (to pflog3) on em0 inet proto tcp from to 172.16.33.10 port =3D 22 tag FWD_1 -> 192.168.33.1 port 22 # tcpdump -tttt -leqni pflog3 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on pflog3, link-type PFLOG (OpenBSD pflog file), capture size 262144 bytes 2021-12-28 13:28:02.362191 rule 0/0(match): rdr in on em0: 172.16.33.1.41368 > 172.16.33.10.22: tcp 0 thanks On Tue, Dec 28, 2021 at 1:18 PM Franco Fichtner wrot= e: > > > > On 28. Dec 2021, at 7:57 AM, =C3=96zkan KIRIK w= rote: > > > > And also, rule number and subrulenr information is missing. > > Have you tried to confirm that this wasn't already the case for > "rdr pass" combinations before? > > > Cheers, > Franco >