Tailscale?

Tailscale?

Postby fun3883 » Fri Oct 25, 2024 11:36 am

Hello,
I'm not familiar yet with Tailscale, but I'd like, if possible, to use it to secure the access/synchronize my remote NAS (2big2) with my local Synology NAS.
For now am simply using a basic PPTP tunnel, but that's not so secure.

Do you have an idea if Tailscale would work on 2big2 (using fvdw 18.2).

Thank you!
Fab
fun3883
Donator VIP
Donator VIP
 
Posts: 12
Joined: Thu Apr 27, 2023 12:43 pm

Re: Tailscale?

Postby fvdw » Sat Oct 26, 2024 3:37 pm

to be honest I don't know but a quick read learned that there is support for synology 212 nas, that has same cpu as 2big2.
Next week I will have a more closer look
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Tailscale?

Postby fvdw » Tue Oct 29, 2024 8:27 pm

good news I got tailscale working on our firmware, for seagate personal cloud which gas an armada 370 cpu I can use latest tailscale version 1.76.1 but on the kirkwood devices, such as 2big2, I need to use 1.58.2 due to a bug. This older version has some vulnerabilities but works ok, I will try if I can find the bug and compile a newer version.
I must say a nice program this tailscale, worth to add as feature, I will post packages after investigation the bug issue
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Tailscale?

Postby fun3883 » Sun Nov 03, 2024 1:33 pm

Thank you so much for the investigation @FVDW !!

I will keep monitoring the forum for the post of the package ;)
fun3883
Donator VIP
Donator VIP
 
Posts: 12
Joined: Thu Apr 27, 2023 12:43 pm

Re: Tailscale?

Postby fvdw » Tue Nov 05, 2024 8:32 pm

I found a solution for the bug. Need to test it, but it will come soon
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Tailscale?

Postby fvdw » Wed Nov 06, 2024 9:00 am

Attached tailscale-1.76.1 working on my arm5 devices
To install it put the zip file on your nas in the "fvdw" shared folder. (this folder is required to install addons)

In the firmware web interface open the firmware update menu and choose upload patch
Select the file fvdw-sl-all-tailscale-1.76.1-arm5-6nov2024.zip and fill in as control code : shell
and click accept

The patch should install now.
If ok connect with ssh client and to run tailscale give command
Code: Select all
tailscaled >/dev/null 2>&1 &

This should start the tailscale daemon.
If you want to see the output it gives then only enter tailscaled
In that case you need a second ssh terminal to give next command

If our tailscaled daemon is running nicely then run this command
Code: Select all
tailscale up

It will respond with a web browser address you need to use in your browser to add the device to your tailscale network
I assume you know what to do next

Please test and let me know if it works.
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Tailscale?

Postby fun3883 » Thu Nov 07, 2024 7:38 am

Thanks FVDW !

"Unfortunately", I was not expecting such a quick feedback :lmao
My remote 2big2 NAS is located in France and powered ON only when I ask my brother for synchronizing my DS215j here in Finland.

I won't be able to test in the coming days, but as soon as I can, I will keep you posted :thumbup

Have a wonderful day!
Fab
fun3883
Donator VIP
Donator VIP
 
Posts: 12
Joined: Thu Apr 27, 2023 12:43 pm

Re: Tailscale?

Postby fun3883 » Mon Nov 18, 2024 1:23 pm

Hi,

Seems that I won't be able to test shortly, as my remote 2big2 NAS is behaving weird.

I wonder if there is a problem with its HDD (1 single HDD setup) or filesystem corrupted.
- Webserver does not start anymore (boot.log file shows failed)
- SMB shows the remote shared folders from 2big2 in Syno File Station, but when trying to access them I get timeout
- rsync partly working (rsync: readdir("/volume1/NetBackup/2BIG2-REMOTE/photo/."): Resource temporarily unavailable (11) - IO error encountered -- skipping file deletion)
- SSH works perfectly, I can navigate to the shares that SMB cannot display
- PPTP tunnel can be established, ping is stable without packet loss
- badblocks did not find problems

That setup has been working fine, without any modification since then.
Any tips is welcome (and let me know if I should create a dedicated thread for this)!
Thanks,
Fab
fun3883
Donator VIP
Donator VIP
 
Posts: 12
Joined: Thu Apr 27, 2023 12:43 pm

Re: Tailscale?

Postby fvdw » Tue Nov 19, 2024 9:16 pm

could be that the partition with the firmware has a problem. As this partition is mounted you cannot run e2fsck to check the file system. The 18-2 firmware has a possibility to check the partition before it is mounted. I need to look how to set the flag to do a file check manually.
you can force checking system partions by creating these files and after that reboot the nas.
Code: Select all
touch /etc/sda5-scan
touch /etc/sda2-scan
touch /etc/sda1-scan
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Tailscale?

Postby fun3883 » Thu Nov 21, 2024 11:30 am

Steps above were done, but am not sure if there is any place I should check for some resulting log, apart from boot.log.
Subset of it, for the fsck:
Code: Select all
Warning: Do not try to mount first configuration partition for running before e2fsck on it!
Configuration partition is not mounted !
We run a fs scan before a new mount attempt...
/dev/sda5: recovering journal
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda5: 104/49152 files (6.7% non-contiguous), 8085/196608 blocks
configuration partition is now rightly mounted !


but starting webserver still fails:
Code: Select all
 * Initializing Timezone...                      [ OK ]
 * Starting web server...                                [ Fail ]
 * Starting mount of internal USB ...
 * Finishing mount internal USB ...      [ OK ]


The excellent news is that your solution seem to have solved the rsync issues, as I was able to run it successfully for all the shared folders.

Now, is there a way to install tailscale package without going via the web interface?

Thank you!!
Fab
fun3883
Donator VIP
Donator VIP
 
Posts: 12
Joined: Thu Apr 27, 2023 12:43 pm

Next

Return to Lacie 2Big Network vs2

Who is online

Users browsing this forum: No registered users and 9 guests