You can secure the pathway between RepAgent and Replication Server using network-based security features.
The active security mechanism
Unified login
Mutual authentication
Message confidentiality
Message integrity
Message replay detection
Message origin check
Message out of sequence check