Some months ago I wrote an article explaining how to configure MariaDB using Galera Cluster in Master-Master mode. However, when you are behind a NAT there are some changes you must do in order to let this cluster to work.
In the configuration you should put attention on the following parameters (it only applies to the server that is behind the NAT):
- wsrep_cluster_address=gcomm://INTERFACE_IP_SERVER_A, PUBLIC_IP_SERVER_B
I am assuming SERVER_A is the one with the NAT and SERVER_B is an external server, where we only matter the attached public IP. If all servers are behind a NAT, you should apply the same logic.
Good Luck!blog comments powered by Disqus