Samba是一个提供SMB协定的软件。
大多数的Linux套件都有提供,在Ubuntu下可以用apt安装:
sudo apt install -y samba; sudo apt clean
设定会在/etc/samba/smb.conf:
/etc/samba/smb.conf
使用UFW:
sudo ufw allow from 192.168.0.0/16 to any app Samba