separating-node-client-traffic.asciidoc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [role="xpack"]
  2. [[separating-node-client-traffic]]
  3. === Separating node-to-node and client traffic
  4. Elasticsearch has the feature of so called
  5. {ref}/modules-transport.html[TCP transport profiles]
  6. that allows it to bind to several ports and addresses. The {es}
  7. {security-features} extend on this functionality to enhance the security of the
  8. cluster by enabling the separation of node-to-node transport traffic from client
  9. transport traffic. This is important if the client transport traffic is not
  10. trusted and could potentially be malicious. To separate the node-to-node traffic
  11. from the client traffic, add the following to `elasticsearch.yml`:
  12. [source, yaml]
  13. --------------------------------------------------
  14. transport.profiles.client: <1>
  15. port: 9500-9600 <2>
  16. xpack.security:
  17. type: client <3>
  18. --------------------------------------------------
  19. <1> `client` is the name of this example profile
  20. <2> The port range that will be used by transport clients to communicate with
  21. this cluster
  22. <3> Categorizes the profile as a `client`. This accounts for additional security
  23. filters by denying request attempts on for internal cluster operations
  24. (e.g shard level actions and ping requests) from this profile.
  25. If supported by your environment, an internal network can be used for node-to-node
  26. traffic and public network can be used for client traffic by adding the following
  27. to `elasticsearch.yml`:
  28. [source, yaml]
  29. --------------------------------------------------
  30. transport.profiles.default.bind_host: 10.0.0.1 <1>
  31. transport.profiles.client.bind_host: 1.1.1.1 <2>
  32. --------------------------------------------------
  33. <1> The bind address for the network that will be used for node-to-node communication
  34. <2> The bind address for the network used for client communication
  35. If separate networks are not available, then
  36. {stack-ov}/ip-filtering.html[IP Filtering] can
  37. be enabled to limit access to the profiles.
  38. When using SSL for transport, a different set of certificates can also be used
  39. for the client traffic by adding the following to `elasticsearch.yml`:
  40. [source, yaml]
  41. --------------------------------------------------
  42. transport.profiles.client.xpack.security.ssl.truststore:
  43. path: /path/to/another/truststore
  44. password: x-pack-test-password
  45. transport.profiles.client.xpack.security.ssl.keystore:
  46. path: /path/to/another/keystore
  47. password: x-pack-test-password
  48. --------------------------------------------------
  49. To change the default behavior that requires certificates for transport clients,
  50. set the following value in the `elasticsearch.yml` file:
  51. [source, yaml]
  52. --------------------------------------------------
  53. transport.profiles.client.xpack.security.ssl.client_authentication: none
  54. --------------------------------------------------
  55. This setting keeps certificate authentication active for node-to-node traffic,
  56. but removes the requirement to distribute a signed certificate to transport
  57. clients.