LX0-104 · Question #594
There are multiple network interfaces on a server. Which parameters must you set in smb.conf to limit on which interfaces Samba will accept connections? (Choose TWO correct answers)
The correct answer is B. bind interfaces only C. interfaces. To restrict Samba to accept connections only on specific network interfaces on a multi-homed server, you must set both the interfaces parameter to list the desired interfaces and the bind interfaces only parameter to yes.
Question
Options
- Alisten interfaces
- Bbind interfaces only
- Cinterfaces
- Dlisten address
How the community answered
(53 responses)- A4% (2)
- B89% (47)
- D8% (4)
Why each option
To restrict Samba to accept connections only on specific network interfaces on a multi-homed server, you must set both the `interfaces` parameter to list the desired interfaces and the `bind interfaces only` parameter to `yes`.
listen interfaces is not a recognized or valid parameter in the Samba `smb.conf` file for specifying network interfaces.
The `bind interfaces only = yes` parameter ensures that Samba will solely bind to and accept connections from the network interfaces explicitly specified by the `interfaces` parameter, preventing it from listening on all available interfaces. This enforces strict interface binding.
The `interfaces` parameter defines a list of specific network interfaces (e.g., `eth0`) or IP addresses/subnets on which Samba should listen for incoming connections, effectively controlling which network segments can reach the server.
listen address limits Samba to listening on specific IP addresses, but it is less flexible than `interfaces` which can specify interface names or IP addresses/subnets, and `bind interfaces only` is still required to ensure it *only* binds to those listed interfaces.
Concept tested: Samba network interface binding
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html#BINDINTERFACESONLY
Topics
Community Discussion
No community discussion yet for this question.