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

    How to restart ipsec on renew of certificate

    Scheduled Pinned Locked Moved ACME
    2 Posts 2 Posters 649 Views
    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.
    • D
      dumarjo
      last edited by

      Hi,

      I try to find the way to restart my ipsec on renewal of the certificate. I find the action list but cannot find the right info to put in the command text field.

      Any idea on how to to it ?

      Regards,
      Jonathan

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        One of these should work:

        1. Method = Restart Local Service, Command = ipsec (This may be enough to refresh the IPsec config, but it's not a full restart)
        2. Method = PHP Command, Command = ipsec_configure(true) (This may fail since it may not have the right required libraries)
        3. Method = Shell Command, Command = /usr/local/sbin/pfSsh.php playback restartipsec (This may fail since the ACME script which starts the command is PHP, and launching pfSsh.php from within PHP doesn't always work)
        4. Method = PHP Command, Command = file_get_contents("/etc/phpshellsessions/restartipsec") (If the shell command fails, this should work instead)

        Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.