title: How to setup the pg_hba.conf
body: <p>I need your help on correctly setup pg_hba.conf for 2 specific postgres servers on different networks. The first server is on local network and the second is on a Cloud server.</p>
  
  <p>Since I will have to setup syncronization between them, I must make sure that both can communicate. </p>
  
  <p>The 'listen_address' is already setup to '*', on postgresql.conf.</p>
  
  <p>My question is, if I add:</p>
  
  <p>host all all 0.0.0.0/0 trust</p>
  
  <p>...to the pg_hba.conf file on both servers will they communicate free of errors?</p>
  
  <p>Perhaps this is not the best way to do it, but since this is for testing purposes perhaps solves my problem for now. Any better and safest solution please?</p>
  
  <p>Thank you all</p>
  
  <p>Regards</p>
  
  <p>Paulo Matos</p>