From owner-svn-src-projects@freebsd.org Sun Jan 1 20:56:05 2017 Return-Path: Delivered-To: svn-src-projects@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 28E22C9B31F for ; Sun, 1 Jan 2017 20:56:05 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (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 D275E12FE; Sun, 1 Jan 2017 20:56:04 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v01Ku4U2092378; Sun, 1 Jan 2017 20:56:04 GMT (envelope-from ae@FreeBSD.org) Received: (from ae@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v01Ku4pJ092377; Sun, 1 Jan 2017 20:56:04 GMT (envelope-from ae@FreeBSD.org) Message-Id: <201701012056.v01Ku4pJ092377@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ae set sender to ae@FreeBSD.org using -f From: "Andrey V. Elsukov" Date: Sun, 1 Jan 2017 20:56:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r311036 - projects/ipsec/share/man/man4 X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2017 20:56:05 -0000 Author: ae Date: Sun Jan 1 20:56:03 2017 New Revision: 311036 URL: https://svnweb.freebsd.org/changeset/base/311036 Log: Update tcp.4 to reflect changes in TCP_SIGNATURE implementation. Modified: projects/ipsec/share/man/man4/tcp.4 Modified: projects/ipsec/share/man/man4/tcp.4 ============================================================================== --- projects/ipsec/share/man/man4/tcp.4 Sun Jan 1 20:19:06 2017 (r311035) +++ projects/ipsec/share/man/man4/tcp.4 Sun Jan 1 20:56:03 2017 (r311036) @@ -34,7 +34,7 @@ .\" From: @(#)tcp.4 8.1 (Berkeley) 6/5/93 .\" $FreeBSD$ .\" -.Dd October 21, 2016 +.Dd January 1, 2017 .Dt TCP 4 .Os .Sh NAME @@ -272,33 +272,29 @@ or the internal send buffer is filled. This option enables the use of MD5 digests (also known as TCP-MD5) on writes to the specified socket. Outgoing traffic is digested; -digests on incoming traffic are verified if the -.Va net.inet.tcp.signature_verify_input -sysctl is nonzero. -The current default behavior for the system is to respond to a system -advertising this option with TCP-MD5; this may change. +digests on incoming traffic are verified. +When socket has enabled this option, all outgoing TCP segments +must be signed with MD5 digests, and all inbound TCP segments +also must be signed. .Pp One common use for this in a .Fx router deployment is to enable based routers to interwork with Cisco equipment at peering points. Support for this feature conforms to RFC 2385. -Only IPv4 -.Pq Dv AF_INET -sessions are supported. .Pp In order for this option to function correctly, it is necessary for the administrator to add a tcp-md5 key entry to the system's security associations database (SADB) using the .Xr setkey 8 utility. -This entry must have an SPI of 0x1000 and can therefore only be specified -on a per-host basis at this time. +This entry can only be specified on a per-host basis at this time. .Pp -If an SADB entry cannot be found for the destination, the outgoing traffic -will have an invalid digest option prepended, and the following error message -will be visible on the system console: -.Em "tcp_signature_compute: SADB lookup failed for %d.%d.%d.%d" . +If an SADB entry cannot be found for the destination, +the system will not send any outgoing segments and will drop any +inbound segments. +.Pp +Each dropped segment will be taken into account in the TCP protocol statistics. .El .Pp The option level for the