From owner-freebsd-bugs@freebsd.org Wed Jul 6 22:11:29 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0E13B75CAC for ; Wed, 6 Jul 2016 22:11:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 C765F14A3 for ; Wed, 6 Jul 2016 22:11:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u66MBTEZ087476 for ; Wed, 6 Jul 2016 22:11:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210860] [pf] [ip6] Incorrect TCP checksums after rdr Date: Wed, 06 Jul 2016 22:11:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vieira+fbsd@yubo.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2016 22:11:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210860 --- Comment #2 from Joao Vieira --- Hello Kristof, Thanks for replying. As you suggested, I tried with the following rules (replacing ::1 with GUA): table {2001:16d8:ee03::cafe:d00d/128,!::1} rdr pass log on lo0 inet6 proto tcp to -> 2a03:b0c0:1:d0::42e:f001 port 12300 pass out log route-to lo0 inet6 proto tcp to keep state but the problem persists. I tried ifconfig lo0 -lro -tso and ifconfig vtnet0 -lro -tso and after that I saw less checksum errors but still saw one on pflog0. Nothing got to the application (nc -l 2a03:b0c0:1:d0::42e:f001 1230= 0). # tcpdump -n -e -ttt -i pflog0 -vvv 00:00:00.000000 rule 0..16777216/0(match): pass out on vtnet0: (flowlabel 0xc4cbb, hlim 64, next-header TCP (6) payload length: 40) 2a03:b0c0:1:d0::42e:f001.39668 > 2001:16d8:ee03::cafe:d00d.80: Flags [S], c= ksum 0x8fdc (incorrect -> 0x78fc), seq 2180195351, win 65535, options [mss 1440,nop,wscale 6,sackOK,TS val 10681721 ecr 0], length 0 00:00:00.000093 rule 0..16777216/0(match): rdr in on lo0: (flowlabel 0xc4cb= b, hlim 64, next-header TCP (6) payload length: 40) 2a03:b0c0:1:d0::42e:f001.3= 9668 > 2a03:b0c0:1:d0::42e:f001.12300: Flags [S], cksum 0x3965 (correct), seq 2180195351, win 65535, options [mss 1440,nop,wscale 6,sackOK,TS val 10681721 ecr 0], length 0 # tcpdump -n -e -ttt -i lo0 -vvv 00:00:00.000000 AF IPv6 (28), length 84: (flowlabel 0xd1846, hlim 64, next-header TCP (6) payload length: 40) 2a03:b0c0:1:d0::42e:f001.59007 > 2001:16d8:ee03::cafe:d00d.80: Flags [S], cksum 0x18ea (correct), seq 927681= 064, win 65535, options [mss 1440,nop,wscale 6,sackOK,TS val 10630808 ecr 0], le= ngth 0 00:00:00.000125 AF IPv6 (28), length 84: (class 0x01, flowlabel 0x3450f, hl= im 64, next-header TCP (6) payload length: 40) 2001:16d8:ee03::cafe:d00d.80 > 2a03:b0c0:1:d0::42e:f001.59007: Flags [S.], cksum 0xb883 (correct), seq 3088270607, ack 927681065, win 65535, options [mss 1440,nop,wscale 6,sackOK= ,TS val 3250889069 ecr 10630808], length 0 00:00:03.022264 AF IPv6 (28), length 84: (class 0x0b, flowlabel 0x3450f, hl= im 64, next-header TCP (6) payload length: 40) 2001:16d8:ee03::cafe:d00d.80 > 2a03:b0c0:1:d0::42e:f001.59007: Flags [S.], cksum 0xb883 (correct), seq 3088270607, ack 927681065, win 65535, options [mss 1440,nop,wscale 6,sackOK= ,TS val 3250889069 ecr 10630808], length 0 00:00:00.000108 AF IPv6 (28), length 64: (hlim 64, next-header TCP (6) payl= oad length: 20) 2a03:b0c0:1:d0::42e:f001.59007 > 2001:16d8:ee03::cafe:d00d.80: Flags [R], cksum 0xb7ee (correct), seq 927681065, win 0, length 0 --=20 You are receiving this mail because: You are the assignee for the bug.=