freebsd-dev/sys
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
..
alpha Regen. 2004-02-04 22:00:44 +00:00
amd64 I forgot to add the NO_MODULES override for NOTES 2004-02-08 00:39:38 +00:00
arm Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
boot Since loader(8) on SPARC64 is a pure ELF executable (as opposed 2004-02-10 22:11:36 +00:00
cam Fix type in comment, 's/writtent/written/' 2004-01-18 00:17:14 +00:00
coda - Implement selwakeuppri() which allows raising the priority of a 2003-11-09 09:17:26 +00:00
compat Add some bulletproofing: don't allow the ndis_get_info() or ndis_set_info() 2004-02-10 23:01:53 +00:00
conf Initial import of RFC 2385 (TCP-MD5) digest support. 2004-02-11 04:26:04 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r124528, 2004-01-14 18:54:22 +00:00
crypto Fix a reentrancy issue in md5_calc(). 2004-01-27 18:57:21 +00:00
ddb If not in the debugger or if the user requests it with the 2004-01-28 06:51:18 +00:00
dev Prefer buttons defined in the AML over the ones in the FADT. Some 2004-02-11 02:57:33 +00:00
fs Fix a panic in pseudofs(9) that could occur when doing an I/O 2004-02-10 21:06:47 +00:00
geom Now we have g_topology_assert_not(), so use it to detect deadlocks. 2004-02-10 15:55:17 +00:00
gnu Locking for the per-process resource limits structure. 2004-02-04 21:52:57 +00:00
i4b Based on an excellent suggestion from tanimura@ define I4BPRI and use it 2003-11-10 14:20:34 +00:00
i386 Regen. 2004-02-06 20:21:18 +00:00
ia64 Sort PFIL_HOOKS. 2004-01-27 20:22:53 +00:00
isa Significantly reduce the "jitter" that is typical for PS/2 mice 2003-12-11 11:28:11 +00:00
isofs/cd9660 Spell magic '16' number as IO_SEQSHIFT. 2004-01-19 20:03:43 +00:00
kern Add the SF_NODISKIO flag to sendfile. This flag causes sendfile to be 2004-02-08 07:35:48 +00:00
libkern Translate from GNU C to ISO C. 2004-01-14 07:47:10 +00:00
modules Always build ext2fs module. There is no written policy preventing the 2004-01-28 04:16:13 +00:00
net Initial import of RFC 2385 (TCP-MD5) digest support. 2004-02-11 04:26:04 +00:00
net80211 Change WI_RID_SCAN_RES compatibility interface to return the result after 2004-01-19 05:25:43 +00:00
netatalk Eliminate a duplicate free when deleting an interface address. This 2003-11-28 04:19:41 +00:00
netatm Introduce a MAC label reference in 'struct inpcb', which caches 2003-11-18 00:39:07 +00:00
netgraph Use the official ng_timeout function to trigger sending. This means, 2004-01-30 15:34:57 +00:00
netinet Initial import of RFC 2385 (TCP-MD5) digest support. 2004-02-11 04:26:04 +00:00
netinet6 Initial import of RFC 2385 (TCP-MD5) digest support. 2004-02-11 04:26:04 +00:00
netipsec Initial import of RFC 2385 (TCP-MD5) digest support. 2004-02-11 04:26:04 +00:00
netipx Introduce a MAC label reference in 'struct inpcb', which caches 2003-11-18 00:39:07 +00:00
netkey avoid duplicate free. 2004-01-25 17:18:12 +00:00
netnatm Introduce a MAC label reference in 'struct inpcb', which caches 2003-11-18 00:39:07 +00:00
netncp The present defaults for the open and close for device drivers which 2003-09-27 12:01:01 +00:00
netsmb Add support for SMB request signing, which prevents "man in the middle" 2004-01-02 22:38:42 +00:00
nfs University of Michigan's Citi NFSv4 kernel client code. 2003-11-14 20:54:10 +00:00
nfs4client This patch fixes two little portability (to !GCC compilers) problems: 2003-12-11 11:30:26 +00:00
nfsclient Locking for the per-process resource limits structure. 2004-02-04 21:52:57 +00:00
nfsserver Fix some becuase -> because typos. 2003-12-17 16:12:01 +00:00
opencrypto Do not aggressively unroll the AES implementation, in non-benchmarking use 2004-02-04 08:44:10 +00:00
pc98 MFi386: revision 1.397 (cosmetic changes) 2004-01-30 13:15:42 +00:00
pccard - Implement selwakeuppri() which allows raising the priority of a 2003-11-09 09:17:26 +00:00
pci Fix multicast and promiscuous mode handling for Yukon devices. 2004-01-21 22:32:15 +00:00
posix4 The sem_timedwait() and ksem_timedwait() functions both 2004-02-03 22:27:03 +00:00
powerpc Correctly create interrupt key for PCI, which is the OpenFirmware 2004-02-10 23:57:35 +00:00
rpc Don't panic because of RPC proto mismatches. Whitespace cleanup. 2004-01-17 21:25:05 +00:00
security Commit file missed in last pass: MAC api uses 'struct pipepair', not 2004-02-01 21:52:09 +00:00
sparc64 - Fix for sparc64 to use new __panic() function 2004-01-27 15:02:18 +00:00
sys Change the kernels definition of NODEV from ((dev_t)-1) to NULL. 2004-02-10 15:23:47 +00:00
tools Attempt to clean up the emu10k1-alsa.h stuff so that config doesn't 2004-02-05 22:51:16 +00:00
ufs Locking for the per-process resource limits structure. 2004-02-04 21:52:57 +00:00
vm Correct a long-standing race condition in the inactive queue scan. (See 2004-02-10 18:34:27 +00:00
Makefile Replaced outdated comment. 2004-01-17 03:28:27 +00:00