summaryrefslogtreecommitdiffstats
path: root/lass/1systems/prism
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-08-26 21:21:48 +0200
committerJörg Thalheim <joerg@thalheim.io>2021-08-26 21:23:27 +0200
commit9e9d5d26d9e8ebe2b7c6308184c25c9de133714e (patch)
treebfa8003a192870836b72239057330ade78975236 /lass/1systems/prism
parentd2026d3f433c409c8a479f31848cc6c51c8d54c6 (diff)
mic92: samba perf options
Diffstat (limited to 'lass/1systems/prism')
-rw-r--r--lass/1systems/prism/config.nix29
1 files 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 <stockholm/lib>;
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 <stockholm/lib>;
[global]
syslog only = yes
- '';
+ '';
shares.public = {
comment = "Warez";
path = "/export";