Warn: for public internet, use vpn/ssh-tunneling (with samba config-ed for vpn/local nic address) or SSHFS.

OBS: CIFS is new protocal, SMB is deprecated after win server 2003. ref

See Also Links

SFTP: FTP over SSH

SSHFS

NFS

UBUNTU AS SERVER

sudo apt-get install -y samba samba-vfs-modules

CONFIG ......