LFCS · 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 listening on specific network interfaces when multiple are present, both interfaces and bind interfaces only parameters must be configured in smb.conf.
Question
Options
- Alisten interfaces
- Bbind interfaces only
- Cinterfaces
- Dlisten address
How the community answered
(26 responses)- A4% (1)
- B92% (24)
- D4% (1)
Why each option
To restrict Samba to listening on specific network interfaces when multiple are present, both `interfaces` and `bind interfaces only` parameters must be configured in `smb.conf`.
`listen interfaces` is not a valid parameter in `smb.conf` for controlling which interfaces Samba listens on; the correct parameter is `interfaces`.
The `bind interfaces only` parameter, when set to `yes`, forces Samba to only bind to the IP addresses specified by the `interfaces` parameter, preventing it from listening on all available interfaces.
The `interfaces` parameter is used to specify a list of network interfaces or IP addresses on which Samba should listen for incoming connections. This explicitly defines the network boundaries for Samba services.
`listen address` is a parameter that allows specifying a single IP address for Samba to listen on, but it is not the primary way to specify *multiple* interfaces and ensure binding exclusively to them like `interfaces` combined with `bind interfaces only`.
Concept tested: Samba network interface binding
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.