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…
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.