Open command prompt (or a terminal if you’re on Linux), and log in to the server through SSH. This is required if you want to make the server listen to connections coming on ports below 1024, so-called privileged ports. Try to set up the server in such a way that you get to log in to the root account directly, preferably with an SSH key, as it’s more secure. Let’s say your remote server accepts internet traffic at www. Now that you have reverse SSH port forwarding set up, next step is to forward traffic to the SSH tunnel. Prepare Virtual Private Server to Tunnel ConnectionsĬreate a Virtual Private Server with your favorite provider, like DigitalOcean, Linode, Vultr, or whatever else you prefer. The most important thing is to choose a server location that is as close to you as possible to minimize network latency. /1 /createsshtunnel.sh > tunnel.log 2>&1 To troubleshoot any problems in this you can view the tunnel.log file. Read the tutorial about Windows 10’s OpenSSH client if you’re not already familiar with it. In fact, for this tutorial you will actually use this built-in client to set up the tunnel. There’s no need to use PuTTY anymore to initiate SSH connections. UDP tunneling is possible, but with some “hacks,” which may be the topic of a future tutorial. UDP is used by some (not all) game servers, for example Counter Strike (port 27015/UDP). TCP is used by things such as web servers (port 80/tcp). If you ssh with a reverse tunnel from your rpi to your laptop (the ssh connection0 then a port will be open on the laptop so that when you connect to said port of the laptop (either from the laptop itself or another computer that has access to the laptop, it really depends on how you try to set up the reverse. Note: This only works for redirecting TCP network traffic. That’s way cheaper than the monthly bill for a server with 6TB of space. You only have to pay a monthly electricity bill and less than $5/month for a virtual private server. You get the privacy of having those files on your home server, and then you can buy a 6TB hard drive to get all the space you need. Imagine you create a NextCloud server to upload/synchronize your files. The server will receive incoming connections and redirect them to your computer through what is called a “reverse SSH tunnel.” This way you can set up any kind of home server, with very small monthly costs. Anything will work, even if it has less than 512MB of RAM, as all it has to do is redirect network traffic. You can bypass all of these restrictions with the help of a virtual private server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |