this post was submitted on 12 Nov 2024
45 points (94.1% liked)

Selfhosted

40153 readers
611 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hello. I’m pretty new here. I just managed to get my Raspberry Pi setup at home to selfhost a simple website that will act as my portfolio for some art I do.

I’m using WordPress to make the content of the website, meaning it runs on Apache, MariaDB and MySQL in the background. It’s connected via port 80 since I don’t want to pay for SSL certificates to setup https. There will be no accounts or transactions happening on my website. I don’t have anything to manage my dynamic IP but I’ll figure that out later. I’ve deleted the default Pi user on the RPi.

Are there security issues I should address preemptively? I’m worried for instance that I am exposing my home network, making it easier for someone to breach into whatever is connected there.

Any tips on making sure my setup is secure?

you are viewing a single comment's thread
view the rest of the comments
[–] diminou@lemmy.zip 27 points 2 days ago (3 children)

Take a look at certbot. You don't need to pay for ssl and ssl is actually pretty mandatory for anything served on the internet.

Make sure you don't forward too much ports. And make sure you have a working firewall that only allow those same ports. You should be good to go then.

[–] mhzawadi@lemmy.horwood.cloud 19 points 2 days ago (1 children)

Also be advised that wordpress will attract all the internet to try and hack in, so make sure you keep everything up to date

[–] pHr34kY@lemmy.world 6 points 2 days ago

Setting up fail2ban to block people trying to brute force the admin panel is a good start.

[–] undefined@lemmy.hogru.ch 6 points 2 days ago (1 children)

I would add from an end-user privacy perspective, they might want HTTPS. If I hit a website not using HTTPS, I pretty much immediately back out. Bad actors like hostile governments and hackers can use seemingly meaningless data against you.

I can’t remember exactly what happened but I remember back when WebMD was fighting against rolling out TLS hackers were able to find medical weaknesses against people.

[–] terminhell@lemmy.world 2 points 2 days ago

Not too mention the scary browser warnings. It's not a good look tbh if this is your portfolio. Lots of great considerations and tips here already though.

[–] psoul@lemmy.world 1 points 2 days ago (2 children)

Noted ! I’ll make sure to set https up.

Tbh, I haven’t heard the word firewall since probably 2005… would my router have a firewall built in or is that something I need to add on, let’s say, the RPi ?

[–] acockworkorange@mander.xyz 3 points 2 days ago* (last edited 2 days ago) (1 children)

Add it to the Pi. Easier maintenance.

[–] diminou@lemmy.zip 3 points 1 day ago

Was going to say exactly the same thing.

Even if your router have one, better safe than sorry!

[–] undefined@lemmy.hogru.ch 2 points 2 days ago

Your router probably does have one, but your end devices should too. If your router is some piece of trash ISP-supplied one, it might not even have a firewall for IPv6 (if it even supports IPv6 at all).