From 4f87dd6221ae9fd050cab1143403521983ccca50 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 28 Oct 2023 20:35:08 +0300 Subject: [PATCH] samba/playstation2.conf: specify hosts allow --- etc/samba/playstation2.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/samba/playstation2.conf b/etc/samba/playstation2.conf index d83c6152..9e2c807d 100644 --- a/etc/samba/playstation2.conf +++ b/etc/samba/playstation2.conf @@ -9,8 +9,12 @@ # enable logging log level = 5 syslog = 5 -# SMBv1, required for PS2 +# SMBv1, required for PS2. TODO: Can this be specified just for [PS2SMB] +# instead of weakening security globally? server min protocol = NT1 +# And as we are so insecure, let's only allow the PS2 to connect. +# This could also be specified under [PS2SMB] +hosts allow = 192.168.88.5 workgroup = WORKGROUP usershare allow guests = yes map to guest = bad user @@ -26,6 +30,8 @@ keepalive = 60 # on the console [PS2SMB] Comment = PlayStation2 images +# PS2 IP +#hosts allow = 192.168.88.5 # These commands are required for SELinux to not complain # sudo chcon -t samba_share_t /home/aminda/PS2 # sudo setsebool -P samba_enable_home_dirs on