Fix SMB service
This commit is contained in:
parent
98891a9b15
commit
1fa3e16a8c
4 changed files with 15 additions and 11 deletions
|
@ -31,6 +31,7 @@
|
|||
networkmanager.enable = true;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowPing = true;
|
||||
allowedTCPPorts = [
|
||||
53 # adguardhome (DNS)
|
||||
80 # traefik (HTTP)
|
||||
|
|
|
@ -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" ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue