Configuring BitTorrent Support in NAS4Free

One of the most awesome thing about setting up a NAS server in your own home is due to the customization aspect. Since the NAS box is considered “yours”, you pretty much own it and therefore, you can do whatever the heck you want to it, of course provided that its possible. In recent articles, I’ve talked immensely about what a NAS server is and whether or not you will benefit from having one in your own home environment. In another article, I went over the details on how you can actually set one up on a Windows network by using the freely available NAS4Free operating system. A comment made by user Ella requested I write an article on how to get BitTorrent configured along with the ability to stream media files to her PS3 and Xbox 360 device within the NAS4Free operating system. Therefore, in this article, I will go over how to do just that. Because configuring BitTorrent to work within NAS4Free is so much easier than installing and configuring it to be a media streamer, I will first write about the former in this article here while the latter will be in the next article.

Having BitTorrent support in your NAS4Free box can be a godsend. Rather than having to leave your personal computer turned on to download the torrents, you can now have your NAS box to do the downloading for you! Because a NAS server is technically suppose to be running 24/7 anyways in your home environment, you can simply offload the download task to it. Granted, most BitTorrent clients do have the ability for you to configure it so that once all of your torrents have finished downloading, to automatically power down the computer so that you don’t waste electricity. However, if you are planning on transferring that data to your NAS server anyway, why not just let your server do the work instead?

IP Configuration

For most users, a router of some kind usually sits between their home computer and devices from the big ol’ Internet. The good news is that this router in most cases will also act as a simple hardware firewall as well. This protects your home computers from the average snoops trying to probe your network. If you didn’t initiate an outbound communication in the first place, then why should your computer answer back to anonymous inbound traffic? The answer is it shouldn’t! With a firewall in place, it can help automatically drop those packets. The bad news is that there will be times when there is a legitimate purpose for having other users on the Internet be able to communicate with you. In these cases, especially when you need to use a service like BitTorrent, you need to configure something called port forwarding. Port forwarding simply tells your router to allow certain types of traffic through the firewall if it is intended for a specific recipient (computer or other type of device) on your home network. Think of port forwarding as an “exception” list.

The very first thing we need to do is configure our NAS box so that it has the proper IP configuration. In other words, we need to make sure that the server is able to connect out to the Internet. For this to work, we need to assign our server a static IP address (preferably) and the correct gateway and DNS IP address of our home network. With your NAS4Free server booted up, select the number 2 option from the console setup window to configure the network IP address.

Network IP Configuration

