diff --git a/etc/rc.newipsecdns b/etc/rc.newipsecdns index db1d237..36e9840 100755 --- a/etc/rc.newipsecdns +++ b/etc/rc.newipsecdns @@ -45,8 +45,10 @@ } $ipseclck = lock('ipsecdns', LOCK_EX); - if(isset($config['ipsec']['enable'])) + if(isset($config['ipsec']['enable'])) { + sleep(15); log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing."); + } /* We will walk the list of hostnames found in the ipsec tunnel * configuration. Since we are already triggered by filterdns * that a hostname has changed we can proceed to compare the @@ -56,5 +58,7 @@ vpn_ipsec_configure(); + vpn_ipsec_force_reload(); + unlock($ipseclck); ?>