diff --git a/README.md b/README.md index 22014a753d0b024aed0fa0f2602b94cf626d0176..9a68b43c87ec84b6dc3cd0d37cfa351267894f5b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ # computer resources -The Idea is to find help here with your computer/technical problems \ No newline at end of file +The Idea is to find help here with your computer/technical problems + + + +# VPN - VPN + +**Problem: Connection from one VPN to another VPN for file transfer.** +**Solution:** +You should be able to use an SSH tunnel. + +Assuming you're trying to transfer a file from a remote computer ("remote") to your local computer ("local"), establish the tunnel via the third computer ("gateway") by typing this on your local computer: + +`ssh -fNL 12345:remote:22 gatewaylogin@gateway` +Then you can run an unlimited amount of SCP commands on this tunnel (still typing on your local computer): + +`scp -P 12345 remotelogin@localhost://path/to/remote/file /local/path/where/you/want/file` +I just tested this on my network, and it worked perfectly. + +The above method is fine if the remote network is secure, but if it is not secure, you'd need to establish a tunnel between local and gateway, and another tunnel between gateway and remote, linking the two by a common port number.