[Eisfair] Eis und IPv6 NICHT!

Thomas Bork tom at eisfair.org
So Nov 22 23:48:42 CET 2020


Am 22.11.2020 um 15:00 schrieb Kay Martinen:

> Bei Samba z.b. gibt es m.W. nur trusted_Nets und keine Unterscheidung
> bei den Shares nach Interface. Es tauchen alle an allen NICs auf.

Richtig, denn der Parameter "interfaces" ist ein Parameter der 
_globalen_ Sektion und nicht der Freigabe-Sektionen.


PARAMETERS

Parameters define the specific attributes of sections.

Some parameters are specific to the [global] section (e.g., security). 
Some parameters are usable in all sections (e.g., create mask). All 
others are permissible only in normal sections. For the purposes of the 
following descriptions the [homes] and [printers] sections will be 
considered normal. The letter G in parentheses indicates that a 
parameter is specific to the [global] section. The letter S indicates 
that a parameter can be specified in a service specific section. All S 
parameters can also be specified in the [global] section - in which case 
they will define the default behavior for all services.

Parameters are arranged here in alphabetical order - this may not create 
best bedfellows, but at least you can find them! Where there are 
synonyms, the preferred synonym is described, others refer to the 
preferred synonym.


interfaces (G)

     This option allows you to override the default network interfaces 
list that Samba will use for browsing, name registration and other 
NetBIOS over TCP/IP (NBT) traffic. By default Samba will query the 
kernel for the list of all active interfaces and use any interfaces 
except 127.0.0.1 that are broadcast capable.

     The option takes a list of interface strings. Each string can be in 
any of the following forms:

         a network interface name (such as eth0). This may include 
shell-like wildcards so eth* will match any interface starting with the 
substring "eth"

         an IP address. In this case the netmask is determined from the 
list of interfaces obtained from the kernel

         an IP/mask pair.

         a broadcast/mask pair.

     The "mask" parameters can either be a bit length (such as 24 for a 
C class network) or a full netmask in dotted decimal form.

     The "IP" parameters above can either be a full dotted decimal IP 
address or a hostname which will be looked up via the OS's normal 
hostname resolution mechanisms.

     By default Samba enables all active interfaces that are broadcast 
capable except the loopback adaptor (IP address 127.0.0.1).

     In order to support SMB3 multi-channel configurations, smbd 
understands some extra data that can be appended after the actual 
interface with this extended syntax:

     interface[;key1=value1[,key2=value2[...]]]

     Known keys are speed, capability, and if_index. Speed is specified 
in bits per second. Known capabilities are RSS and RDMA. The if_index 
should be used with care: the values must not coincide with indexes used 
by the kernel. Note that these options are mainly intended for testing 
and development rather than for production use. At least on Linux 
systems, these values should be auto-detected, but the settings can 
serve as last a resort when autodetection is not working or is not 
available.

     The example below configures three network interfaces corresponding 
to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10. The 
netmasks of the latter two interfaces would be set to 255.255.255.0.

     Default: interfaces =

     Example: interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0

-- 
der tom


Mehr Informationen über die Mailingliste Eisfair