From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 23 08:40:12 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A75811065676 for ; Mon, 23 Jul 2012 08:40:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5D3098FC0A for ; Mon, 23 Jul 2012 08:40:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6N8eCDw066821 for ; Mon, 23 Jul 2012 08:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6N8eCqU066820; Mon, 23 Jul 2012 08:40:12 GMT (envelope-from gnats) Resent-Date: Mon, 23 Jul 2012 08:40:12 GMT Resent-Message-Id: <201207230840.q6N8eCqU066820@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Herbert J. Skuhra" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10039106564A for ; Mon, 23 Jul 2012 08:33:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id EF85A8FC18 for ; Mon, 23 Jul 2012 08:33:34 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6N8XYg2030368 for ; Mon, 23 Jul 2012 08:33:34 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q6N8XYHK030367; Mon, 23 Jul 2012 08:33:34 GMT (envelope-from nobody) Message-Id: <201207230833.q6N8XYHK030367@red.freebsd.org> Date: Mon, 23 Jul 2012 08:33:34 GMT From: "Herbert J. Skuhra" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/170081: pf/nat/jails not working if checksum offloading is enabled on fxp0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2012 08:40:12 -0000 >Number: 170081 >Category: kern >Synopsis: pf/nat/jails not working if checksum offloading is enabled on fxp0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 23 08:40:11 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Herbert J. Skuhra >Release: FreeBSD 9.1-PRERELEASE amd64 >Organization: >Environment: FreeBSD oslo.ath.cx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r238601: Wed Jul 18 22:41:20 CEST 2012 herbert@oslo.ath.cx:/usr/obj/usr/src/sys/OSLO amd64 >Description: If checksum offloading is enabled on fxp0 pf/nat does not work properly. Therefore the network in my jails does not work. With tcpdump I see SYN packets going out and SYN+ACK packets coming in on fxp0, but connections time out (no ACKs). pflog doesn't show any blocked packets. I can reproduce this issue on different computers with fxp. With ipfw/natd it's working. pf/nat and different nic (e.g: em0) are OK too. After disabling checksum offloading (ifconfig fxp0 -rxcsum) pf is working. (Thanks to yongari@ for the hint). >How-To-Repeat: # ifconfig lo1 create # ifconfig lo1 10.0.0.10 netmask 0xffffff00 # pf -e -f /root/pf.conf [1] # nc -s 10.0.0.10 173.194.70.108 25 Connection fails. [1] My pf.conf: nat log on fxp0 inet from 10.0.0.0/8 to any -> fxp0 pass in all pass out all >Fix: >Release-Note: >Audit-Trail: >Unformatted: