From 9e9d5d26d9e8ebe2b7c6308184c25c9de133714e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 26 Aug 2021 21:21:48 +0200 Subject: mic92: samba perf options --- lass/1systems/prism/config.nix | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/lass/1systems/prism/config.nix b/lass/1systems/prism/config.nix index cbaf127c8..e3dba69e4 100644 --- a/lass/1systems/prism/config.nix +++ b/lass/1systems/prism/config.nix @@ -388,12 +388,37 @@ with import ; services.samba = { enable = true; + enableNmbd = false; extraConfig = '' workgroup = WORKGROUP netbios name = PRISM - server string = prism + server string = ${config.networking.hostName} + # only allow retiolum addresses hosts allow = 42::/16 10.243.0.0/16 + # Don't bind to the legacy 143 port + smb ports = 445 + # Bind only to allowed interfaces + bind interfaces only = true + # only bind to retiolum network interfaces = tinc.retiolum + + # Use sendfile() for performance gain + use sendfile = true + + # No NetBIOS is needed + disable netbios = true + + # Only mangle non-valid NTFS names, don't care about DOS support + mangled names = illegal + + # Performance optimizations + socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 + + # Disable all printing + load printers = false + disable spoolss = true + printcap name = /dev/null + map to guest = Bad User max log size = 50 dns proxy = no @@ -401,7 +426,7 @@ with import ; [global] syslog only = yes - ''; + ''; shares.public = { comment = "Warez"; path = "/export"; -- cgit v1.2.3