Help with OpenVPN and Gateway

  • Hello to everyone!!!
    I have a big problem with my OpenVPN service in PFSense..
    Somethimes the Gateway of the OpenVPN (PrivateVPN) going offline and the connection drops...
    If i restart OpenVPN service all works properly
    Is there a way to ping for example and if not respond restart OpenVPN service?
    Thanks a Lot