Closed ItalyToast closed 1 month ago
@ItalyToast why do you need ping in the first place? The container or better speaking OpenVPN does usually re-establish the connection on it‘s own.
I just implemented the ping check on user request but I never understod why this is even necessary because OpenVPN does in fact re connect.
I assumed the ping check was the mechanism for keeping the container online. My issue is that the ping fails a couple of times a day and is causing restarts. I guess I can try disabling the ping check altogether and it should still work?
I assumed the ping check was the mechanism for keeping the container online. My issue is that the ping fails a couple of times a day and is causing restarts. I guess I can try disabling the ping check altogether and it should still work?
Yes it should work if you disable the ping check all together, so to speak remove the IP for the ping check.
Update: The VPN havent gone down in 2 days.
You mean the container didn't restart on it's own because of ping? I think OpenVPN handles that way better than the ping solution that I've implemented.
Yes, ping caused the restarts. Works way better now without the ping "feature". Since ping is affected by packet loss as soon as a ping packet is dropped the container would restart. All the containers connected to the vpn havent stopped in 47h. Since I want to inspect the container that crashes this have saved me a bunch of work 👍
I would suggest disabling the ping feature by default.
I've tried changing the script
start-ping.sh
to restart the VPN on 2 failed pings in a row. It cant find thestart.sh
script when I try to launch it in uraid.Could you add it as a feature or maybe you could help me to get it to build correctly?
I build it on windows with wsl2.
^ this is the script I've used in
start-ping.sh