Selfhosting a Website and using Samba locally. Is it safe?

Posted by nosleeptilllegoland@reddit | linuxadmin | View on Reddit | 9 comments

Hi,

I recently got into Web Development and bought a Raspberry Pi Zero 2W going by my profs advice to host my portfolio. It uses the 32 bit Raspberry Debian OS

I wanted to frequently update the files that the Website pulls from and so looked into local file sharing which is how I heard about Samba.

I managed to set it up now and it opened two ports locally I think for devices in my network. I tried to check for open ports with online tools but they all said there are no open ports so with my beginner-conclusion I think that these ports are only open for internal traffic.

But after doing that and looking for further steps I came across a lot of posts where people warned about self-hosting websites and where samba in the context of forwarded ports which I believe is different from what I did(?) was also warned against and so to feel better about making a webserver on my Pi for just the website and not the local file sharing I wanted to ask for advice from more seasoned Networking enthusiasts if I can go ahead or if I am about to implode if I take a step further.

For context, my plans for next steps are using NGINX or Pingora and Cloudflare to host the website.

Thank you in Advance!