Comments on: LFCS #5: How to Mount Local and Network (Samba & NFS) Filesystems in Linux https://www.tecmint.com/mount-filesystem-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Mon, 18 Sep 2023 04:47:23 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/mount-filesystem-in-linux/comment-page-1/#comment-2068548 Mon, 18 Sep 2023 04:47:23 +0000 http://www.tecmint.com/?p=9358#comment-2068548 In reply to Jeff H Silverman.

@Jeff,

Thank you for the detailed explanation and for sharing your solution. It’s indeed common for firewall rules to block SMB traffic, especially if the server is configured with strict security settings.

Your use of nmap to diagnose the issue is a great approach, as it can help identify which ports are open and which are being blocked.

]]>
By: Jeff H Silverman https://www.tecmint.com/mount-filesystem-in-linux/comment-page-1/#comment-2066489 Sun, 17 Sep 2023 08:31:09 +0000 http://www.tecmint.com/?p=9358#comment-2066489 If you attempt to use the smbclient -L SERVER-ADDRESS or smbclient -L SERVER-NAME and you get the error message Error NT_STATUS_IO_TIMEOUT, and the server is pingable and perhaps reachable using other protocols (e.g. SSH, HTTP, HTTPS), then the problem *might* be due to a firewall issue.

To definitively diagnose the issue, run the nmap command (you may have to install nmap) as root:

$ sudo nmap -sT -p 135:139,445 SERVER-NAME
or
$ sudo nmap -sT -p 135:139,445 SERVER-ADDRESS

I then fixed the problem by adding rules to the iptables, chain INPUT with commands **similar** to:

# iptables -I INPUT  -s 192.168.0.0/24 -p tcp -m tcp  --sport 135:139 -j ACCEPT
# iptables -I INPUT -s 192.168.0.0/24 -p tcp -m tcp --dport 443 -j ACCEPT
# iptables -I INPUT  -s 192.168.0.0/24 -p udp -m udp  --sport 135:139 -j ACCEPT
# iptables -I INPUT -s 192.168.0.0/24 -p udp -m udp --dport 443 -j ACCEPT

I’m running off of ancient memory if the udp rules are required or not and I don’t have time to test that right now. This works and for the moment, that’s good enough for me.

This is going on somewhat outdated information, it may be that the…

]]>
By: Gabriel A. Cánepa https://www.tecmint.com/mount-filesystem-in-linux/comment-page-1/#comment-798280 Sat, 09 Jul 2016 15:37:46 +0000 http://www.tecmint.com/?p=9358#comment-798280 In reply to Nuno.

@Nuno,
You’re helpful as always. Thanks for bringing that to our attention.

]]>
By: Nuno https://www.tecmint.com/mount-filesystem-in-linux/comment-page-1/#comment-798148 Fri, 08 Jul 2016 13:21:06 +0000 http://www.tecmint.com/?p=9358#comment-798148 Hi Gabriel,

A command That I think that will be useful in this article is the showmount command to search for available NFS shares on a remote server.

A simple example like run ‘showmount -e 192.168.0.10’ to view all NFS shares available on 192.168.0.10, will be great.

Best,
Nuno

]]>
By: Ravi Saive https://www.tecmint.com/mount-filesystem-in-linux/comment-page-1/#comment-796022 Tue, 28 Jun 2016 06:48:49 +0000 http://www.tecmint.com/?p=9358#comment-796022 In reply to Gabriel A. Cánepa.

@Gabriel,

Corrected in the writeup as suggested by @Eugene.

]]>