How to create distributed/mirrored dynamic scripting website (Step – 3 Security)

Step three: Security
1. Firewall policy, use iptables to restrict specific ip & port.

2. When create replication user, use ‘user’@’ip’ rather than ‘user’@’%’

3. Use authorized keys for rsync so you can run rsync without a password. To create a ssh authoruzed key:
On source host

Copy id_rsa.pub to destination host
Then execute the destination host

Next: How to create distributed/mirrored dynamic scripting website (Step – 4 Region detection & redirection)