freebsd-nq/share
Bruce M Simpson 1cfd4b5326 Initial import of RFC 2385 (TCP-MD5) digest support.
This is the first of two commits; bringing in the kernel support first.
This can be enabled by compiling a kernel with options TCP_SIGNATURE
and FAST_IPSEC.

For the uninitiated, this is a TCP option which provides for a means of
authenticating TCP sessions which came into being before IPSEC. It is
still relevant today, however, as it is used by many commercial router
vendors, particularly with BGP, and as such has become a requirement for
interconnect at many major Internet points of presence.

Several parts of the TCP and IP headers, including the segment payload,
are digested with MD5, including a shared secret. The PF_KEY interface
is used to manage the secrets using security associations in the SADB.

There is a limitation here in that as there is no way to map a TCP flow
per-port back to an SPI without polluting tcpcb or using the SPD; the
code to do the latter is unstable at this time. Therefore this code only
supports per-host keying granularity.

Whilst FAST_IPSEC is mutually exclusive with KAME IPSEC (and thus IPv6),
TCP_SIGNATURE applies only to IPv4. For the vast majority of prospective
users of this feature, this will not pose any problem.

This implementation is output-only; that is, the option is honoured when
responding to a host initiating a TCP session, but no effort is made
[yet] to authenticate inbound traffic. This is, however, sufficient to
interwork with Cisco equipment.

Tested with a Cisco 2501 running IOS 12.0(27), and Quagga 0.96.4 with
local patches. Patches for tcpdump to validate TCP-MD5 sessions are also
available from me upon request.

Sponsored by:	sentex.net
2004-02-11 04:26:04 +00:00
..
colldef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
dict Add amnia, amniotic, and amniocentesis. 2003-05-05 05:51:16 +00:00
doc Normalize. 2004-01-20 13:09:29 +00:00
examples Added missing DPADD. 2004-02-05 22:01:28 +00:00
info Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
isdn
man Initial import of RFC 2385 (TCP-MD5) digest support. 2004-02-11 04:26:04 +00:00
me Fix typos (s/seperat/separat/ et al); add FreeBSD ID. 2002-08-12 10:04:32 +00:00
misc Added FreeBSD 5.2-RELEASE. 2004-01-13 08:35:00 +00:00
mk Two changes to aid in cleaning up sys/boot/ makefiles: 2004-02-09 14:05:17 +00:00
mklocale Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
monetdef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
msgdef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
numericdef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
security Makefile.inc wasn't needed; this is a left-over of other files present 2003-11-08 17:56:53 +00:00
sendmail Remove MAINTAINER= lines from individual Makefiles in favor of the 2003-07-07 03:54:04 +00:00
skel Use the standard <bsd.files.mk> API to install files. 2004-01-19 13:40:51 +00:00
syscons Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
tabset
termcap Update Eterm entry to Eterm 0.9.2 2004-01-25 19:04:50 +00:00
timedef Add kk_KZ.PT154 2004-01-29 16:28:22 +00:00
zoneinfo MFV: tzdata2003d 2003-10-14 21:03:22 +00:00
Makefile Normalize. 2004-01-20 13:09:29 +00:00
Makefile.inc