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

    Restarting OpenVPN Service randomly via cron job?

    pfSense Packages
    1
    1
    289
    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
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.