Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking on how to implement a SVN connection over a VPN on my CentOs server.

I need to see up this VPN to work with the team in the office from outside.

  1. required packages ( yum ... )
  2. configuration files I have to mod ( /etc/... )
  3. a basic configuration example

I don't have any particular requirement I just need to set up this service in order to get it work. ( so any suggested kind of VPN that can suit this is accepted ).

share|improve this question
just use system packager to install the vpn and svn packages. There should be no "extra" configuration compared to setting up either of those packages separately. – peterph Nov 14 '12 at 10:28
sorry, you are right on this ... I just update the question t – Francesco Nov 14 '12 at 13:03
Errm, what's wrong with running svn over https? That's encrypted, and generally less work to set up. Other than that, though, you'll need to tell us what type of VPN you want to run—there are dozens... – derobert Nov 14 '12 at 13:09
I suggest joining chat.stackexchange.com/rooms/26/unix-and-linux and hashing out the requirements, unless you already know them all. Seems like something that's going to take a fair bit of discussion – derobert Nov 14 '12 at 13:10
I have edited the question in order to make it less generic ... please, let me know how can i make it more precise in order to get a costrutive answer – Francesco Nov 14 '12 at 13:18
up vote 1 down vote accepted

SVN has no specific setup to use it over VPN. This is just a generic VPN, possibly with a bit of port forwarding.

From the comments I take your office needs to set up a VPN server if they don't want to open the internal network at all. SSH tunneling would be another possibility when ssh would be allowed.

If that VPN server is set up, you just install the VPN package with yum and place the config files that should be prepared by the VPN server admin (which might or might not be you).

"not having a firwall" at the office location probably means you have no open/fowared ports on the router. When internal IPs for the office network are used and internet access is achieved through Network Adress Translation (NAT) you actually have a firewall. You need to forward the VPN server port.

The VPN then needs access to the SVN server. So either the SVN server is part of the VPN (or on the same server) or you need another port forwarding on any VPN machine in the internal network (probably the server) to the SVN server.

You access the SVN server then with an address in the VPN.

share|improve this answer
Use SSH tunneling. SSH is probably already running, and this is a lot easier to configure than setting up VPN. – SPRBRN Sep 2 '13 at 12:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.