Documentation for C-Werk 2.0.

Previous page Appendix 8. Using C-Werk with NAT  Connecting the Client to the Server behind NAT Next page

To consolidate the Servers from different networks separated by routers into Domain, do the following:

  1. Set the port range for operation and the router's public IP address on each Server that is to be included in the Domain (see Network settings utility).

    Attention!

    The Server port ranges of Domain should not overlap within the same network.

    By default, the base port is 20111, and the port range is 20111-20210. Hence, it is necessary to set and forward the port range 20211-20310 for the second Server, the port range 20311-20410 for the third Server, and so on (see Ports used by the C-Werk Software Package).

    Attention!

    The router's public IP address should be static.

  2. For each router, forward the specified ports of the Server, which is located behind this switch, and the gRPC API 20109 port.
  3. Connect the Client to the Server from any network (see Starting C-Werk Client, Connecting the Client to the Server behind NAT).
  4. Manually add other Servers to the Domain using the public IP address of the corresponding router and the external base port of the Server (see Adding a Server to an existing Domain).

Example:

To combine Servers into one Domain in this configuration, do the following:

  1. On Server 1, set the port range 20111-20210 and the public IP address of router 1.
  2. On Server 2, set the port range 20211-20310 and the public IP address of router 1.
  3. On Server 3, set the port range 20111-20210 and the public IP address of router 2.
  4. On Server 4, set the port range 20211-20310 and the public IP address of router 2.
  5. On router 1, configure the forwarding of:
    1. the router ports 20111-20210 to the internal IP address of Server 1 and ports 20111-20210;
    2. the router ports 20211-20310 to the internal IP address of Server 2 and ports 20211-20310;
    3. the gRPC API 20109 port (always static) to the internal IP address of Server 1 and the internal IP address of Server 2.
  6. On router 2, configure the forwarding of:
    1. the router ports 20111-20210 to the internal IP address of Server 3 and ports 20111-20210;
    2. the router ports 20211-20310 to the internal IP address of Server 4 and ports 20211-20310;
    3. the gRPC API 20109 port (always static) to the internal IP address of Server 3 and the internal IP address of Server 4.
  7. Connect to Server 1.
  8. Manually add Server 2 to the Domain using the local IP address of Server 2 and port 20211.
  9. Manually add Server 3 to the Domain using the public IP address of router 2 and port 20111.
  10. Manually add Server 4 to the Domain using the public IP address of router 2 and port 20211.
  • No labels