14
submitted 10 months ago* (last edited 10 months ago) by Weslee@lemmy.world to c/linux@lemmy.ml

Hi there,

I am pretty new to Linux, so apologies for any stupidly obvious answers I might miss; I have a Raspberry Pi with some self hosted stuff to use in my LAN - however I have recently decided to host a Gogs (git) server on there also (as well as a Wordpress server).

Heres the issue - my Plex server is accessible from WAN, the Wordpress server is half working and the Gogs server is only accessible from LAN.

Basically if I connect to the server with LAN IP it works, if I use WAN IP it doesnt (The server at IP is taking too long to respond). One weird thing I noticed is that the Wordpress server - if I try to go to that via WAN IP it doesn’t work, but if I go via the DNS it works fine.

The Gogs server is using Docker, Wordpress just uses nginx. I have a static IP and have forwarded the correct ports on my router, I also have a new modem for fibre that I have not used before - not sure if that matters.

I'm mostly focused on getting the Gogs server accessible from WAN, I'm not too fussed about Wordpress right now since that works via DNS anyway.

Really appreciate any possible solutions you guys might know

you are viewing a single comment's thread
view the rest of the comments
[-] haui_lemmy@lemmy.giftedmc.com 2 points 10 months ago* (last edited 10 months ago)

This. I was getting fits when I read the post. Fiber is actually great for selfhosting a service but the security side is very dangerous for uninformed individuals.

If configuring an nginx server is already stretching it, its only a matter of time until your stuff is encrypted and ransomed. Same goes for all data in your network. If the pi is not in its own zone, it has now become a door to your network with barely a lock, let alone a good one.

I would highly recommend reading up on network security and probably prioritize isolating the pi and making at least daily backups.

You router is going to be scanned for open ports every couple minutes. If the wordpress doesnt have a strong password, you‘re in for a bad time.

this post was submitted on 14 Jan 2024
14 points (88.9% liked)

Linux

48335 readers
476 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS