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

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?

IP: 86.157.45.123

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

Some screenshots !!

http://i.stack.imgur.com/taVVT.png

http://i.stack.imgur.com/2pzr4.png

share|improve this question
add comment

1 Answer 1

As port 445 is not in the list below, it seems that samba is not listening on your public IP address (or 0.0.0.0 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  86.157.45.123

Starting Nmap 6.00 ( http://nmap.org ) at 2013-02-04 12:12 CET
Nmap scan report for host86-157-45-123.range86-157.btcentralplus.com (86.157.45.123)
Host is up (0.11s latency).
Not shown: 70 filtered ports, 26 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
111/tcp open  rpcbind
443/tcp open  https

% nmap -p445 86.157.45.123

Starting Nmap 6.00 ( http://nmap.org ) at 2013-02-04 12:15 CET
Nmap scan report for host86-157-45-123.range86-157.btcentralplus.com (86.157.45.123)
Host is up (0.068s latency).
PORT    STATE    SERVICE
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. imgur.com/BrFfRY8 –  mahamed91 Feb 5 '13 at 17:39
add comment

Your Answer

 
discard

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.