My company has an internal SVN server (VisualSVN) we would like to start using for keeping track of changes to our python source code in the cloud. The ec2 instances would use the linux SVN client. I would like to set something up that will automatically connect to our home network using IPSec VPN, run whatever SVN commands we need to do and then close the VPN connection.
One concern is that both EC2 and our internal network uses the 10...* IP range. I only need to connect to a single server on our network (10.0.0.8) once VPN is connected. I'm worried that I may accidentally change the routing tables and totally screw up our servers.
I'm using Fedora right now on EC2, but I would consider changing distros if there is a readily available solution.
Can anyone provide some example scripts that show how to take an SVN command, create a vpn connection, setup the routing table, run the SVN command, then drop the vpn connection once complete?
Thanks in advance, Russ Ryba
Edit: For those suggesting SVN over SSH. I've used that before and it works well.
Since the EC2 sever with source code I wish to backup is OUTSIDE my work network, wouldn't I still need IPSec to access the SVN server inside my network?
Or does SSH go through IPSec firewalls? The work SVN server also runs windows so it doesn't have an SSH server running on it as far as I know.