From owner-freebsd-net@freebsd.org Sat Sep 1 13:04:09 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BFE6FEEE29 for ; Sat, 1 Sep 2018 13:04:09 +0000 (UTC) (envelope-from mg@fork.pl) Received: from mail.fuze.pl (mail.fuze.pl [91.224.39.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 29DF08AB10 for ; Sat, 1 Sep 2018 13:04:08 +0000 (UTC) (envelope-from mg@fork.pl) Received: from hq.fork.pl ([77.237.10.145] helo=localhost) by mail.fuze.pl with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1fw5ZH-0007XB-8J for freebsd-net@freebsd.org; Sat, 01 Sep 2018 15:03:59 +0200 From: Marcin Gryszkalis To: Subject: em, pf - losing tcp traffic Date: Sat, 01 Sep 2018 15:03:53 +0200 MIME-Version: 1.0 Message-ID: User-Agent: Trojita/0.7; Qt/5.11.1; xcb; Linux; Gentoo Base System release 2.6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Authenticated-User: mg@fork.pl X-Authenticator: dovecot_plain X-Invalid-HELO: HELO is no FQDN (contains no dot) (See RFC2821 4.1.1.1) X-Exim-Version: 4.91 (build at 16-May-2018 10:10:21) X-Date: 2018-09-01 15:03:59 X-Connected-IP: 77.237.10.145:48720 X-Message-Linecount: 51 X-Body-Linecount: 41 X-Message-Size: 1726 X-Body-Size: 1328 X-Received-Count: 1 X-Recipient-Count: 1 X-Local-Recipient-Count: 1 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Sep 2018 13:04:09 -0000 Hi I have pretty old gateway that started to behave strange. Few times a day the lan interface stops receiving tcp and icmp traffic. With tcpdump I can see arp, dns (udp), rtp over udp, netbios=20 broadcasts (169.254/16), sip packets - but no tcp and also icmp ping=20 replies=20 stop coming. The only way to fix it is ifconfig down + ifconfig up. The system is 11.2(amd64). Card: em3@pci0:7:0:0: class=3D0x020000 card=3D0x002e8086 chip=3D0x100e8086 rev=3D0x= 02=20 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82540EM Gigabit Ethernet Controller' lan0: flags=3D8947=20 metric 0 mtu 1500 =20 options=3D209b ether 00:07:e9:11:24:61 hwaddr 00:07:e9:11:24:61 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255=20 nd6 options=3D29 media: Ethernet autoselect (100baseTX ) status: active pf limits are not reached, pf reload or restart doesn't help. The switch is dummy L2 so it shouldn't be able to recognize udp from tcp.=20 I don't know what else could I check or try...=20 Please advise :) best regards --=20 Marcin Gryszkalis, PGP 0xA5DBEEC7 http://fork.pl/gpg.txt