![]() In our case, as all of the nodes are within 10.0.0.0/8, we're assigning it an IP address in that range. Here we'll configure the IP address within tinc for your NAS. The file above basically calls your Synology NAS remote-nas and tells it to connect to the ams node on start. ![]() This is the main configuration file, setting the name for your Synology server and telling it to which nodes it should connect to. Now we'll have to create the 3 core configuration files in the tinc folder. You should now see your keys in the tinc folder you created before. Please enter a file to save public Ed25519 key to : ![]() Please enter a file to save private Ed25519 key to : Please enter a file to save public RSA key to : Please enter a file to save private RSA key to : If all goes well, you'll see this: Generating 2048 bits keys: For that, you'll have to adjust the volume definition in the command above. Keep in mind that these are the file paths within the container, so changing them from default will not work. When asked for input, leave this default. Sudo docker run -it -rm -volume /volume1/docker/tinc:/etc/tinc jenserat/tinc generate-keys In order to generate these, simply run the following command: Now that we've got a folder to store our configuration files, we need to generate keys for the Synology server. Keep this in mind in case your folder differs as you'll need to change some of the commands below. In the next steps we'll be using this folder which if you have a single volume will be /volume1/docker/tinc. Simply create a folder called tinc in here which we'll use to store our configuration files. Setup the configuration folderĪssuming you have Docker installed on your Synology NAS, you should have a folder on your volume called docker. Configuring tincĪs with every tinc setup, it'll need configuration files to run and connect to your network. That way, I would be able to access it as if it were on my local network and not have to worry about any port forwarding.Īfter a bit of research, I found a great little Docker container that would just run tinc: Īs such, the goal here will be to connect your Synology NAS to your tinc network using a Docker container. So, as I already had a network up and running, it was just a matter of having the Synology NAS become a host on my tinc network. ![]() You can find my prior posts on tinc here. As you may know, I'm quite a big fan of tinc, the mesh networking VPN. However, hosting a powerful NAS at a friend's place and making sure port forwarding is set up correctly so that you can access your NAS at all times as well as ensuring it doesn't become a target for attacks from the outside is a bit more tricky.Įnter tinc. ![]()
0 Comments
Leave a Reply. |