I've spent some time figuring out how to install talescale to OMV. Sure, there are tutorials, but they were too complicated for me being a nub. So I've made the guide, hope it will be useful for other nubs.
Guide
I
1. Make an account at tailscale.com.
2. Install tailscale app to windows pc downloading installation file from tailscale.com download section.
3. Launch tailscale app, it will be in the right toolbar corner hidden. Click on it and add windows pc to tailscale chain.
Note: all tailscale tutorials say that you can get keys for your other devices through your admin panel on tailscale website after logging in. BUT admin panel will become available only AFTER you will add your second computer or phone to the tailscale chain.
II
To get tailscale on OMV there are two possibilities: A) install tailscale directly on OMV; B) install tailscale into compose container.
A) Install Tailscale on OMV via ssh through putty or via c-term in OMV GUI.
Connect to OMV via putty with root permisions, or via c-term with user belonging to group _ssh, cterm, sudo (user can be added to groups editing it in Users panel in OMV GUI).
Installation is done manually - on taiscale download page select Linux and scroll down to Manually install. Select latest stable Debian distro. Copy the codes lines and paste them into terminal or c-term windows.
If the first pasted command outputs error - curl is not installed into OMV, run command:
Then one by one paste and execute all other commands as per tailscale.com download for Linux page instructions.
After installation there will be lines in terminal window:
Paste this login link into your PC browser window and login into tailscale.com. Now on PC right taskbar corner you can click on tailscale and connect PC to OMV.
B) Install tailscale into compose.
For that you need to be able to access your tailscale account administration page.
1. On your tailscale account admin page generate a key:
>>Settings>>scroll down>> Personal settings | Keys>> Generate auth key...
Copy the key to .txt file
The key looks like that:
tskey-auth-kSBx53g7dN33CNTRL-wnFKa1WE6g2bzdCgJHSSg2K2v5sRa6gi4
2. In OMV go to:
>> Compose >> Files >> + >> Add from example >> tailscale
3. Edit - change default compose file code to the code below.
services:
tailscale:
image: tailscale/tailscale:stable
container_name: tailscaled
environment:
- TS_AUTHKEY=tskey-auth-kSBx53g7dN11CNTRL-wnFKa1ME6g2bzdCgJHSSg2K2v5xLq6gi4 # Replace with your auth key
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=0 # Disable userspace networking, use kernel networking
- TS_HOSTNAME=REPLACE_WITH_THE_NAME_YOU_WANT # Specify the name you will see in tailscale panel
volumes:
- REPLACE_WITH_YOUR_SHARED_FOLDER_ABSOLUTE_PATH/var/lib/tailscale:/var/lib/tailscale # State data will be stored in this directory
- /dev/net/tun:/dev/net/tun # Provide TUN device
network_mode: host # Use host network
cap_add:
- NET_ADMIN
- NET_RAW # Required network permissions
restart: unless-stopped # Automatically restart if the container crashes
Display More
Now on PC right taskbar corner you can click on tailscale and connect PC to OMV.
Final remarks
Both methods worked for me and I am able to connect to OMV using my laptop internet connection through mobile phone hotspot.
All credits for compose code go to Zafkiel.