kong-网络与防火墙

2017-04-27  本文已影响0人  Eraz

端口

kong 通过多个链接实现不同的目录:

Overview of ports and connections.png

代理

kong通过nginx做前端代理处理流入的数据流:

管理API

集群

intra-node port settings.png

配置实例

假如某节点本地集群端口侦听在 192.168.23.45:7946 端口,然后通过NAT映射到 192.168.10.5:17946 ip端口,那么对应的配置项应该如下:

防火墙

Below are the recommended firewall settings:
The upstream APIs behind Kong will be available on proxy_listen and proxy_listen_ssl. Configure these ports accordingly to the access level you wish to grant to the upstream APIs.
Protect admin_api_listen, and only allow trusted sources that can access the Admin API.
Allow traffic on the cluster_listen and cluster_advertise portsonly between the Kong nodes. This port is used for intra-cluster communications.

Network

Kong assumes a flat network topology in multi-datacenter setups. If you have a multi-datacenter setup, Kong nodes between the datacenters should communicate over a VPN connection.

上一篇 下一篇

猜你喜欢

热点阅读