Search code examples
svnserverubuntu-serverubuntu-15.10

Access from LAN and remotely to the same svn server


I have my own "server" (old laptop) which I use for SVN, Samba and some other things. I own another Laptop which I sometimes use from my home and sometimes outside. Right now, I can sync via SVN locally and it works great. I was wondering if there's any way to be able to sync when I'm outside without loosing the possibility to sync when I'm home.

I actually sync via svn+ssh on a non standard port and I'd like to keep it that way.

After doing some research, it seems the best option I've found is setting up a VPN server in order to "get inside the LAN from outside", but I've been following plenty of tutorials and I couldn't make it work for my Ubuntu Server 15.

I've also found the svn-sync command, but as far as I've read it wont do what

Thanks!


Solution

  • Common answer: "It depends"

    1. How does you connect to WAN (i.e you have one interface for all or at least WAN+LAN)
    2. Do you have direct connection to WAN or NAT?

    Anyway, you have to have SVN (ssh) to listen on interface, which can be reached from external world (IP of remote client doesn't play game in this case)