F
F
fedor_nefedov2014-12-28 00:36:57
PostgreSQL
fedor_nefedov, 2014-12-28 00:36:57

How to set up PostgreSQL replication from a gray IP address?

It is not possible to set up PostgreSQL replication, where the master server has a "white" IP address, and the slave has a "gray" one (read "behind NAT's"). In general, it is clear that in 99% of cases this is not necessary, but I have exactly that case out of 1% ... Of course, Google could not answer, or I searched badly.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Melkij, 2014-12-28
@melkij

Tunnel, maybe it would be better to do?
Over SSH or some kind of VPN.

D
Dmitry, 2014-12-28
@deemytch

So set up an (open)VPN tunnel or ssh -N -f -L.... or in any other way out of a dozen possible, from localhost to localhost and never show anyone that postgre is hanging on the external interface. They throw bast shoes.

P
Puma Thailand, 2014-12-28
@opium

make the simplest ipigre tunnel
, it will restore itself if the connection
appears again

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question