Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have built a freenas server. It's behind a router and i a modified a NAT setting that allowed the server to be assigned with the router's public IP adress.

Now, i get an error when I connect to it over this IP adress in a system outside the local network.

I can connect and use it properly when I use it's local hostname in the local network.

Any explanations?


Windows gives the error "A device attached to the system is not functioning" when I try to map a folder to \\\data.

Some screenshots !!

share|improve this question

As port 445 is not in the list below, it seems that samba is not listening on your public IP address (or for that matter) or that port 445 is filtered. Windows falls back to WebDAV IIRC, but that seems not to be enabled too.

% nmap -F

Starting Nmap 6.00 ( ) at 2013-02-04 12:12 CET
Nmap scan report for (
Host is up (0.11s latency).
Not shown: 70 filtered ports, 26 closed ports
22/tcp  open  ssh
80/tcp  open  http
111/tcp open  rpcbind
443/tcp open  https

% nmap -p445

Starting Nmap 6.00 ( ) at 2013-02-04 12:15 CET
Nmap scan report for (
Host is up (0.068s latency).
445/tcp filtered microsoft-ds
share|improve this answer
Now, how i do open port 445. Considering that I'm new to this, how do i fix the problem? – mahamed91 Feb 4 '13 at 13:35
Run sockstat -4 | more as described here, there should be a line containing *:445. You did set a default gateway? You didn't mess with pfsense? There's no firewall in the way? – fuero Feb 4 '13 at 13:54
The line exists, what's the problem?I didn't modify any NAS Settings. – mahamed91 Feb 5 '13 at 17:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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