Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Restarting OpenVPN Service randomly via cron job?

    pfSense Packages
    1
    1
    117
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sdowling last edited by sdowling

      Hi,

      I would like to be able to restart my OpenVPN client every 24 hours, but with aslight nuance...I don't want it to restart at the exact same time each day.

      Something like [22:00 hrs +rand()*4:00 hrs] so that it would restart at some random point between 10pm and 2AM, uniquely, every day.

      I'm assuming it will involve cron, but I'm out of my depth there. Anyone got any bright ideas?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post