Skip to content

Commit 171c1ad

Browse files
Reference: Gateway network ports firewall (#442)
* Start revising ports page Signed-off-by: Diana <[email protected]> * Draft default ports table, add to sources.yaml Signed-off-by: Diana <[email protected]> * Draft overview paragraph Signed-off-by: Diana <[email protected]> * Add Network landing page stub Signed-off-by: Diana <[email protected]> * Adjust upstream service wording Signed-off-by: Diana <[email protected]> * Apply suggestions from code review Co-authored-by: lena-larionova <[email protected]> * Change the sections and make new column in table Signed-off-by: Diana <[email protected]> * Apply suggestions from code review Co-authored-by: lena-larionova <[email protected]> * Add description * Add if_version note * set min version to 3.4 --------- Signed-off-by: Diana <[email protected]> Co-authored-by: lena-larionova <[email protected]>
1 parent 8eeec19 commit 171c1ad

File tree

3 files changed

+85
-10
lines changed

3 files changed

+85
-10
lines changed
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
metadata:
2+
title: "{{site.base_gateway}} networking"
3+
content_type: landing_page
4+
description: Details {{site.base_gateway}} network, ports, and firewall settings and how to manage them.
5+
tags:
6+
- security
7+
- traffic-control
8+
breadcrumbs:
9+
- /gateway/
10+
related_links:
11+
- text: "{{site.base_gateway}} ports"
12+
url: /gateway/network-ports-firewall/
13+
14+
rows:
15+
- header:
16+
type: h1
17+
text: "{{site.base_gateway}} network"
18+
columns:
19+
- blocks:
20+
- type: structured_text
21+
config:
22+
blocks:
23+
- type: text
24+
text: |
25+
@todo
26+
27+
This is a landing page for all things networks, ports, and firewall for probably both Kong Gateway and Konnect
28+
Can have some conceptual info, but mostly be a collection of cards/links to reference pages and how tos
29+
30+
Source pages:
31+
* https://docs.konghq.com/gateway/3.9.x/production/networking/dns-considerations/
32+
* https://docs.konghq.com/gateway/3.9.x/production/networking/cp-dp-proxy/
33+
* https://docs.konghq.com/konnect/network/

app/gateway/network-ports-firewall.md

+49-10
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,64 @@
11
---
2-
title: Network, ports, and firewall for {{site.base_gateway}}
2+
title: "{{site.base_gateway}} ports"
33
content_type: reference
44
layout: reference
55

66
products:
77
- gateway
88

9-
description: placeholder
9+
min_version:
10+
gateway: '3.4'
11+
12+
description: Learn which ports {{site.base_gateway}} uses and how to configure them.
1013

1114
related_resources:
1215
- text: "Secure {{site.base_gateway}}"
1316
url: /gateway/security/
17+
- text: Proxying with {{site.base_gateway}}
18+
url: /gateway/traffic-control/proxying/
19+
- text: "{{site.base_gateway}} networking"
20+
url: /gateway/network/
1421
---
1522

16-
@todo
23+
{{site.base_gateway}} needs port access for two main types of connections: traffic passing through the proxy and managing the {{site.base_gateway}} via the Admin API.
24+
25+
## Proxy ports
26+
27+
In general, the proxy ports are the *only* ports that should be made available to your clients. Upstream services are accessible via the proxy interface and ports, so make sure that these values only grant the access level you require.
28+
29+
Your proxy will need have rules added for any HTTP/HTTPS and TCP/TLS stream listeners that you configure. For example, if you want {{site.base_gateway}} to manage traffic on port `4242`, your firewall must allow traffic on that port.
30+
31+
The following are the default proxy ports:
32+
33+
| Port | Protocol | `kong.conf` setting | Description |
34+
|---------|---------|------------|------------|
35+
| `8000` | HTTP | [`proxy_listen`](/gateway/configuration/#proxy_listen) | Takes incoming HTTP traffic from [Consumers](/gateway/entities/consumer/), and forwards it to upstream services. |
36+
| `8443` | HTTPS | [`proxy_listen`](/gateway/configuration/#proxy_listen) | Takes incoming HTTPS traffic from [Consumers](/gateway/entities/consumer/), and forwards it to upstream services. |
37+
38+
You can also proxy TCP/TLS streams, which is disabled by default. If you want to proxy this traffic, see [`stream_listen` in the Kong configuration reference](/gateway/configuration/) for more information about stream proxy listen options and how to enable it.
39+
40+
## Admin API ports
41+
42+
The Admin API is used to manage {{site.base_gateway}}. You should [prevent unauthorized access](/gateway/secure-the-admin-api/) to these ports in production.
43+
44+
The following are the default ports used by the Admin API:
45+
46+
| Port | Protocol | `kong.conf` setting | Description |
47+
|---------|---------|------------|------------|
48+
| `8001` | HTTP | [`admin_listen`](/gateway/configuration/#admin_listen) | Listens for Admin API calls from the command line over HTTP. |
49+
| `8444` | HTTPS | [`admin_listen`](/gateway/configuration/#admin_listen) | Listens for Admin API calls from the command line over HTTPS. |
50+
51+
## Other default ports
52+
53+
In addition to the proxy and Admin API ports, {{site.base_gateway}} listens on the following other ports by default:
54+
55+
| Port | Protocol | `kong.conf` setting | Description |
56+
|---------|---------|------------|------------|
57+
| `8002` | HTTP | [`admin_gui_listen`](/gateway/configuration/#admin_gui_listen) | Kong Manager (GUI). Listens for HTTP traffic. |
58+
| `8445` | HTTPS | [`admin_gui_listen`](/gateway/configuration/#admin_gui_listen) | Kong Manager (GUI). Listens for HTTPS traffic. |
59+
| `8005` | TCP | [`cluster_listen`](/gateway/configuration/#cluster_listen) | Hybrid mode only. Control plane listens for traffic from data plane nodes. |
60+
| `8006` | TCP | [`cluster_telemetry_listen`](/gateway/configuration/#cluster_telemetry_listen) | Hybrid mode only. Control plane listens for Vitals telemetry data from data plane nodes. |
61+
| `8007` | HTTP | [`status_listen`](/gateway/configuration/#status_listen) | Status listener. Listens for calls from monitoring clients over HTTP. |
1762

18-
I don't know if reference is the correct format. Maybe a landing page with separate reference pages?
63+
<!-- port 8007 in the table needs to be marked as if_version gte:3.6.x -->
1964

20-
Possible content:
21-
* https://docs.konghq.com/gateway/3.9.x/production/networking/firewall/
22-
* https://docs.konghq.com/gateway/3.9.x/production/networking/dns-considerations/
23-
* https://docs.konghq.com/gateway/3.9.x/production/networking/cp-dp-proxy/
24-
* https://docs.konghq.com/konnect/network/
25-
* https://docs.konghq.com/gateway/latest/production/networking/default-ports/

tools/track-docs-changes/config/sources.yml

+3
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ app/gateway/routing/index.md:
251251
- app/_src/gateway/key-concepts/routes/index.md
252252
app/gateway/manage-kong-conf.md:
253253
- app/_src/gateway/production/kong-conf.md
254+
app/gateway/network-ports-firewall.md:
255+
- app/_src/gateway/production/networking/default-ports.md
256+
- app/_src/gateway/production/networking/firewall.md
254257

255258
# traffic control
256259
app/gateway/traffic-control/proxy.md:

0 commit comments

Comments
 (0)