How to Install PrivateBin on Your Synology NAS

How to Install PrivateBin on Your Synology NAS

PrivateBin is a minimalist open source web service that allows you to create a paste of your text output and bind it to a single URL that you can then share. This method is perfect for sharing private information inside a Facebook chat, WhatsApp chat or any other IM platform, email, etc. The end-user would just click on the link and get the output in a browser. The information will be automatically deleted/destroyed at a time of your choice: as soon as the receiver reads it, after a few minutes, after a week or several months etc. Data is encrypted and decrypted in the browser using 256bit AES in Galois Counter mode. In this step by step guide I will show you how to install PrivateBin on your Synology NAS using Docker.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

1 install docker synology dsm

  • STEP 3

Follow my step by step guide on how to activate your synology.me DDNS. If you already own a synology.me DDNS, skip this STEP.

  • STEP 4

Go to File Station and open the docker folder. Inside the docker folder, create a new folder and name it pastebin. Follow the instructions in the images below.

1 Install PrivateBin Synology NAS set up filestation

2 Install PrivateBin Synology NAS set up filestation

  • STEP 5

Right click on the pastebin folder, then click on Properties. Follow the instructions in the image below.

3 Install PrivateBin Synology NAS set up filestation

  • STEP 6

After you click Properties, a new window will open. Go to the Permission tab then click Advanced options and select Make inherited permissions explicit. Follow the instructions in the image below.

4 Install PrivateBin Synology NAS set up filestation

  • STEP 7

Now, select Everyone then Edit. Follow the instructions in the image below.

5 Install PrivateBin Synology NAS set up filestation

  • STEP 8

Set up Read and WriteEveryone” permissions then click OK.

6 Install PrivateBin Synology NAS set up filestation

  • STEP 9

After you click “OK“, remember to check the option “Apply to this folder, sub-folders and files“ then click OK. Follow the instructions in the image below.

7 Install PrivateBin Synology NAS set up filestation

  • STEP 10

Open the Docker Package. From the Docker Console, go to Registry and search privatebin. Look for privatebin/nginx-fpm-alpine and select it, then click Download or double click on it. You will be prompted to Choose Tag, select latest. Follow the instructions in the image below.

1 Install PrivateBin Synology NAS set up docker

  • STEP 11

After you click “Select”, the download process of the PrivateBin docker container will start. You can click on Image on the Docker Console to see the download progress. The current container is about 36 MB. Follow the instructions in the image below.

2 Install PrivateBin Synology NAS set up docker

  • STEP 12

After the download is completed from the Docker Console, go to Image, then select the privatebin/nginx-fpm-alpine:latest container. Click Launch. Check “Execute container using high privilege”, then click Advanced Settings. Follow the instructions in the image below.

3 Install PrivateBin Synology NAS set up docker

  • STEP 13

Select Enable auto-restart. Follow the instructions in the image below.

4 Install PrivateBin Synology NAS set up docker

  • STEP 14

Next tab – “Volume“. Select Add Folder. Choose the pastebin folder then click Select. Follow the instructions in the image below.

5 Install PrivateBin Synology NAS set up docker

  • STEP 15

After you click Select, type /srv/data inside Mount path for the pastebin folder. Follow the instructions in the image below. Your Volume will look like this:

6 Install PrivateBin Synology NAS set up docker

  • STEP 16

Next tab – “Network“ move forward without doing anything (no action needed).
Next tab – “Port Settings“ on Local Port area type 8092 instead of Auto, then click “Apply“. Follow the instructions in the image below.

7 Install PrivateBin Synology NAS set up docker

  • STEP 17

After clicking “Apply“ on STEP 16, the screen below will open. Click “Next“. Follow the instructions in the image below.

8 Install PrivateBin Synology NAS set up docker

  • STEP 18

After clicking “Next“, the screen below will open. Select “Run this container after the wizard is finished” then click “Apply“. Follow the instructions in the image below.

9 Install PrivateBin Synology NAS set up docker

  • STEP 19

Your container will look like this:

10 Install PrivateBin Synology NAS set up docker

  • STEP 20

Go to Control Panel / Application Portal / Reverse Proxy. Click on Create. Follow the instructions in the image below.

1 Install PrivateBin Synology NAS set up SSL reverse proxy

  • STEP 21

The window below will open. Follow the instructions in the image below.

On General area set the Reverse Proxy Description and type in PrivateBin. After that, add the following instructions:

Source:
Protocol: HTTPS
Hostname: yourname.synology.me
Port: 8093

Check Enable HTTP/2

Destination:
Protocol: HTTP
Hostname: localhost
Port: 8092 (Or the port you have previously created on STEP 16 ).

2 Install PrivateBin Synology NAS set up SSL reverse proxy

  • STEP 22

Log into your router and go to the Port Forwarding area. Select your NAS Local IP Address and port forward port 8093 both TCP/UDP. Remember that every router has its own interface design. At the moment I am using a TP-Link router. Follow the instructions in the image below:

3 Install PrivateBin Synology NAS set up SSL reverse proxy

  • STEP 23

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 24

Open your browser and type in https://yourname.synology.me:8093 then paste in your text, select the expiration time, burn after reading, optionally set up a password, and click Send. Follow the instructions in the image below.

4 Install PrivateBin Synology NAS set up SSL reverse proxy

  • STEP 25

You should now see your paste text with a really long green alphanumerical code. Copy it and send the link to whomever you want.

5 Install PrivateBin Synology NAS set up SSL reverse proxy

  • STEP 26

In my case this link and document will expire/be destroyed in 4 minutes.

6 Install PrivateBin Synology NAS set up SSL reverse proxy

Note: Which is the best: Tornote or PrivateBin? For sure PrivateBin.
Note: If you need more information about PrivateBin, you can take a look at their official website.
Note: Find out how to update PrivateBin container with the latest image.
Note: Instead of a free DDNS you can also set up your own domain name using Reverse Proxy.
Note: At STEP 21, instead of port 8093 you can use the port of your choice, but remember to port forward it (correctly) in your router following STEP 22.

This post was updated on Saturday / September 12th, 2020 at 9:56 AM