Script for pinging an IP for 24/7
Posted: Fri Feb 04, 2022 4:37 am
Hello everyone
I have few VPN clients (PPTPs and IKEV2) on my router which they are always working fine except when no user on the network send or receive any packet so their servers start to drop the connection and router will reconnect and this happens over and over again to solve this I want to use a script or scripts to ping different IPs like 9.9.9.9 or 1.1.1.1 all the time for all of the VPN interfaces and also IKEV2 which is the main route on the router, (right now I'm doing this by creating few VMs on the server and inside each they are pinging 9.9.9.9 or 1.1.1.1) so this way there would be no need for VMs and also the problem will be solved.
Any help will be highly appreciated.
I have few VPN clients (PPTPs and IKEV2) on my router which they are always working fine except when no user on the network send or receive any packet so their servers start to drop the connection and router will reconnect and this happens over and over again to solve this I want to use a script or scripts to ping different IPs like 9.9.9.9 or 1.1.1.1 all the time for all of the VPN interfaces and also IKEV2 which is the main route on the router, (right now I'm doing this by creating few VMs on the server and inside each they are pinging 9.9.9.9 or 1.1.1.1) so this way there would be no need for VMs and also the problem will be solved.
Any help will be highly appreciated.