Ana içeriğe geç

Network Connection Matrix

This page provides detailed information about network connections and port requirements between Apinizer platform components. A port matrix is provided for Inbound, Outbound, and Internal traffic flows.

Network Traffic Categories​

Inbound Traffic

From External World

  • From Internet to Load Balancer
  • From Clients to API Gateway
Outbound Traffic

To External World

  • To Backend APIs
  • To External Services
  • To Internet
Internal Traffic

Between Components

  • Manager ↔ Worker
  • Worker ↔ Database
  • Worker ↔ Cache

Port Matrix - Detailed Table​

Inbound Traffic (Internet → Apinizer)​

SourceDestinationPortProtocolDescriptionRequired
InternetLoad Balancer443HTTPSAPI access (Production)Required
InternetLoad Balancer80HTTPHTTP → HTTPS redirectRequired
InternetLoad Balancer22SSHManagement access (recommended via VPN)Optional

Outbound Traffic (Apinizer → Internet)​

SourceDestinationPortProtocolDescriptionRequired
WorkerBackend API443HTTPSBackend API callsRequired
WorkerBackend API80HTTPHTTP Backend API callsOptional
WorkerExternal Services443HTTPSExternal service integrationsOptional
ManagerExternal Services443HTTPSMonitoring, webhooksOptional
ManagerSMTP Server25/587SMTPEmail sendingOptional
ManagerDNS Server53UDP/TCPDNS queriesRequired

Internal Traffic (Between Components)​

Manager ↔ Worker (Gateway)​

