Auto-Restart IPSEC pfsense 2.2



  • Hello, since upgrading to 2.2 I have a problem with my ipsec going down periodically. Generally every 5-8 hours. I found a post here:

    https://forum.pfsense.org/index.php?topic=42090.0

    But that script gives me an error:

    Fatal error: Call to undefined function vpn_ipsec_refresh_policies() in /usr/local/www/checkIpsec.php on line 30

    I have created the script in /usr/local/www and given it execute permissions. Has the vpn_ipsec_refresh_policies function been deprecated in 2.2? Any ideas how I can get this working. What I need to do is:

    1. Ping IP address on remote subnet
    2. If IP is not reachable, restart IPSEC properly.

    Thanks for your time.



  • It's also worth mentioning that when I reboot my router, ipsec shows connected, but I am unable to use reach any of the remote subnets. Only after manually stopping then starting the connection through the web ui am I able to use the tunnel. I read in the forums that it may be related to having multiple phase 2 entries, but I am unsure as to how I can reach multiple subnets without multiple phase 2 entries. Any suggestions would be appreciated.


Log in to reply