Remote Username/Password

I want to setup port forwarding to my MBL but want to enforce username & password. How can I do that? I only use the Public share.

I assume it would require same credentials when mounting locally (Mac and WIndows) and that’s fine.

In order to support authentication / authorization on the PUBLIC share, you’ll need to do some heavy-duty hand-editing of the Samba configuration files in the MBL.

Not what I wanted to hear… want remote access for both afp (macbook) and smb (win PC) so I can mount them remotely with port forwarding. I know I can create shares that will require username/password but the public share is used with the wd2go and wdphotos app and that would not be protected if someone discovers my forwarding port #

Does anyone have ideas?