Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to be able to set up and access a NAS securely via an internet connection. I would like to use an existing linux server I own, so essentially I am looking for recommendations for which software would be ideal.


locked by HopelessN00b Dec 5 '14 at 8:31

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

What clients will you be using to access your NAS? How far away from your machine will they be? Do you want to be about to mount your NAS remotely, or just use it for backup via rsync, etc? –  Dave Cheney May 10 '09 at 12:05
Ideally, I would like the seamlessness of pogoplug.com, but without having to rely on a third party. Perhaps a WebDAB interface would be nice as it would appear as another drive under windows or mount point under *nix –  Martin OConnor May 10 '09 at 22:47

3 Answers 3

Try FreeNAS. Don't use SAMBA, because it's a very chatty protocol, and it's not good for Internet access.

If you can, put it behind a firewall (IPCop is a good choice), enabling only the protocols you need (I'd suggest FTP or SFTP over a non-standard port). If you can't here is an iptables sample config that you can use on the same box (save it to /etc/iptables.up.rules for example):


#  Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0
-A INPUT -i lo -j ACCEPT
-A INPUT -i ! lo -d -j REJECT

#  Accepts all established inbound connections

#  Allows all outbound traffic
#  You can modify this to only allow certain traffic

# Allows FTP from anywhere (modify port as necessary, or add more services)
-A INPUT -p tcp --dport 21 -j ACCEPT

#  Allows SSH connections
-A INPUT -p tcp -m state --state NEW --dport 22 -j ACCEPT

# Allow ping (not necessary)
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT

# Reject all other inbound - default deny unless explicitly allowed policy


To use it:

$ iptables-restore < /etc/iptables.up.rules

To automatically load the rules on network up add the following to your network configuration file, after the loopback definition (/etc/network/interfaces on Debian/Ubuntu):

pre-up iptables-restore < /etc/iptables.up.rules
Why the downvote? –  Ivan May 10 '09 at 17:54
+1 but i'm not marking as accepted because I want something to run on an existing ubuntu install, not dedicate the entire box to NAS –  Martin OConnor May 13 '09 at 12:05
What about a VM inside that box? –  Ivan May 13 '09 at 13:28

You could also use a web page based interface which connects over HTTPS. I know my NAS device from THUS has such a capability but dont know what Linux OS equivalents offer.

Also, with IIS you can traverse directorys, if Apache does the same then slap a HTTPS on it and away you go though that would only aloow downloads not uploads.

Otherwise a point to point VPN or VPN server would achieve a full 'network' experience.

why the down vote? –  Toby Mills May 11 '09 at 4:23

Most secure would be an VPN connection (ssh, OpenVPN, poptop...) and tunneled NAS (NFS, samba, iscsi...) protocol. Anything goes here.

But most easy and secure would be sshfs http://en.wikipedia.org/wiki/Secure_Shell_Filesystem , but it is not very Windows friendly.

There are 3rd party tools for Windows such as Expandrive, which will essentially give you sshfs-like access to a remote server. –  Dave K May 10 '09 at 15:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.