Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Would it be possible to set up a VPN using tinc as the VPN software on Ubuntu or Windows 7, and then connect from a computer (from outside the local network) to the computer hosting the VPN, in order to interact with a Git repository hosted on the VPN computer?

enter image description here

share|improve this question
    
Yes, I believe that is the kind of setup I am looking for. Thanks for shortening my answer, also. Do you know if that kind of setup would be possible without forwarding ports? –  Kevin Gurney Jul 31 '11 at 18:54
    
I embedded the image, so it's easier to understand for others. You don't need port forwarding if you connect to the VPN, as your machine will then act as if it was within the LAN. –  slhck Jul 31 '11 at 19:03
    
Does a VPN require port forwarding? –  Kevin Gurney Jul 31 '11 at 19:04
    
Well, depends on which VPN you want to set up, where you want it and what equipment you have in your LAN. Can you edit your question and supply some additional information? (For example, which operating systems involved, which router you would use, if your VPN hosting machine is the router/firewall, et cetera). –  slhck Jul 31 '11 at 19:08
    
The software running the VPN would be tinc probably, and I suppose the operating system running the VPN would be either Windows 7 or Ubuntu most likely. The router I am using is a Cisco Valet Plus wireless router. –  Kevin Gurney Jul 31 '11 at 19:12
show 2 more comments

1 Answer

up vote 2 down vote accepted

Kevin, it should be totally possible to do what you're describing, assuming that at least one side of the VPN has the ability to forward ports in. If both VPN endpoints are behind one-to-many NATs then you're going to need something more than merely tinc.

If, however, you can forward ports in on one of your endpoints then you're in luck. Here's a write up that I put together explaining how to get tinc working on Ubuntu, Windows 7 and Centos. This covers all of the tinc setup but not how to establish port forwarding.

Once you have tinc setup and working on both ends, you'd simply make your git calls to the VPN network IP (something like 172.20.20.100 in my examples) :

git clone git@172.20.20.100:reponame.git
share|improve this answer
    
Unfortunately, forwarding ports is not an option for me. However, you still answered my question accurately and cleared up my confusion about how such a networking setup would work. Thank you. –  Kevin Gurney Mar 6 at 14:59
add comment

Your Answer

 
discard

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.