CCIE SEC Security Protocols & Encryption
RADIUS
Remote Authentication Dial In User Service
UDP
OLD = 1645
New = 1812
Only Encrypts the Password
Accounting
UDP
OLD = 1646
New = 1813
RFC 2865
Obsoletes 2138!
Packet Types
Access-Request
Access-Accept
Access-Reject
Accounting-Request
Accounting-Response
Access-Challenge
Reply ATTRIBUTES
Check ITEMS
VSA
Vendor Specific Attribues
Type 26
Cisco's Vendor ID = 9
1: Cisco-AVPair
250: Account-Info
251:Service-Info
252:Command-Code
Radius Does not support these protocols
AppleTalk Remote Access (ARA) protocol
NetBIOS Frame Protocol Control protocol
Novell Asynchronous Services Interface (NASI)
X.25 PAD connection
/ etc / radius / clients (file)
The clients file contains a list of clients that are allowed to make requests of the RADIUS server.
The clients file contains a list of clients that are allowed to make requests of the RADIUS server. Typically, for each client, NAS or AP, you must enter the client IP address along with the shared secret between the RADIUS server and the client and an optional poolname for IP pooling. The file consists of entries in the following form:
A sample entry list appears as follows: 10.10.10.1 mysecret1 floor6 10.10.10.2 mysecret2 floor5 A shared secret is a character string that is configured on both the client hardware and on the RADIUS server. The maximum length of the shared secret is 256 bytes and is case sensitive. The shared secret is not sent in any of the RADIUS packets and is never sent over the network. System administrators must make sure the exact secret is configured on both sides (client and RADIUS server). The shared secret is used for encrypting the user password information and can be used for verifying message integrity by the use of a Message Authentication attribute. Each client's shared secret should be unique in the /etc/radius/clients file and, like any good password, it is best to use a mixture of uppercase/lowercase letters, numbers, and symbols in the secret. To keep a shared secret secure, make it at least 16 characters in length. The /etc/radius/clients file can be modified using SMIT. The shared secret should be changed often to prevent dictionary attacks. The poolname is the name of the pool from which global IP addresses are allocated during dynamic translation. The system administrator creates the poolname when setting up the RADIUS server. Using a SMIT panel, the poolname is added from Configure Proxy Rules > IP Pool > Create an IP Pool. It is used during server side IP pooling.
radius-server vsa send
TACACS+
Terminal Access Controller Access-Control System Plus
TCP 49
Encryptes whole packet Body
By default, there are three command levels on the router
privilege level 0—Includes the disable, enable, exit, help, and logout commands
privilege level 1—Includes all user-level commands at the router> prompt
privilege level 15—Includes all enable-level commands at the router> prompt
if-needed
You can move commands around between privilege levels
privilege exec level priv-lvl command
RFC 1492
Ciphers RSA, DSS, RC4
Symmetric Key = Same Key Both Ends
Asymetric Key = RSA, Pub/Priv Key pair
Block Cipher
Encrypts data of a fixed size
Fixed input & output, i.e. 128bitr of plain text = 128but of cipher text
To encrypt data larger than block size need a "mode of operation"
Most modes of operation require an IV
IV: Initilation Vector A sort of "dummy" block of data to kick off the proccess for the real block & provide some randomisation
Electronic codebook (ECB)
The simplest of the encryption modes is the electronic codebook (ECB) mode. The message is divided into blocks and each block is encrypted separately. The disadvantage of this method is that identical plaintext blocks are encrypted into identical ciphertext blocks; thus, it does not hide data patterns well.
Cipher-block chaining (CBC)
CBC mode of operation was invented by IBM in 1976. [1] In the cipher-block chaining (CBC) mode, each block of plaintext is XORed with the previous ciphertext block before being encrypted. This way, each ciphertext block is dependent on all plaintext blocks processed up to that point. Also, to make each message unique, an initialization vector must be used in the first block.
Cipher feedback (CFB)
The cipher feedback (CFB) mode, a close relative of CBC, makes a block cipher into a self-synchronizing stream cipher. Operation is very similar; in particular, CFB decryption is almost identical to CBC encryption performed in reverse
Output feedback (OFB)
The output feedback (OFB) mode makes a block cipher into a synchronous stream cipher: it generates keystream blocks, which are then XORed with the plaintext blocks to get the ciphertext. Just as with other stream ciphers, flipping a bit in the ciphertext produces a flipped bit in the plaintext at the same location. This property allows many error correcting codes to function normally even when applied before encryption.
Counter (CTR)
Like OFB, counter mode turns a block cipher into a stream cipher. It generates the next keystream block by encrypting successive values of a "counter". The counter can be any simple function which produces a sequence which is guaranteed not to repeat for a long time, although an actual counter is the simplest and most popular. CTR mode has similar characteristics to OFB, but also allows a random access property during decryption. Note that the nonce in this graph is the same thing as the initialization vector (IV) in the other graphs. The IV/nonce and the counter can be concatenated, added, or XORed together to produce the actual unique counter block for encryption. CTR mode is well suited to operation on a multi-processor machine where blocks can be encrypted in parallel.
Stream Cipher
Encrypts data bit by bit
Contrinuous stream
MD5
Message Digest 5
128 But
SHA
Secure Hash Algorithm
160 Bit
EAP PEAP TKIP TLS
DES
Data Encryption Standard
3DES
Triple DES
AES
Advanced Encryption Standard
IPSec
IP Security
Provides Security at the IP layer to protect the IP later and those above
Access Control
Connectionless Integrity
Data Origin Authentication
Rejection on replayed packets
Confidentiliaty (encryption)
Can by used by both Hosts & Gateways
Implemented Methods
Integrated into native IP
Requires acces to IP source code
Applicable to hosts & gatewats
Bump in the stack
Implemented under IP, before the NIC driver
Good for legacy hosts
Bump in the wire
Implemnted by a devices, i.e. a firewall or router
off-load crypto processing to another device
Security Associations
Components
SPI: Security Paramater Index
Destination IP (only Unicast supported)
AH or ESP Identifier
AH & ESP canNOT share SA's
AH
Authentication Header
Protocol 51
RFC 2402
Transport Mode
AH is inserted after the IP Header and before the upper layer protocol e.f. TCP, UDP, ICMP etc
Packet Format
Tunnel Mode
Can only be used on "gateway" devices
AH protects the entire IP packet including inner header
Packet Format
Header Format
ESP
Encapsulating Security Payload
Protocol 50
RFC2406
Provides confidentiallity, data origin authentication, connectionless integrity & limited traffic flow confidentiality
Packet Header
Transport Mode
ESP is inserted after the IP header and before the upper layer protocols (and before any other IPSEC header)
Packet Format
Tunnel Mode
Used on either Hosts or Gateways
ESP Tunnel protects the entire inner IP packet, including headers
Packet Format
IKE
Internet Key Exchange
UDP 500
CEP
Certificate Enrollment Protocol
TLS
Transport Layer Security
SSL
Secure Socket Layer
PPTP
Point to Point Tunneling Protocol
L2TP
Layer 2 Tunneling Protocol
GRE
Generic Route Encapsulation
Protocol 47
GRE tunnels are designed to be completely stateless. This means that each tunnel end-point does not keep any information about the state or availability of the remote tunnel end-point
RFC2784
Packet Form
Security Considerations
Security in a network using GRE should be relatively similar to security in a normal IPv4 network, as routing using GRE follows the same routing that IPv4 uses natively. Route filtering will remain unchanged. However packet filtering requires either that a firewall look inside the GRE packet or that the filtering is done on the GRE tunnel endpoints. In those environments in which this is considered to be a security issue it may be desirable to terminate the tunnel at the firewall.
RFC1701
Packet Header
SSH
Secure Shell
PGP
Pretty Good Privacy
Web of Trust
TACACS+ and RADIUS Comparison - Cisco Systems
CCIE SEC Security Protocols & Encryption
Added: 2008-12-15 09:43:03
From: (Joined 2008-12-15 05:32:23)
243 views |3 downloads
CCIE SEC Security Protocols & Encryption