-
HTTP
- Hypertext Transfer Protocol
- TCP 80
- RFC2616
- HTTP is a request/response standard between a client and a server.
- The Hypertext Transfer Protocol (HTTP) is an application-level
protocol for distributed, collaborative, hypermedia information
systems. It is a generic, stateless, protocol which can be used for
many tasks beyond its use for hypertext, such as name servers and
distributed object management systems, through extension of its
request methods, error codes and headers
-
Request methods
- HEAD
- GET
- POST
- PUT
- DELETE
- TRACE
- OPTIONS
- CONNECT
- In HTTP/0.9 and 1.0, the connection is closed after a single request/response pair.
In HTTP/1.1 a keep-alive-mechanism was introduced, where a connection could be reused for more than one request.
-
HTTP is Clear Text
Secured by two Methods
-
HTTPS URI scheme
- Use of HTTPS in URI's
-
HTTP 1.1 Upgrade header
- HTTP 1.1 introduced support for the Upgrade header. In the exchange,
the client begins by making a clear-text request, which is later upgraded to TLS.
- which looks like this:
-
sample conversation between an HTTP client and an HTTP server running on www.example.com, port 80.
- Client request
- Server Responce
-
Common Status Codes
- 200 OK
- 301 Moved Permanently
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 500 Internal Server Error
-
SMTP
- Simple Mail Transfer Protocol
- TCP 25
- SMTP is a "push" protocol that cannot "pull" messages from a remote server on demand.
- telnet smtp.example.com 25
- One of the limitations of the original SMTP is that it has no facility for authentication of senders.
Therefore the SMTP-AUTH extension was defined. However, the impracticalities of widespread
SMTP-AUTH implementation and management means that E-mail spamming is not and cannot be addressed by it.
-
FTP
- File Transfer Protocol
- File Transfer Protocol (FTP) is a network protocol used to transfer data from one computer
- TCP 21
-
Active & Passive Modes
-
Active DATA TCP 20
- FTP client opens a dynamic port,
- The CLient sends the FTP server the dynamic port number on which it is
listening over the control stream and waits for a connection from the FTP server.
- When the FTP server initiates the data connection to the FTP client it
binds the source port to port 20 on the FTP server
-
Passive DATA TCP 21
- FTP server opens a dynamic port
- The Server sends the port it's listening on to the client and awaits a connection
- The client connects to the dynamic port & the control port 21
- Clear Text Protocol
-
DNS
- Domain Name System
- UDP 53 DNS Requests / Lookups
- TCP 53 DNS Zone Transfers
-
TFTP
-
Trivial File Transfer Protocol
- It cannot list directory contents.
- It has no authentication or encryption mechanisms.
- It is used to read files from, or write files to, a remote server.
- Due to the lack of security, it is dangerous over the open Internet.
- Trivial File Transfer Protocol (TFTP) is a simplified version of FTP that allows files to be transferred from
one computer to another over a network, usually without the use of client authentication
(for example, username and password).
- UDP 69
-
NTP
- Network Time Protocol
- ntp.org documentation
- Wikipedia Entry
-
Cisco Entry
- Best Practices / GOOD Document
- UDP 123
-
hierarchical
-
Stratum 0
- These are devices such as atomic (caesium, rubidium) clocks,
GPS clocks or other radio clocks. Stratum-0 devices are traditionally not attached to the network;
instead they are locally connected to computers (e.g., via an RS-232 connection using a Pulse per second signal).
-
Stratum 1
- These are computers attached to Stratum 0 devices. Normally they act as servers for timing requests from Stratum 2 servers via NTP.
- These computers are also referred to as time servers.
-
Stratum 2
- These are computers that send NTP requests to Stratum 1 servers.
- Normally a Stratum 2 computer will reference a number of Stratum 1 servers and use the NTP algorithm to gather the best data sample,
dropping any Stratum 1 servers that seem obviously wrong
- Stratum 2 computers will peer with other Stratum 2 computers to provide more stable and robust time for all devices in the peer group
-
Stratum 3
- These computers employ exactly the same NTP functions of peering and data sampling as Stratum 2
- Read From Servers
- Read / Write with Peers
- Note: PIX and ASA cannot be configured as an NTP server, but they can be configured as an NTP client.
-
Syslog
- Cisco Entry
- Wikipedia
- UDP 514
-
LDAP
- Lightweight Directory Access Protocol
-
TCP 389
- The default port for LDAP over SSL is 636.
- Wikipedia
- A directory is a set of objects with similar attributes organised in a logical and hierarchical manner
-
The protocol accesses LDAP directories, which follow the 1993 edition of the X.500 model
- A directory is a tree of directory entries.
- An entry consists of a set of attributes.
- An attribute has a name (an attribute type or attribute description) and one or more values
- Each entry has a unique identifier: its Distinguished Name (DN).
-
Client Operations
- Start TLS — use the LDAPv3 Transport Layer Security (TLS) extension for a secure connection
- Bind — authenticate and specify LDAP protocol version
- Search — search for and/or retrieve directory entries
- Compare — test if a named entry contains a given attribute value
- Add a new entry
- Delete an entry
- Modify an entry
- Modify Distinguished Name (DN) — move or rename an entry
- Abandon — abort a previous request
- Extended Operation — generic operation used to define other operations
- Unbind — close the connection (not the inverse of Bind)