|
Bugzilla – Full Text Bug Listing |
| Summary: | /etc/sysconfig/SuSEfirewall2.d/services/samba-server wrong | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | Forgotten User taWGjDL4xO <forgotten_taWGjDL4xO> |
| Component: | YaST2 | Assignee: | The 'Opening Windows to a Wider World' guys <samba-maintainers> |
| Status: | RESOLVED INVALID | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Major | ||
| Priority: | P5 - None | CC: | forgotten_taWGjDL4xO |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | openSUSE 11.1 | ||
| Whiteboard: | |||
| Found By: | Community User | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Forgotten User taWGjDL4xO
2008-12-24 05:21:23 UTC
Leave broadcasts and the connection tracker engine out of consideration for this bug -- they aren't the issue here. I've found the issue and lay it out for you below: I have checked the text file /etc/sysconfig/SuSEfirewall2 more closely between 10.2, 11.0 and 11.3 to see what is different when the Samba Server tool (located at Yast --> Security and Users --> Allowed Services -->add Samba Server) is used. In 10.3 and 11.0 the tool causes port designations to be added to the lines FW_SERVICES_EXT_TCP and FW_SERVICES_EXT_TCP and FW_ALLOW_FW_BROADCAST_EXT. In 11.1 a new approach is used. The tool no longer causes port assignment similar to 10.x, 11.1. Instead it causes the term "samba-server" to be added to the line FW_CONFIGURATIONS_EXT (similar to the way apache and ssh are treated). Putting that phrase in that line doesn't cause any firewall effect yet for Samba and that's where the fix-it focus should be. OK guys here's how to fix it: The file the file samba-server located at /etc/sysconfig/SuSEfirewall.d/services/samba-server as installed via the downloadable DVD contains erroneous settings. Contents as supplied are: ## Name: Samba Server ## Description: Opens ports for Samba Server. # space separated list of allowed TCP ports TCP="netbios-ssn microsoft-ds" # space separated list of allowed UDP ports UDP="" # space separated list of allowed RPC services RPC="" # space separated list of allowed IP protocols IP="" # space separated list of allowed UDP broadcast ports BROADCAST="" The correct contents are: ## Name: Samba Server ## Description: Opens ports for Samba Server. # space separated list of allowed TCP ports TCP="netbios-ssn microsoft-ds" # space separated list of allowed UDP ports UDP="netbios-ns netbios-dgm" # space separated list of allowed RPC services RPC="" # space separated list of allowed IP protocols IP="" # space separated list of allowed UDP broadcast ports BROADCAST="netbios-ns netbios-dgm" So to fix the bug edit the file /etc/sysconfig/SuSEfirewall.d/services/samba-server and add the two port designations: netbios-ns netbios-dgm into the two lines UDP="" and BROADCAST="" as illustrated Then the firewall tool for Samba located at Yast --> Security and Users --> Firewall --> Allowed Services --> Add --> Samba Server will work Correction: in the post immediatelly above I put a typo in the path The correct paths are /etc/sysconfig/SuSEfirewall2.d/services and /eyc/sysconfig/SuSEfirewall2.d/services/samba-server It's too hard to edit and get stuff right here (because I'm careless) so the full fix is described better here: http://www.swerdna.net.au/lanprimer/fix.html The setting for the netbios are already correct and stored in /etc/sysconfig/SuSEfirewall2.d/services/netbios-server I've check this on a 11.1 installation. Please reopen if /etc/sysconfig/SuSEfirewall2.d/services/netbios-server and /etc/sysconfig/SuSEfirewall2.d/services/samba-server are missing on your 11.1 system. The new Service and its config file are there and working fine. I had missed its arrival on the scene entirely, my bad. Thanks |