Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2015 09:07:18 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Aristedes Maniatis <ari@ish.com.au>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: meaning of State-mismatch
Message-ID:  <8A242C55-A2D7-49C2-A0CC-AFB1E447C494@FreeBSD.org>
In-Reply-To: <54C74303.1070601@ish.com.au>
References:  <54C72F63.8040908@ish.com.au> <CD5F0D06-3738-4786-97C6-68C27D94A5B0@FreeBSD.org> <54C74303.1070601@ish.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_68BC1EE8-3796-4317-8254-5A246704A3F3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 27 Jan 2015, at 08:49, Aristedes Maniatis <ari@ish.com.au> wrote:
>=20
> On 27/01/2015 6:46pm, Dimitry Andric wrote:
>> On 27 Jan 2015, at 07:25, Aristedes Maniatis <ari@ish.com.au> wrote:
>>>=20
>>> I have been unable to find much documentation about the counter =
called "state-mismatch". I notice it going up on my firewall (FreeBSD =
10.1) but only at a slow rate (maybe at around 1 per minute).
>>>=20
>>> What is the significance of this value? Is it indicative of dropped =
states (and I should be increasing the state timeout)?
>>=20
>> It's not really documented in our pfctl(8) manpage, but the OpenBSD =
version does
>> mention it:
>>=20
>> state-mismatch
>>           packet was associated with a state entry, but sequence =
numbers did not
>>           match
>>=20
>> So maybe something is dropping packets, making holes in the sequence =
numbers?  Or
>> maybe somebody is trying something sneaky? :)
>>=20
>> -Dimitry
>=20
> Ah, thanks for that. Maybe you could add that doc to the FreeBSD man =
page. Could it simply be a packet loss issue where a packet is lost and =
the next packet arrives out of order?

Well, that is just a likely cause.  If you let tcpdump run for a while,
you might be able to spot it, in e.g. Wireshark?

-Dimitry


--Apple-Mail=_68BC1EE8-3796-4317-8254-5A246704A3F3
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.26

iEYEARECAAYFAlTHRzoACgkQsF6jCi4glqMxywCguwW1n5GGmyb9DlC7jA5zbzkV
HmoAoNfofcPWQByZv9fAU9DPhDdhUo4x
=mJ8o
-----END PGP SIGNATURE-----

--Apple-Mail=_68BC1EE8-3796-4317-8254-5A246704A3F3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8A242C55-A2D7-49C2-A0CC-AFB1E447C494>