Network

Network Requirements

Understand the network connectivity requirements for all DB Audit deployment modes. This guide covers ports, protocols, firewall rules, and bandwidth planning for SaaS, on-premise, and air-gapped environments.

SaaS Deployment Network Matrix

In the SaaS deployment model, the collector runs in your environment and sends events to DB Audit Cloud over HTTPS. Only outbound HTTPS (port 443) connectivity is required to the internet.

SourceDestinationPortProtocolDirectionPurpose
Collectorapi.dbaudit.ai443HTTPSOutboundEvent streaming
CollectorDatabasesvariesTCP/TLSInternalAudit log collection
Usersapp.dbaudit.ai443HTTPSOutboundWeb interface
CollectorDNS53UDP/TCPOutboundName resolution
CollectorNTP123UDPOutboundTime sync

On-Premise Network Matrix

On-premise deployments keep all traffic internal to your network. No outbound internet access is required for core functionality. Optional external access may be needed for Helm chart repositories and container image updates.

SourceDestinationPortProtocolDirectionPurpose
CollectorDatabasesvariesTCP/TLSInternalAudit log collection
CollectorMinIO/S39000TCP/TLSInternalAudit storage
CollectorRedis6379TCPInternalCaching/queuing
UICollector API8080TCP/TLSInternalManagement
UsersUI/Ingress443HTTPSInboundWeb interface
PrometheusCollector9090HTTPInternalMetrics
CollectorSMTP587TCP/TLSInternalAlert emails
CollectorSIEMvariesTCP/TLSInternalEvent forwarding
CollectorLDAP/AD636LDAPSInternalAuthentication

Optional External Connectivity

On-premise deployments may optionally require outbound access to a Helm chart repository and container registry for pulling updates. These connections can be replaced by manual image imports for stricter environments. See the On-Premise Deployment Guide for details.

Air-Gapped Network Matrix

Air-gapped deployments operate with zero external network connections. All services, including DNS, NTP, and authentication, must be provided internally. This mode is designed for classified, regulated, and high-security environments.

Zero External Connections Required

All connections in the air-gapped deployment are strictly internal. There are no external DNS lookups, no external NTP synchronization, and no license phone-home mechanisms. DB Audit operates fully offline once deployed.

SourceDestinationPortProtocolDirectionPurpose
CollectorDatabasesvariesTCP/TLSInternalAudit log collection
CollectorMinIO/S39000TCP/TLSInternalAudit storage
CollectorRedis6379TCPInternalCaching/queuing
UICollector API8080TCP/TLSInternalManagement
UsersUI/Ingress443HTTPSInboundWeb interface
PrometheusCollector9090HTTPInternalMetrics
CollectorInternal SMTP587TCP/TLSInternalAlert emails
CollectorInternal SIEMvariesTCP/TLSInternalEvent forwarding
CollectorInternal LDAP/AD636LDAPSInternalAuthentication
CollectorInternal NTP123UDPInternalTime sync

Internal NTP Required

Deploy a local NTP server (e.g., chrony) for time synchronization across collector nodes.

Offline Updates

Container images and Helm charts are imported via physical media or secure transfer. No registry access needed.

Database Ports Reference

Quick reference for default database ports. The collector connects to these ports to read native audit logs. Always use TLS where supported.

DatabaseDefault PortProtocolTLS Support
PostgreSQL5432TCPYes (ssl)
MySQL3306TCPYes (ssl-mode)
SQL Server1433TCPYes (encrypt)
MongoDB27017TCPYes (tls)
Oracle1521TCPYes (TCPS)
MariaDB3306TCPYes (ssl)
Redis6379TCPYes (TLS)
Cassandra9042TCPYes
Snowflake443HTTPSAlways
BigQuery443HTTPSAlways

These are default ports. Your databases may be configured to use non-standard ports. Check your database configuration and update firewall rules accordingly.

Firewall Rule Templates

Example firewall rules for common configurations. Adapt the IP ranges and ports to match your environment.

iptables- Linux firewall rules

# Allow collector to reach databases
iptables -A OUTPUT -p tcp -d 10.0.1.0/24 --dport 5432 -j ACCEPT
iptables -A OUTPUT -p tcp -d 10.0.1.0/24 --dport 3306 -j ACCEPT

# Allow collector to reach MinIO
iptables -A OUTPUT -p tcp -d 10.0.2.10 --dport 9000 -j ACCEPT

# Allow inbound to UI
iptables -A INPUT -p tcp --dport 443 -j ACCEPT

# Allow metrics scraping
iptables -A INPUT -p tcp -s 10.0.3.0/24 --dport 9090 -j ACCEPT

# Block all other outbound (air-gapped)
iptables -A OUTPUT -j DROP

NetworkPolicy- Kubernetes network isolation

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: dbaudit-collector
  namespace: dbaudit
spec:
  podSelector:
    matchLabels:
      app: dbaudit-collector
  policyTypes:
    - Ingress
    - Egress
  ingress:
    # Allow Prometheus scraping
    - from:
        - namespaceSelector:
            matchLabels:
              name: monitoring
      ports:
        - port: 9090
          protocol: TCP
    # Allow UI access
    - from:
        - podSelector:
            matchLabels:
              app: dbaudit-ui
      ports:
        - port: 8080
          protocol: TCP
  egress:
    # Allow database connections
    - to:
        - ipBlock:
            cidr: 10.0.1.0/24
      ports:
        - port: 5432
          protocol: TCP
        - port: 3306
          protocol: TCP
    # Allow MinIO
    - to:
        - podSelector:
            matchLabels:
              app: minio
      ports:
        - port: 9000
          protocol: TCP
    # Allow Redis
    - to:
        - podSelector:
            matchLabels:
              app: redis
      ports:
        - port: 6379
          protocol: TCP
    # Allow DNS
    - to: []
      ports:
        - port: 53
          protocol: UDP
        - port: 53
          protocol: TCP

For a comprehensive set of network policies including egress restrictions and namespace isolation, see the Security Hardening Guide.

Bandwidth Estimation

Plan your network capacity based on expected audit event volume. Each audit event averages approximately 1 KB in size before compression.

Event RateBandwidth (uncompressed)Daily Volume (uncompressed)
100 events/sec~100 KB/s~8.6 GB/day
1,000 events/sec~1 MB/s~86 GB/day
10,000 events/sec~10 MB/s~860 GB/day
50,000 events/sec~50 MB/s~4.3 TB/day

Compression

DB Audit compresses events in transit, reducing bandwidth by approximately 70%. Actual savings depend on event content.

Local Buffering

The collector buffers events locally during network interruptions. Events are synced automatically when connectivity resumes, ensuring zero data loss.