Falka's profile picture

Published by

published

Category: Web, HTML, Tech

Setup Syncthing with Tailscale for P2P File Synchronisation!


Preface: This is my first blog post, please don't be mean :c, I'm not a professional and everything here is to be taken with a spoonful of salt.

Introduction

Tailscale is a private Wireguard mesh network to safely and quickly connect devices together.

Syncthing is a self-hosted alternative for  file synchronisation.


In this blog post I will explain how to setup these two services to work together


Tailscale

To setup Tailscale, you need to create a Tailscale account here and a Tailnet


Once the initial Tailnet setup is completed, open a terminal in your distribution of choice and run the quick install command given on the Tailscale website

curl -fsSL https://tailscale.com/install.sh | sh 

This should work on most Linux distros.

Once the install process completes, go ahead and run:

sudo tailscale up

Open the link that shows up on the terminal in any web browser, and click connect.

And tadaaa, you've added your first device to the Tailnet !! :3
Do this process for every other device you want to add.

Syncthing

Installing Syncthing depends on your Linux distribution, so I recommend going online and searching for the specific instructions :3

In my case, I can use Arch Linux's package manager to install it:

sudo pacman -S syncthing

To run Syncthing, you'll either need to create a systemd service, or you'll need to start it up manually.

To create a systemd service you can follow this guide here

Once Syncthing has been started, you can open the web app on any browser at this address:
http://127.0.0.1:8384/

Once you're in the web app, click on the "Actions" button, then "Settings", and then "Connections" and disable "Local Discovery" and "Enable relaying", once that is done, you can go ahead and add a device with the "Add remote device" button, copy the device ID to the "Device ID" field.

Then, move over to the "Advanced" tab, and on "Addresses" insert tcp:// with the device name you can see in the Machines section of the Tailscale Admin UI.

For example, mine will be "tcp://server".

Then go ahead and add the device, configure folders, etc...

YOU'RE DONE NOW!!!! :3


0 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )