this post was submitted on 27 Oct 2023
1 points (100.0% liked)

Self-Hosted Main

593 readers
1 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.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 2 years ago
MODERATORS
 

I'm still a beginner when it comes to selfhosting so my question might sound obvious to some but here it is anyway

My setup

so right now I have a server with 2 IP, one for the ethernet connexion and another for my wireless connnexion. The other day my server was not available on the web and it was because the cable got loose and disconnected. I'll replace it but it lead me to a question...

The question

Is there a way to have a port fowarding rule that fallback to another IP if the first one is down? My router is provided by my ISP so i doubt i got the option to do that but is there a firewall that could do something like this?

High Availability

I can see this being used in high availability setup where instead of having two IP on one server like me you would loadbalance the port between 2 server so I suppose it might exist.

Maybe on something like pfsense or opnsense? I'm thinking about upgraping my firewall lately so if there's something like that i might finally make the switch...

you are viewing a single comment's thread
view the rest of the comments
[–] thekrautboy@alien.top 1 points 2 years ago

If the reverse proxy with high availability doesnt work out for you for whatever reasons, take a look at keepalived as a alternative. You run it on listening on both IPs and once one is detected as being down, the other takes over automatically. Very easy to set up.

iirc techno tim made a youtube video about it some time ago, or someone else, but easy to find i guess.