In the DHCP box, we select NO. Next, we specify our IP address to use. Here, I will be using the address. For the subnet mask, I accept the default of 24. For the gateway address, in most cases, it will be the IP address of your router interface. For most routers, this will either be or Next up is the DNS address. Again, in most cases, you can get away by using your router IP address. If you have a specific DNS server that you want to use (such as Google’s, specify it here. Finally, we specify NO when asked to configure an IPv6 address. NAS4Free now has all the information it needs and will begin the configuration. In a couple of seconds, you should see the success message.

DHCPIP AddressSubnetGatewayDNSIPv6Success

Port Forwarding

Now with our NAS box configured with the proper address information, we can now create the port forwarding exception within our router! To log inside your router, you simply type in the IP address of your router interface in a browser window (Internet Explorer, Google Chrome, etc). Again, for most home routers, this IP address is most likely either or Once correctly done so, you will be prompted with a user name and password prompt. If this is your first time logging inside your router, you can type in the factory default user name and password. This varies from router models and manufacturers and so a good place to find this information is from this website. Simply specify your make and model of your router and away you go.

It’s very important that you change the default password to something more secure. Make sure to do so once you gain access inside your router!

Now that you are inside the router, find the port forwarding section. We need to create a new entry for our NAS server. The required information is the application name, start and end port to open, protocol to use, and the IP address to forward to. By default NAS4Free uses the port 51413 for its BitTorrent client. If you want to change this port, you can simply specify a different port number here. When we enable the BitTorrent service in the next step within NAS4Free, be sure to change the port number to the one you’ve picked here. Below is a screenshot of how the end result looks like in my Linksys router:

Port Forward

NAs4Free Configuration

At this point, I’m assuming you already have an up and running NAS4Free server box. This includes correctly importing your disks and configuring your mount points to knowing how to create directories and Window file shares. If you are still new to NAS4Free, I highly suggest you go over my previous article where I go over the details on how to get up and running with NAS4Free in a Windows environment.

Alright, now our last step is to configure our NAS4Free box. Before we actually enable the BitTorrent service, I’m going to go ahead and create a directory to store my torrent data. The awesome part about NAS4Free is that you can have it automatically monitor a specific folder for new torrent files and once it finds one, NAS4Free will automatically start downloading the torrent all without your intervention! For my simple demo, I will create a directory called Torrent. I will use this folder to both hold my torrent data as well as the folder to have NAS4Free monitor for new torrent files. I create the new directory within the File Manager web interface:

Torrent Folder

Within the WinSCP utility, I also modify the permission of this folder so that it looks like this:

Torrent Folder Permission

At this point, I can also choose to create a Windows SMB folder share that points to this Torrent folder along with the appropriate permissions but for simplicity sakes, I’m not going to do that. Instead, I will just use the WinSCP tool to dump in new torrent files in this directory. So next, we turn on the BitTorrent service within NAS4Free by heading over to Services –> BitTorrent. Click on the “Enable” check box (top right corner). There are only a couple of configuration settings required to get it working.

If you’ve changed the port number earlier, here is the place to enter in that port number. In the “Download Directory”, we specify which folder the torrent data should be dumped to. I will specify the Torrent directory I’ve created above. In the “Watch Directory” setting, I will also specify the Torrent folder. This is the folder NAS4Free monitors for new torrent files. You can simply leave the rest of the options to their default at this point. Remember to hit the Save and Restart button!

BitTorrent Config

Testing Time!

We now have pretty much everything configured. Open a new tab in your browser and head over to your BitTorrent management interface in NAS4Free. By default, my address is At the moment, the interface should be completely blank as seen below:


If you click on the wrench icon near the bottom and click on the Network tab, NAS4Free will let you know if you’ve configured the port forwarding section correctly or not. If everything looks good, it will tell you that the torrent port is open. This is what you want because from now on, when traffic arrives at this port number, your router is smart enough to route it to your NAS box rather than dropping them.

Opened Port

OK, so now is the moment of truth. I’m going to use WinSCP to drop a simple torrent file into the Torrent directory with a simple drag and drop.

Torrent Test

Voila! As you can see below, the torrent has automatically loaded in the NAS4Free BitTorrent client interface all without me having to manuall start it! If you don’t see the torrent at first, simply press F5 on your keyboard to refresh the screen. You can also see that my download speed is very good (this is as good as it gets for me, trust me, sad but that’s how it is!). This lets me know that everything is working as expected. At this point, you can simply shut off your personal computer because the torrent download all takes place on the NAS box rather than on your local computer.

Torrent Autoload

So as you can see, NAS4Free makes it extremely simple for automatic torrent downloads. Simply download your torrent file and drop it in the specific “Watch directory”. Of course in the real world, you wouldn’t have to use the WinSCP utility like I did here (except in the beginning where you need to configure the folder permissions) because you most likely have gotten that folder mounted as a network drive within your Windows environment. Also, please note also that you can manually open torrent files as well as specify a torrent URL location by clicking on the blue folder icon near the top. Enjoy!

VN:F [1.9.22_1171]
Rating: 5.0/5 (17 votes cast)
Configuring BitTorrent Support in NAS4Free, 5.0 out of 5 based on 17 ratings


  1. Hi Simon

    I’ve set this up on my NAS, everything worked, torrents gets added but they just don’t start downloading, since I am not too familiar with BDSM I wonder if you know how to check why this is not starting, I am guessing my nas is not going “out” to the internet, but don’t know how to check this neither.

    At this moment, I’m albe to access nas from any compute on my home, stream video, music, etc. I set up Kodi as media center on one of the computers accessing the NAS, but torrent just doesn’t work.

    My set up is laptos running flexget to get media and downloading local (laptop) then moving the files to NAS, this is good, but it would be much easier if I can get flexget to use the transmision from my nas box.

    After I’m able to do this, next steps would be to set up flexget on the NAS box.. but I’m taking this one at a time

    in case you wonder what flexget is, you can check it here

  2. Transmission is working but whenever I reboot the NAS4FREE server, all torrents are not shown anymore in the Transmission interface. Is this normal?

    • Hey Eden. I don’t have my NAS4Free installation anymore but during my testings, I don’t remember ever rebooting the server to see if the torrents will still be there or not. I just assumed that it would.

    • If you have the embedded install then you cannot write anything to the installed OS location if you do you will lose it when you reboot. I went through this hassle as well any changes made to files in the underlying OS are lost on reboot.

      I suggest you make a copy of the config files for transmission before rebooting. In advanced command make a shutdown command like this: cp filelocation/filename newFileLocation/filename to save the files for transmission to a non volitile location i.e. another USB drive. Then overwrite the existing config files in a PostInit Command Script like this:
      mv newFileLocation/filename filelocation/filename. I am not sure about the files that you need to backup because I don’t use transmission but they are probably like a .state file etc.

  3. Dayglow says:

    Hello thanks for the article. I’ve managed to set up bittorrent on my nas server and have no problems downloading the torrents. My problem comes when i try to drag and drop the downloaded file out of the torrent folder in to another. For example i download everything in to a folder called torrent and have my films in a folder called movies.. When view the permissions of the downloaded file the owner is transmission. If I make any changes the owner reverts back to tranmission whenever I download a new torrent. I looked for help on this issue and have found posts where people have changed the unmask value to 18 and this still hasnt worked for me.

    • Hey Dayglow. I actually didn’t notice the “Transmission” owner permission until I read your comment and have seen it for myself after rebuilding my test server. I understand your issue but I fail to comprehend how this is a problem for you. For example, are you not able to access the files on your Windows/Mac/Linux machine? What I personally did was set the Torrent folder so that everyone in the Public group had full permissions. In my example, this would be user Alice and Bob both. Yes, the torrent files that I’ve downloaded have a owner permission of the Transmission user account (which I guess is the BitTorrent service name within NAS4Free) but I was still able to access all the files on my Windows computer because I had access to the Torrent folder itself.

      Could you please give me a better description of the exact issue your are having? For example, are you trying to access your torrent files from a device on your network besides your laptop/desktop and aren’t able to due to the permissions? In your example, if the user account you use to access the Movies folder have the required permissions to do so, then I believe it should then have access to the films you’ve put inside it regardless of the Transmission user account privileges placed on those files. At least this is how I interpret it to be with the test I’ve just done.

      • Dayglow says:

        Hello Simon

        I have access to the files and can view them on my laptop and tablet which are connected to my network. My troubles begin when I try to move a file out of the torrent folder and into another folder such as my movie folder. I get a message telling me that I do not have permission from the owner of the file which is transmission.

        Thank you for taking the time to respond

        • Hmmm…I’m still not able to reproduce your problem.

          I downloaded a torrent. Once completed, I was able to move the files to other folders by using both Windows File Explorer and WinSCP without encountering any user permission error. Here is how I have my folder permissions configured if you are curious:

          /mnt/Storage/Torrent – I gave full access to this folder to my Public group. My Public group consists of users Alice and Bob. This folder is configured as my BitTorrent watch folder as well as the folder where the downloaded files go to. This folder is shared on the network.

          /mnt/Storage/Music – Same as the above. The Public group has full access. This folder is shared on the network.

          I dropped a torrent file in the Torrent folder and NAS4Free began the download. Upon completion, I used WinSCP to log in as root. I moved the downloaded files to the Music directory without any errors. On Windows, I logged in as Alice and was similarly able to move the downloaded files from the Music folder to another folder for which she had access too.

          How are your folder permissions configured on your Torrent and Movie folder?

          • Dayglow says:


            I can move the downloaded file using WinSCP but I can’t move the file using windows explorer. My permissions are the same and yours as I mostly followed your guide except I only have one user.

            • I’m sorry to see you’re still having problems with this. Maybe you can try creating a second user within NAS4Free and try connecting as that user when accessing the shares on your NAS4Free server.

  4. I just setup the media streaming! Turns out that the setup is even simpler than BitTorrent. All one needs to do is enable the Upnp in the Services, fill out the Database directory and Content fields, and pick the profile (DLNA in my case) in the drop down menu. I also checked the transcoding option. And voila! Enjoying it already.

    • That was the Fuppes service I was talking about in my streaming article. Users have reported the service to be erratic and crash-prone. I’m going to try it again since you have success with it. I got my PS3 to see the server but no contents was available for me to select. I did pick the PS3 profile so I’m going to try the DLNA selection like you and see if it works.

      • Yes, it is fuppes. I’m still playing with it. As of now, I can see two major problems with it 1) it does not transcode or play mkv, mov & flv files – so far I can only play avi & mp4; 2) it does not refresh the database automatically when new files are added or deleted, one has to go to the GUI and update the database manually by pressing the button.

        So, while the parts that work, work OK, fuppes is nowhere near the standard of PS3MediaServer. And, from what I’m reading on multiple forums, neither is the miniDlna.

  5. Thank you. Just installed following your tutorial and it worked at the first try! Did few modifications though 1) The static IP, DNS, etc – I had that configured right after the initial install – so I did not have to do it 2) Also, I did not have to do the WinSCP (ftp) part with the permissions. It was enough to set the share permissions directly in NAS4Free – again using the GUI. 3) added the blocklist from the and tweaked some of the parameters in the transmission, 4) finally, I mapped a network drive in my desktop computer – and all is set.

    Now, media server pls.

  6. Thank you very much for this. I’ll try it ASAP. And, BTW, it is she!

Speak Your Mind


(humans only, please) *