Follow

Configuring a weavedconnectd daemon to proxy to another device

Please note: weavedconnectd is not recommended for new designs.  This information is made available to support users who have already deployed weavedconnectd.

You can run a daemon on one device that will make a remote.it connection to a different device's tcp server on the same LAN.  In order to do this, the target device should have a known IP address.  This can be accomplished by setting the device to use a static IP, or some routers offer a "DHCP reservation" or similar feature which will use the same IP address for a given MAC even though it is still using DHCP and you don't have to change anything on the client.

In order to use a daemon running on a Raspberry Pi to access Remote Desktop on a Windows PC at 192.168.1.153:

Be sure to install remote.it on your Pi.

Run sudo connectd_installer on the Raspberry Pi.  Log in, and once you are at the Protocol Selection Menu, select option 4 for a generic tcp connection.

Call the protocol pxy-rdp.

Set the port to 3389.

Answer "n" to whether the service uses a browser.

When you return to the Installed remote.it Services menu, you will see "WARNING-NONE" in the Service column.  This is normal as the service is not running on the Raspberry Pi.

Exit the installer script.

Now edit the enablement file which was created in /etc/weaved/services.  Following this example,

sudo vi /etc/weaved/services/Weavedpxy-rdp-3389.pi

add the line:

proxy_dest_ip 3389

below the encoded block.  Save the file, then restart the daemon with:

sudo /usr/bin/Weavedpxy-rdp-3389.sh restart

If you are configuring a proxy for a Service Attachment that is already on your Pi and uses the same port, you will need to configure the second Attachment as a custom tcp connection.

For example, suppose you already have a Service Attachment for ssh on your Pi and you wish to configure a Service Attachment Proxy for ssh on port 22 to another device on your remote LAN.

Set the first one up using the ssh selection of the Protocol Selection Menu.

For the second one, follow the procedure shown here:

=========== Installed remote.it Services ===============
Protocol Port   Service       remote.it Service Name
------------------------------------------------------------
SSH         22       sshd           OSMC-ssh
HTTP      8080   kodi.bin     OSMC-Remote-UI
------------------------------------------------------------
Device Name: OSMC-Pi
=============================================

********************** Main Menu ************************

1) Attach/reinstall remote.it to a Service
2) Remove remote.it attachment from a Service
3) Remove all remote.it attachments, then exit
4) Exit

*******************************************************

Please select from the above options (1-4):
1

=========== Installed remote.it Services ===============
Protocol Port   Service       remote.it Service Name
------------------------------------------------------------

SSH        22       sshd           OSMC-ssh
HTTP     8080   kodi.bin     OSMC-Remote-UI
------------------------------------------------------------

Device Name: OSMC-Pi
============================================= 

*********** Protocol Selection Menu ***********

1) SSH on port 22
2) Web (HTTP) on port 80
3) VNC on port 5901
4) Custom (TCP)
5) Return to previous menu

***********************************************

You can change the port value during install

***********************************************

Please select from the above options (1-5):
4
You have selected: 4.


Does this protocol use a web browser (e.g. HTTP on port 8080 vs. 80) [y/n] n
Please enter the protocol name (e.g., ssh, http, nfs):
ssh-proxy
Please enter your desired port number (1-65535):22
We will attach a remot3.it connection to the following service:

Protocol: ssh-proxy
Port #: 22
........

Enter a name for this remote.it service (e.g. SSH-Pi).
This name will be shown in your remot3.it Service List.

Only letters, numbers, underscore, space and dash are allowed.

OSMC-ssh-proxy
.
Registering OSMC-ssh-proxy.......

=========== Installed remote.it Services ================
Protocol Port   Service       remote.it Service Name
------------------------------------------------------------

SSH         22       sshd           OSMC-ssh
HTTP      8080   kodi.bin     OSMC-Remote-UI
TCP         22       sshd           OSMC-ssh-proxy

------------------------------------------------------------
Device Name: OSMC-Pi
==============================================

********************** Main Menu *************************

1) Attach/reinstall remote.it to a Service
2) Remove remote.it attachment from a Service
3) Remove all remote.it attachments, then exit
4) Exit

**********************************************************

Please select from the above options (1-4): 4

-----------------------------------------------------------------

The enablement file you need to edit is /etc/weaved/services/Weavedssh-proxy22.conf.  Until you edit this enablement file and restart the daemon, this Service Attachment will connect to the sshd server on the Pi running the daemon.

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.