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.
Install Docker via Synology “Package Center”.
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.
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.
Note: Be careful enter only lowercase, not uppercase letters.
Right click on the pastebin folder, then click on Properties. Follow the instructions in the image below.
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.
Now, select Everyone then Edit. Follow the instructions in the image below.
Set up Read and Write “Everyone” permissions then click OK.
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.
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.
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.
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.
Select Enable auto-restart. Follow the instructions in the image below.
Next tab – “Volume“. Select Add Folder. Choose the pastebin folder then click Select. Follow the instructions in the image below.
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:
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.
After clicking “Apply“ on STEP 16, the screen below will open. Click “Next“. Follow the instructions in the image below.
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.
Your container will look like this:
Go to Control Panel / Application Portal / Reverse Proxy. Click on Create. Follow the instructions in the image below.
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:
Check Enable HTTP/2
Port: 8092 (Or the port you have previously created on STEP 16 ).
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:
Go back to STEP 1 or you will deal with karma 🙂
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.
You should now see your paste text with a really long green alphanumerical code. Copy it and send the link to whomever you want.
In my case this link and document will expire/be destroyed in 4 minutes.
Note: You can also use this method to run container via HTTPS.
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: How to Free Disk Space on Your NAS if You Run Docker.
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 Monday / May 17th, 2021 at 11:49 AM