Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Samba Server not accessible after establishing iptables rules

$
0
0
Hi All,

If I disable the iptables on the server then I can use the command

Code:

mount -t cifs //192.168.122.21/sharedata tmpdata -o username=smbuser4,password=1234
If I enable the iptables. However I have use the commands on server

Code:

iptables -A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
iptables -A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT

Then I get the error.

Code:

mount -t cifs //192.168.122.21/sharedata tmpdata -o username=smbuser4,password=1234
Unable to find suitable address.

Please help.

Viewing all articles
Browse latest Browse all 16232

Trending Articles