You are not logged in.

#1 2012-10-20 15:17:50

Ben_the1st
Member
From: Szeged, Hungary
Registered: 2010-06-15
Posts: 30

[SOLVED] Cannot browse windows shares/printers via samba in KDE

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

#2 2012-11-03 14:39:36

Ben_the1st
Member
From: Szeged, Hungary
Registered: 2010-06-15
Posts: 30

Re: [SOLVED] Cannot browse windows shares/printers via samba in KDE

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

Board footer

Powered by FluxBB