Riak Enterprise now supports replication of data on networks that use static NAT.
This can be used for replicating data over the internet where servers have both internal and public IP addresses (see Riak REPL SSL if you replicate data over a public network).
In order for Replication to work on a server configured with NAT, the NAT addresses must be configured statically.
Server A is the source of replicated data.
Servers B and C would like to be clients of the replicated data.
Server A is setup with static NAT, configured for IP addresses:
Server A replication will listen on:
- the internal IP address
192.168.1.10, port 9010
- the public IP address
184.108.40.206, port 9011
Server B is setup with a single public IP address:
- Server B replication will connect as a client to the public IP address 220.127.116.11, port 9011
Server C is setup with a single internal IP address:
- Server C replication will connect as a client to the internal IP address of 192.168.1.10, port 9010
Configure a listener on Server A:
riak-repl add-nat-listener email@example.com 192.168.1.10 9010 18.104.22.168 9011
Configure a site (client) on Server B
riak-repl add-site 22.214.171.124 9011 server_a_to_b
Configure a site (client) on Server C
riak-repl add-site 192.168.1.10 9010 server_a_to_c