You are not logged in.
Hi everyone,
I am trying to setup my laptop to see windows shares and printers via samba on local networks at work and at home. I installed samba and cups (and related packages listed here: https://wiki.archlinux.org/index.php/CU … _packages). I configured samba with the default settings, as written here: https://wiki.archlinux.org/index.php/Samba#Basic_Setup, because xinetd and swat don't work for me the way it is given in the same page. When I try to browse "Network -> Samba Shares" in Dolphin, i get the error:
Unable to find any workgroups in your local network. This might be caused by an enabled firewall.
At home I turned off the firewall of a windows system (the one the printer is connected to), but it did not help. On the laptop, from which I am trying to browse the network shares, I have iptables. It is configured according to this page: https://wiki.archlinux.org/index.php/Si … l_Firewall . Can this cause the problem? Anyone has any idea how to solve this?
Thanks in advance,
Last edited by Ben_the1st (2012-11-03 14:39:50)
Balazs
Offline
I found the solution. I'm posting it to help others who run into the same problem.
To make samba work, I had to open up the ports 445/tcp, 139/tcp, 137/udp and 138/udp (for Microsoft Directory Service, NetBIOS Session Service, NetBIOS Name Service and NetBIOS Datagram Service). So added the following to the iptables rules:
-A TCP -p tcp -m tcp --dport 445 -j ACCEPT
-A TCP -p tcp -m tcp --dport 139 -j ACCEPT
-A UDP -p udp -m udp --dport 137 -j ACCEPT
-A UDP -p udp -m udp --dport 138 -j ACCEPT
And also had to enable the following module at boot:
nf_conntrack_netbios_ns
Balazs
Offline