Bug 25243 - univention-firewall für Antworten auf Netbios-Broadcasts freischalten
univention-firewall für Antworten auf Netbios-Broadcasts freischalten
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-1
Assigned To: Arvid Requate
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-06 18:52 CET by Arvid Requate
Modified: 2012-03-04 14:34 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2011-12-06 18:52:43 CET
Für die korrekte Funktion von netbios Broadcasts, insbesondere für die Einrichtung von Vertrauensstellungen (Samba vertraut Windows) muss die Univention Firewall für Antworten auf Netbios-Broadcasts freigeschaltet werden. Aktuell kann das nur über eine packetfilter subfile automatisert werden:

echo "iptables -I INPUT 1 -p udp --sport 137 -j ACCEPT" \
     >> /etc/security/packetfilter.d/50_local.sh
/etc/init.d/univention-firewall restart

Es wäre einfacher wenn univention-samba selbst ein angepasstes Subfile mitbringt. Ggf. ist das auch für univention-samba4 sinnvoll.
Comment 1 Arvid Requate univentionstaff 2012-01-02 16:44:11 CET
Das Paket univention-samba bringt jetzt einen UCR-Template-Subfile mit, in dem die source-port Regel statisch definiert wird. Das Schema der UCR-Variablen in univention-firewall bietet hier leider keine ausreichenden Erweiterungsmöglichkeiten.

Changelog ist angepasst.
Comment 2 Felix Botner univentionstaff 2012-02-09 17:25:35 CET
scheint zu klappen vorher findet er nur sich selbst bei eine nmblookup Anfrage

root@10.200.7.70-> nmblookup --broadcast=10.200.7.255 'master'
querying master on 10.200.7.255
10.200.7.70 master<00>

Nach dem Update dann auch andere Rechner (mit diesem Namen)

root@10.200.7.70-> nmblookup  'master'
querying master on 10.200.7.255
10.200.7.100 master<00>
10.200.7.10 master<00>
10.200.7.10 master<00>
10.200.7.100 master<00>
10.200.7.100 master<00>
10.200.7.100 master<00>

-> iptables -L| grep netbios
ACCEPT     udp  --  anywhere    anywhere  udp spt:netbios-ns 
ACCEPT     tcp  --  anywhere    anywhere  tcp dpts:netbios-ns:netbios-ssn 
ACCEPT     udp  --  anywhere    anywhere  udp dpt:netbios-ns 
ACCEPT     udp  --  anywhere    anywhere  udp dpts:netbios-ns:netbios-ssn 


ABER, er findet sich selbst nicht mehr.
Ich bin nicht sicher, ob das etwas mit diesem Bug zu tun oder ob es überhaupt ein Problem ist, daher noch diese "Nachfrage".
Comment 3 Arvid Requate univentionstaff 2012-02-14 10:50:28 CET
Kann ich nicht nachvollziehen:

root@master:~# nmblookup 'master'
querying master on 10.200.8.255
name_query failed to find name master
root@master:~# echo "iptables -I INPUT 1 -p udp --sport 137 -j ACCEPT" \
>      >> /etc/security/packetfilter.d/50_local.sh
root@master:~# /etc/init.d/univention-firewall restart
Stopping Univention iptables configuration::.
Starting Univention iptables configuration::.
root@master:~# nmblookup 'master'
querying master on 10.200.8.255
10.200.8.150 master<00>
10.200.8.150 master<00>
10.200.8.150 master<00>
10.200.8.150 master<00>
Comment 4 Felix Botner univentionstaff 2012-02-14 12:21:01 CET
(In reply to comment #3)
> Kann ich nicht nachvollziehen:
> 
> root@master:~# nmblookup 'master'
> querying master on 10.200.8.255
> name_query failed to find name master
> root@master:~# echo "iptables -I INPUT 1 -p udp --sport 137 -j ACCEPT" \
> >      >> /etc/security/packetfilter.d/50_local.sh
> root@master:~# /etc/init.d/univention-firewall restart
> Stopping Univention iptables configuration::.
> Starting Univention iptables configuration::.
> root@master:~# nmblookup 'master'
> querying master on 10.200.8.255
> 10.200.8.150 master<00>
> 10.200.8.150 master<00>
> 10.200.8.150 master<00>
> 10.200.8.150 master<00>

ja funktioniert, war wohl nur ein Problem mit dem mehrfach vergebenen Namen .
Comment 5 Arvid Requate univentionstaff 2012-02-21 18:07:56 CET
Note: Es kann sein, dass das in Comment 2 beobachtete Verhalten auf einen Bug im nmbd zurückgeht, der aber nur beim Betrieb von winbind auf DCs eine Rolle spielt:

http://gitweb.samba.org/samba.git/?p=samba.git;a=commitdiff;h=357631b8b9da95c5cd43e05e8ad9d7ef43fb67da
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2012-03-04 14:34:13 CET
UCS 3.0-1 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer
neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert
werden: "Clone This Bug"