What do you mean by replicate?
Is that replication or backup as defined on the MySQL site?
For a replication scenario, the slave ("Dst") must be able to talk to the master ("Src") to request replication data, which is not possible in your set-up. The MySQL site states:
Each slave that connects to the master requests a copy of the binary log. That is, it pulls the data from the master, rather than the master pushing the data to the slave.
It could work using a reverse tunnel
. See this SO post for how.
A backup scenario can use mysqldump
on "Src" to dump the database to a file and then upload or otherwise transfer the file to "Dst". This can be scheduled using a cron job on Linux or 'Task Scheduler' on Windows.