SourceDestinationPortProtocolDescriptionDirection
ManagerWorker (Gateway)8091 or K8s NodePort 30080/30090HTTPDeploy (/apinizer/deployment/*), management and health (/apinizer/management/*)Manager → Worker
ManagerWorker (Gateway)8443HTTPSGateway HTTPS (when enabled on the Environment)Manager → Worker
WorkerManager8080 or K8s NodePort 32080HTTPManager UI / REST APIWorker → Manager
OperatorManager8080 or K8s NodePort 32080HTTPAdmin consoleInbound (LAN)

Manager ↔ Integration (Quartz)​

SourceDestinationPortProtocolDescriptionDirection
ManagerIntegration8092HTTPTask-flow scheduler REST, health (/apinizer/management/health)Manager → Integration
IntegrationMongoDB25080TCPQuartz job storeIntegration → MongoDB

Worker ↔ Database (MongoDB)​

SourceDestinationPortProtocolDescriptionDirection
WorkerMongoDB25080TCPData read/writeWorker → MongoDB
ManagerMongoDB25080TCPConfiguration managementManager → MongoDB
MongoDBMongoDB25080TCPReplica set communicationMongoDB ↔ MongoDB

Worker ↔ Elasticsearch​

SourceDestinationPortProtocolDescriptionDirection
WorkerElasticsearch9200HTTPLog sendingWorker → Elasticsearch
ManagerElasticsearch9200HTTPAnalytics queriesManager → Elasticsearch
ElasticsearchElasticsearch9300TCPCluster communicationElasticsearch ↔ Elasticsearch

Worker ↔ Cache (Hazelcast)​

SourceDestinationPortProtocolDescriptionDirection
WorkerCache5701TCPHazelcast wire (quota/OIDC/CB)Worker → Cache
WorkerCache8090HTTPCache REST APIWorker → Cache
ManagerCache5701TCPCache managementManager → Cache
ManagerCache8090HTTPCache REST / diagnosticsManager → Cache
CacheCache5701TCPCluster communicationCache ↔ Cache

Kubernetes Communication​

SourceDestinationPortProtocolDescriptionDirection
KubeletAPI Server6443HTTPSAPI accessKubelet → API Server
Kube-proxyAPI Server6443HTTPSAPI accessKube-proxy → API Server
PodPodDynamicTCP/UDPPod-to-Pod communicationPod ↔ Pod

Network Topology Based Port Requirements​

DMZ Zone Ports​

Worker Nodes (Gateway):

  • 443/80: Client access (from Load Balancer)
  • 8091 / 8443 (container) or 30080 / 30090 (K8s NodePort): API Gateway HTTP/HTTPS
  • 5701 / 8090: Cache (Hazelcast + REST) access (from LAN)
  • 25080: MongoDB access (from LAN)
  • 9200: Elasticsearch access (from LAN)

Load Balancer:

  • 443/80: Internet access
  • 8091 / 8443 or 30080 / 30090: Routing to Worker gateway backends

LAN Zone Ports​

Manager Module:

  • 8080: Web Manager and Management API
  • 25080: MongoDB access
  • 9200: Elasticsearch access
  • 5701: Cache access

MongoDB:

  • 25080: Database access (from Worker and Manager)

Elasticsearch:

  • 9200: HTTP API (from Worker and Manager)
  • 9300: Transport protocol (intra-cluster)

Cache (Hazelcast):

  • 5701: Hazelcast cluster (from Worker and Manager)
  • 8090: Cache REST / diagnostic HTTP

Integration (Quartz):

  • 8092: Scheduler REST (from Manager)

Firewall Rules Summary​

DMZ Firewall Rules​

Inbound:

Internet → Load Balancer: 443, 80
VPN → Load Balancer: 22 (optional)

Outbound:

Load Balancer → Worker: 8091 / 8443 (or NodePort 30080 / 30090)
Worker → Manager: 8080 (or NodePort 32080)
Worker → MongoDB: 25080
Worker → Elasticsearch: 9200
Worker → Cache: 5701
Worker → Backend API: 443, 80

LAN Firewall Rules​

Inbound:

DMZ → Manager: 8080
DMZ → MongoDB: 25080
DMZ → Elasticsearch: 9200
DMZ → Cache: 5701
VPN → Manager: 22, 8080

Outbound:

Manager → Worker: 8091 / 8443 (or NodePort 30080 / 30090)
Manager → Integration: 8092
Manager → MongoDB: 25080
Manager → Elasticsearch: 9200
Manager → Cache: 5701, 8090
Manager → External Services: 443, 25, 587

Port Requirements - Component Based​

Worker Node Ports​

Client-Facing Ports
  • 443: HTTPS API access (LB termination)
  • 80: HTTP API access (for redirect)
  • 8091 / 8443: Gateway HTTP/HTTPS (container defaults)
  • 30080 / 30090: Kubernetes NodePort (per environment)
Backend Communication Ports
  • 443/80: Backend API calls (outbound)
  • 25080: MongoDB access (outbound)
  • 9200: Elasticsearch log sending (outbound)
  • 5701 / 8090: Cache access (outbound)
Internal Ports
  • 8080: Manager REST (Worker → Manager)
  • 8091: Manager deploy/management (Manager → Worker gateway)
  • Dynamic: Kubernetes service discovery

Manager Node Ports​

Web Interface Ports
  • 8080: Web Manager UI
  • 8080: Management API
Database Ports
  • 25080: MongoDB access (outbound)
  • 9200: Elasticsearch access (outbound)
  • 5701: Cache access (outbound)
External Service Ports
  • 443: External API calls (webhook, monitoring)
  • 25/587: SMTP (email sending)
  • 53: DNS queries

Network Security Best Practices​

Warning

Security Rules:

  1. Never expose MongoDB and Elasticsearch ports to the Internet
  2. Never expose Manager port (8080) to the Internet
  3. Always use TLS/SSL (in production)
  4. Always configure firewall rules with least privilege principle
  5. Always implement network segmentation (DMZ/LAN)

Port Opening Checklist​

  • Only necessary ports are opened
  • DMZ and LAN separation is implemented
  • Firewall rules are configured with least privilege principle
  • TLS/SSL certificates are configured
  • Network segmentation is implemented
  • Port scanning tests are performed
  • Monitoring and alerting are configured

Traffic Flow Diagram​

Internet
│
▼ (443/80)
┌──────────────┐
│Load Balancer │
└──────┬───────┘
│ (8091 or 30080)
▼
┌──────────────┐
│ Worker Node │
└──────┬───────┘
│
├───► (25080) MongoDB
├───► (9200) Elasticsearch
├───► (5701/8090) Cache
├───► (8080) Manager
└───► (443) Backend API
Note

Important: This port matrix is valid for standard installations. Port numbers may vary for custom configurations and custom port usage. Network security audit must be performed for production environments.