From owner-freebsd-net@freebsd.org Sun Jan 8 03:51:28 2017 Return-Path: Delivered-To: freebsd-net@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 149C0CA54F5 for ; Sun, 8 Jan 2017 03:51:28 +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 D027012F1 for ; Sun, 8 Jan 2017 03:51:27 +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 v083pQ32011462 for ; Sun, 8 Jan 2017 03:51:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 213869] when setting an ipsec policy with spdadd src[port], outbound traffic from 2049/tcp is not encrypted Date: Sun, 08 Jan 2017 03:51:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jasonmader@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@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-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2017 03:51:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213869 --- Comment #9 from Jason Mader --- Comment on attachment 178602 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D178602 Proposed patch (untested) This worked for me. root@safety:/usr/src/sys/netipsec # patch < ~/ipsec.c.diff Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/netipsec/ipsec.c |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |--- sys/netipsec/ipsec.c (revision 311647) |+++ sys/netipsec/ipsec.c (working copy) -------------------------- Patching file ipsec.c using Plan A... Hunk #1 succeeded at 241. Hunk #2 succeeded at 344 (offset 1 line). Hunk #3 succeeded at 501 (offset 1 line). Hunk #4 succeeded at 511 (offset 1 line). done root@safety:~ # setkey -DP fe80::%em0/64[any] fe80::a00:27ff:fefc:de09%em0[2049] tcp in ipsec esp/transport//require spid=3D1 seq=3D1 pid=3D806 refcnt=3D1 fe80::a00:27ff:fefc:de09%em0[2049] fe80::%em0/64[any] tcp out ipsec esp/transport//require spid=3D2 seq=3D0 pid=3D806 refcnt=3D1 I was able to NFSv4 mount a filesystem, and tcpdump is showing me that everything is ESP. --=20 You are receiving this mail because: You are the assignee for the bug.=