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

Run .php script on pfsense

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 337 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.
  • K
    k23ahnka
    last edited by Aug 9, 2020, 10:36 PM

    I found the following script
    https://dhampir.no/stuff/bash/pfsense-vpnreset

    it scans IPSEC connections and reinitiate them when one is down.
    how can i put this on my pfsense link it to chron so that it runs every 5 minutes for example?

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Aug 10, 2020, 2:05 PM

      You could setup your IPsec tunnels better and get the same net effect without a script.

      For example, if it's a tunnel mode IPsec connection, if you setup P2 entries with remote hosts to ping, that normally will bring them back up automatically.

      For IPsec VTI mode, if you set the child SA close action to "reconnect" on one side that will make them reconnect when they disconnect.

      There wouldn't normally be an IKE/P1 issue unless you don't have working DPD on both sides.

      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 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received