xtunnel
xtunnel is a simple tunneling tool that allows you to create a tunnel between your local machine and a remote server.
Installation
You can download binary files for each platform from the latest releases.
Problem
Let’s say you want to create a tunnel from your local machine to a remote server. But you don’t have access to the remote server, because it’s behind a firewall.
Target – The target server that you want to create a tunnel to.
Master – The master server that you want to create a tunnel from.
In this case, you can create a tunnel from your local machine to a master server, and then create a tunnel from the master server to the target server.
Examples
Scheme
(no_access:8080) -- (has_access:8080) -- | Firewall | -- | Gateway | -- (example.com:80)
Usage
- Create a tunnel from
example.com
to the serverhas_access
.
$ xtunnel start -m has_access:8080 -t example.com:80 -p tcp
- Create a tunnel from
has_access
to the serverno_access
.
$ xtunnel start -m no_access:8080 -t has_access:8080 -p tcp
Now you can access example.com
from no_access
.