DjJoakim Posted August 27, 2021 Share Posted August 27, 2021 Hey! I have a setup that looks like this; VPN Docker 1 Docker 1 (runs under vpn docker 1) Docker 2 (runs under vpn docker 1) VPN Docker 2 Docker 3 (runs under vpn docker 2) Docker 4 (runs under vpn docker 2) When my network disconnect, vpn dockers activates their killswitch, witch is good - but bad for me.. bc then i have to manually restart every docker including the vpn dockers.. Is there someway to make a script that maybe detects when network is lost and shuts down the dockers, and then when network is up and running again, starts both vpn dockers at the same time, and 30 sec later starts the other dockers (so the vpn is connected) I was checking if there was something that could be done by using this script, but i can't really get the detection part figured out... since this activates when unraid is restarted. Thanks! Quote Link to comment
CS01-HS Posted August 27, 2021 Share Posted August 27, 2021 Rebuild DNDC does what you want for one. Maybe supports two or you could install two instances? Quote Link to comment
DjJoakim Posted August 28, 2021 Author Share Posted August 28, 2021 11 hours ago, CS01-HS said: Rebuild DNDC does what you want for one. Maybe supports two or you could install two instances? Thanks! I will look into that, do you know how to install two instances? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.