First example
Suppose that we have two remote hosts:
host1.cloud1.example.com
: running a Web service on TCP port 80host2.cloud2.example.com
: running another Web service on TCP port 80
These hosts can be logged in from the local host via SSH. However, these hosts are running on different clouds and they are NOT mutually IP-reachable.
The following example allows host2
to connect to host1
as 127.0.42.101:8080
,
and allows host1
to connect to host2
as 127.0.42.102:8080
using NoRouter.
Step 0: Install norouter
The norouter
binary needs to be installed to all the remote hosts and the local host.
See Download.
The easiest way is to download the binary on the local host first, and then use
norouter show-installer | ssh <USER>@<HOST>
to replicate the binary.
Step 1: Create a manifest
Create a manifest file norouter.yaml
on the local host as follows:
Step 2: Start the main NoRouter process
If you are using macOS or BSD, you may see “bind: can’t assign requested address” error. See Troubleshooting for a workaround.
Step 3: connect to host1 (127.0.42.101)
Confirm that host1’s Web service is shown.
Note:
Make sure to connect to 8080, not 80.
Step 4: connect to host2 (127.0.42.102)
Confirm that host2’s Web service is shown.