I have 2 machines running 11.4 and one running 12.1 on my LAN. The firewall prevents browsing both to and from the two machines running 11.4 (including the preferred master) but none of the 3 firewalls interferes with the 12.1 machine.
Here is smb.conf for the preferred master:
bay@linux-enod:~> cat /etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2010-09-15
[global]
workgroup = JADEWORKGROUP
netbios name = linux-enod
name resolve order = bcast host lmhosts wins
local master = yes
preferred master = yes
os level = 65
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
load printers = yes
use client driver = yes
map to guest = Bad User
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
usershare owner only = False
wins support = No
usershare max shares = 100
[homes]
comment = Home Directories
browseable = Yes
read only = No
inherit acls = Yes
valid users = %S, %D%w%S
## Share disabled by YaST
# [profiles]
# comment = Network Profiles Service
# path = %H
# read only = No
# store dos attributes = Yes
# create mask = 0600
# directory mask = 0700
[users]
comment = All users
path = /home
read only = no
inherit acls = Yes
veto files = /aquota.user/groups/shares/
## Share disabled by YaST
# [groups]
# comment = All groups
# path = /home/groups
# read only = No
# inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0700
guest ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
rcnmb and rcsmb are running
bay@linux-enod:~> su -c "rcnmb status; rcsmb status"
Password:
Checking for Samba NMB daemon running
Checking for Samba SMB daemon running
I think I have the firewall configured correctly
bay@linux-enod:~> cat /etc/sysconfig/SuSEfirewall2 | egrep "DEV_EXT=|FW_CONFIGURATIONS_EXT="
FW_DEV_EXT="any eth0"
FW_CONFIGURATIONS_EXT="hplip netbios-server samba-client samba-server"
I have toggled usr.sbin.smbd and usr.sbin.nmbd to complain in apparmor
But here is the difference for smbtree when the firewall is off:
bay@linux-enod:~> smbtree -N
JADEWORKGROUP
\\LINUX-J8SR Samba 3.6.1-34.3.1-2691-SUSE-SL12.1-i386
\\LINUX-J8SR\homes Home Directories
\\LINUX-J8SR\users All users
\\LINUX-J8SR\print$ Printer Drivers
\\LINUX-J8SR\IPC$ IPC Service (Samba 3.6.1-34.3.1-2691-SUSE-SL12.1-i386)
\\LINUX-ENOD Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-i386
\\LINUX-ENOD\music
\\LINUX-ENOD\CUPS-PDF CUPS-PDF
\\LINUX-ENOD\HP-LaserJet-P1006 Hewlett-Packard HP LaserJet P1006
\\LINUX-ENOD\HP_Laserjet_3200 HP_Laserjet_3200
\\LINUX-ENOD\HP_Laserjet_3200_fax HP_Laserjet_3200_fax
\\LINUX-ENOD\homes Home Directories
\\LINUX-ENOD\users All users
\\LINUX-ENOD\print$ Printer Drivers
\\LINUX-ENOD\IPC$ IPC Service (Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-i386)
\\LINUX-CPLD Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-i386
\\LINUX-CPLD\CUPS-PDF CUPS-PDF
\\LINUX-CPLD\HP-LaserJet-P1006 Hewlett-Packard HP LaserJet P1006
\\LINUX-CPLD\HP_Laserjet_3200 HP_Laserjet_3200
\\LINUX-CPLD\HP_Laserjet_3200_fax HP_Laserjet_3200_fax
\\LINUX-CPLD\hplaserjet3200 HP LaserJet 3200m Postscript (recommended)
\\LINUX-CPLD\homes Home Directories
\\LINUX-CPLD\users All users
\\LINUX-CPLD\print$ Printer Drivers
\\LINUX-CPLD\IPC$ IPC Service (Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-i386)
and on
bay@linux-enod:~> smbtree -N
JADEWORKGROUP
\\LINUX-J8SR Samba 3.6.1-34.3.1-2691-SUSE-SL12.1-i386
cli_start_connection: failed to connect to LINUX-J8SR<20> (0.0.0.0). Error NT_STATUS_BAD_NETWORK_NAME
\\LINUX-ENOD Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-i386
\\LINUX-ENOD\music
\\LINUX-ENOD\CUPS-PDF CUPS-PDF
\\LINUX-ENOD\HP-LaserJet-P1006 Hewlett-Packard HP LaserJet P1006
\\LINUX-ENOD\HP_Laserjet_3200 HP_Laserjet_3200
\\LINUX-ENOD\HP_Laserjet_3200_fax HP_Laserjet_3200_fax
\\LINUX-ENOD\homes Home Directories
\\LINUX-ENOD\users All users
\\LINUX-ENOD\print$ Printer Drivers
\\LINUX-ENOD\IPC$ IPC Service (Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-i386)
\\LINUX-CPLD Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-i386
cli_start_connection: failed to connect to LINUX-CPLD<20> (0.0.0.0). Error NT_STATUS_BAD_NETWORK_NAME
I’ve enabled messages in the firewall and here’s what happens after running the last command.
bay@linux-enod:~> cat /var/log/messages
Nov 23 14:45:02 linux-enod rsyslogd: [origin software="rsyslogd" swVersion="5.6.5" x-pid="3784" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Nov 23 14:45:25 linux-enod dhclient: send_packet6: Network is unreachable
Nov 23 14:45:25 linux-enod dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Nov 23 14:47:13 linux-enod dhclient: send_packet6: Network is unreachable
Nov 23 14:47:13 linux-enod dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Nov 23 14:48:49 linux-enod su: The gnome keyring socket is not owned with the same credentials as the user login: /tmp/keyring-1JSK2b/control
Nov 23 14:48:49 linux-enod su: gkr-pam: couldn't unlock the login keyring.
Nov 23 14:48:49 linux-enod su: (to root) bay on /dev/pts/1
Nov 23 14:49:23 linux-enod dhclient: send_packet6: Network is unreachable
Nov 23 14:49:23 linux-enod dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Nov 23 14:51:21 linux-enod dhclient: send_packet6: Network is unreachable
Nov 23 14:51:21 linux-enod dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Nov 23 14:53:21 linux-enod dhclient: send_packet6: Network is unreachable
Nov 23 14:53:21 linux-enod dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Nov 23 14:55:01 linux-enod SuSEfirewall2: Firewall rules unloaded.
Nov 23 14:55:19 linux-enod dhclient: send_packet6: Network is unreachable
Nov 23 14:55:19 linux-enod dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Nov 23 14:57:17 linux-enod SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Nov 23 14:57:17 linux-enod SuSEfirewall2: Error: iptables-batch failed, re-running using iptables
Nov 23 14:57:17 linux-enod SuSEfirewall2: Error: ip6tables-batch failed, re-running using ip6tables
Nov 23 14:57:18 linux-enod SuSEfirewall2: Firewall rules successfully set
Nov 23 14:57:22 linux-enod SuSEfirewall2: Firewall rules unloaded.
Nov 23 14:57:23 linux-enod SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Nov 23 14:57:23 linux-enod SuSEfirewall2: Error: iptables-batch failed, re-running using iptables
Nov 23 14:57:23 linux-enod SuSEfirewall2: Error: ip6tables-batch failed, re-running using ip6tables
Nov 23 14:57:23 linux-enod SuSEfirewall2: Firewall rules successfully set
Nov 23 14:57:27 linux-enod dhclient: send_packet6: Network is unreachable
Nov 23 14:57:27 linux-enod dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Starting with Swerdna’s tutorials, I’ve tried to read everything I could but have run out of ideas–any help on how to get this network sharing to work with the firewall enabled?
Many thanks.