Fix SMB service

This commit is contained in:
♥ Minnie ♥ 2024-07-16 21:27:20 +08:00
parent 98891a9b15
commit 1fa3e16a8c
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 15 additions and 11 deletions

View file

@ -31,6 +31,7 @@
networkmanager.enable = true;
firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [
53 # adguardhome (DNS)
80 # traefik (HTTP)

View file

@ -13,7 +13,7 @@
#use sendfile = yes
#max protocol = smb2
# note: localhost is the ipv6 localhost ::1
hosts allow = 192.168.1.101 192.168.1.108 127.0.0.1 localhost
hosts allow = 192.168.20.5 127.0.0.1 localhost
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
@ -47,6 +47,5 @@
openFirewall = true;
};
networking.firewall.enable = true;
networking.firewall.allowPing = true;
environment.persistence."/persist".directories = [ "/var/lib/samba" ];
}