TheBestLinks.com
TheBestLinks.com
IPSec, IPsec, Encryption, FreeBSD, GNU/Linux, IETF, Information security, IPv4... Print friendly version | Tell a friend
 
Navigation
Search
Toolbox

IPsec

From TheBestLinks.com

(Redirected from IPSec)

IPsec (an abbreviation of IP security) is a standard for securing Internet Protocol (IP) communications by encrypting and authenticating all IP packets.

IPsec is a protocol suite (ie, a set of interdependent protocols) consisting of (1) protocols for securing packet flows, and (2) key exchange protocols used for setting up those secure flows. Of the former there are two: Encapsulating Security Payload (ESP) for encrypting packet flows, and the rarely used Authentication Header (AH) which provides authentication and message integrity guarantees for such flows, but does not offer confidentiality. Currently only one key exchange protocol is defined, the IKE protocol.

Table of contents

Current status as a standard

IPsec is an obligatory part of IPv6, the new IETF Internet standard for Internet Protocol (IP) packet traffic, and is optional for use with IPv4. As a result, IPsec is expected to become more widely deployed as IPv6 becomes more popular. IPsec protocols are defined by RFCs 2401-2409. As of 2004, work is progressing to release updated replacement documents.

Design intent

IPsec was intended to provide either (1) portal-to-portal communications security in which security of packet traffic is provided to several machines (even to whole LANs) by a single node, or (2) end-to-end security of packet traffic in which the endpoint computers do the security processing. It can be used to construct Virtual Private Networks in either mode, and this is the dominant use. Note, however, that the security implications are quite different between the two operational modes.

End-to-end communication security on an Internet-wide scale has been slower to develop than many had expected. Part of the reason is that no universal, or universally trusted, public key infrastructure has emerged (DNSSEC was originally envisioned for this), part is that many users understand neither their needs nor the available options well enough to force inclusion in vendors' products (which would lead to widespread adoption), and part is probably due to degradation (or anticipated degradation) of Net responsivity due to bandwidth loss from such things as spam.

IPsec v other Internet security protocols

IPsec protocols operate at layer 3 of the OSI model, which makes them suitable for protecting UDP-based protocols when used alone. This means that, compared with transport layer and above protocols such as SSL, which cannot protect UDP level traffic, the IPsec protocols must cope with reliability and fragmentation issues, adding their complexity and processing overhead. SSL/TLS, in contrast, rely on a higher level layer TCP (OSI Layer 4) to manage reliability and fragmentation.

Implementations

The FreeS/WAN (http://www.freeswan.org) project has developed an open source implementation of IPsec for GNU/Linux. An IPsec implementation based on the KAME (http://www.kame.net) project is included in the 2.6 Linux kernel and so will be widely available as GNU/Linux distributions change over to 2.6; in part because of this, development of the Free S/WAN project was discontinued in March 2004. Openswan (http://www.openswan.org) and Strongswan (http://www.strongswan.org) are continuations of FreeS/WAN.

IPsec is also bundled with newer versions of Microsoft Windows, as well as with several commercial flavors of Unix, e.g. Solaris.

Technical Details

Authentication Header

Authentication Header (AH) is intended to guarantee the integrity and authenticity of the transferred packets. Further, it protects against replay attacks. AH tries to protect all fields of an IP datagram. Only fields changeable during transfer of an IP packet are excluded.

An AH packet diagram:


0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Next Header Payload Length RESERVED
Security Parameters Index (SPI)
Sequence Number

Authentication Data (variable)


Field meanings:

Next Header 
identifies the protocol of the tranfered data.
Payload Length 
size of AH package.
RESERVED 
reserved for future use (all zero until then)
Security Parameters Index (SPI) 
identifies the security parameters in combination with IP address
Sequence Number 
a monotonically increasing number, used to prevent relay attacks.
Authentication Data 
contains the data necessary to authenticate the package.

Encapsulated Security Payload (ESP)

The Encapsulating Security Payload (ESP) protocol provides authentification, integrity, and confidentiality of a packet. Unlike the AH header, the IP packet header is not accounted for.

An ESP packet diagram:


0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Security Parameters Index (SPI)
Sequence Number

Payload * (variable)

  Padding (0-255 bytes)
    Pad Length Next Header

Authentication Data (variable)


Field meanings:

Security Parameters Index (SPI) 
identifies the security parameters in combination with IP address
Sequence Number 
a monotonically increasing number, used to prevent relay attacks.
Payload Data 
the data to be transferred
Padding 
is used with some block ciphers to pad the data to the full length of a block
Pad length 
size of padding in bits
Next Header 
identifies the protocol of the tranfered data.
Authentication Data 
contains the data used to authenticate the package.

Implementations

There are a number of implementations of IPsec and ISAKMP/IKE protocols. These include:

See also

Overview of IPsec Related RFCs

RFC 2401: Security Architecture for the Internet Protocol
RFC 2402: Authentication Header
RFC 2406: Encapsulating Security Payload
RFC 2407: IPsec Domain of Interpration (IPsec DoI)
RFC 2408: Internet Security Association and Key Management Protocol (ISAKMP)
RFC 2409: Internet Key Exchange (IKE)

External links


de:IPsec fi:IPSec nl:IPSec

Related links


Top visited 0 of 0 links

[no links posted yet]

>> place link >>

Discussion

Last posted 0 of 0 messages

[no messages posted yet]

>> post message >>

Watch

You can add this article to your own "watchlist" and receive e-mail notification about all changes in this page.
 
   
Innovate it
This page was last modified 10:56, 2 Oct 2004.
  Content is available under GNU Free Documentation License 1.2.
Powered by MediaWiki