| 1 |
<samba:parameter name="server smb transports" |
| 2 |
context="G" |
| 3 |
type="list" |
| 4 |
handler="handle_server_smb_transports" |
| 5 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 6 |
<description> |
| 7 |
<para>Specifies which transports and ports the server should listen on for SMB traffic.</para> |
| 8 |
|
| 9 |
<para>The order matters only for mDNS registrations, the first |
| 10 |
'tcp' or 'nbt' port is used for that.</para> |
| 11 |
|
| 12 |
<para>The transport 'tcp' uses raw tcp with a 4 byte length header per SMB PDU. |
| 13 |
The default port for 'tcp' is 445. Other ports can be specified by adding it |
| 14 |
after ':', e.g. 'tcp:1445'. |
| 15 |
</para> |
| 16 |
|
| 17 |
<para>The transport 'nbt' uses netbios framing on top of tcp per SMB PDU. |
| 18 |
The default port for 'nbt' is 139. Other ports can be specified by adding it |
| 19 |
after ':', e.g. 'nbt:1139'. |
| 20 |
</para> |
| 21 |
|
| 22 |
<para>The transport 'quic' uses the quic protocol on top of udp. |
| 23 |
The default port for 'quic' is 443. Other ports can be specified by adding it |
| 24 |
after ':', e.g. 'quic:1443'. |
| 25 |
The following options are also relevant: |
| 26 |
<smbconfoption name="tls enabled"/>, |
| 27 |
<smbconfoption name="tls cafile"/>, |
| 28 |
<smbconfoption name="tls certfile"/> and |
| 29 |
<smbconfoption name="tls keyfile"/>. |
| 30 |
If the files pointed to by |
| 31 |
<smbconfoption name="tls cafile"/>, |
| 32 |
<smbconfoption name="tls certfile"/> and |
| 33 |
<smbconfoption name="tls keyfile"/> all do not exist, |
| 34 |
a self-signed tls certificate is generated automatically at startup. |
| 35 |
</para> |
| 36 |
|
| 37 |
<para> |
| 38 |
Note: 'quic' requires the quic.ko kernel module for Linux from |
| 39 |
https://github.com/lxin/quic (tested with Linux 6.14). Future |
| 40 |
Linux versions may support it natively. |
| 41 |
</para> |
| 42 |
|
| 43 |
<para>Numerical ports are handled as 'tcp' except port '139' is handled as 'nbt'. |
| 44 |
</para> |
| 45 |
|
| 46 |
<para>Note that's currently a limit of 10 unique transports, all others will |
| 47 |
be ignored.</para> |
| 48 |
</description> |
| 49 |
|
| 50 |
<value type="example">445</value> |
| 51 |
<value type="example">tcp, tcp:1445</value> |
| 52 |
<value type="example">8000, nbt:1139</value> |
| 53 |
<value type="example">tcp, quic, nbt</value> |
| 54 |
<value type="example">+quic</value> |
| 55 |
|
| 56 |
<value type="default">tcp, nbt</value> |
| 57 |
</samba:parameter> |
| 58 |
|
| 59 |
<samba:parameter name="smb ports" |
| 60 |
context="G" |
| 61 |
type="list" |
| 62 |
handler="handle_server_smb_transports" |
| 63 |
function="server_smb_transports" |
| 64 |
synonym="1" |
| 65 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 66 |
<description> |
| 67 |
<para> |
| 68 |
This is a synonym for <smbconfoption name="server smb transports"/>. |
| 69 |
</para> |
| 70 |
</description> |
| 71 |
</samba:parameter> |