TCP

Definition

TCP (Transmission Control Protocol) is a core protocol of the Internet Protocol Suite, providing reliable, ordered, and error-checked delivery of data between applications running on hosts communicating over an IP network. It establishes a connection between a sender and receiver before data transmission, ensuring that packets are delivered in sequence and without errors, making it suitable for applications where data integrity is crucial, such as web browsing and email.

Secure Settings Example

# Example of a secure TCP server configuration in a firewall
firewall:
  rules:
    - action: allow
      protocol: tcp
      port: 443
      source: 0.0.0.0/0
      description: "Allow secure HTTPS traffic"
    - action: deny
      protocol: tcp
      port: 80
      source: 0.0.0.0/0
      description: "Deny insecure HTTP traffic"

Insecure Settings Example

# Example of an insecure TCP server configuration in a firewall
firewall:
  rules:
    - action: allow
      protocol: tcp
      port: 80
      source: 0.0.0.0/0
      description: "Allow all HTTP traffic"
    - action: allow
      protocol: tcp
      port: 22
      source: 0.0.0.0/0
      description: "Allow unrestricted SSH access"