summaryrefslogtreecommitdiffstats
path: root/etc/rc.newipsecdns
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-01-13 17:23:46 +0000
committerSeth Mos <seth.mos@xs4all.nl>2009-01-13 17:23:46 +0000
commitc1bf317aa3edc375fb5e78b772b857cdf5006052 (patch)
tree05e7121981f98fd306aafa94b81623358511d9ec /etc/rc.newipsecdns
parent7723c7e032ef7e284f0048e50f593b9f902e663d (diff)
downloadpfsense-c1bf317aa3edc375fb5e78b772b857cdf5006052.zip
pfsense-c1bf317aa3edc375fb5e78b772b857cdf5006052.tar.gz
Make rc.newipsecdns reload dynamic DNS tunnels
Diffstat (limited to 'etc/rc.newipsecdns')
-rwxr-xr-xetc/rc.newipsecdns13
1 files changed, 9 insertions, 4 deletions
diff --git a/etc/rc.newipsecdns b/etc/rc.newipsecdns
index 85c7032..4979505 100755
--- a/etc/rc.newipsecdns
+++ b/etc/rc.newipsecdns
@@ -5,6 +5,7 @@
part of m0n0wall (http://m0n0.ch/wall)
Copyright (C) 2007 Manuel Kasper <mk@neon1.net>.
+ Copyright (C) 2009 Seth Mos <seth.mos@xs4all.nl>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -33,14 +34,18 @@
require_once("config.inc");
require_once("functions.inc");
- /* the IP address that a tunnel's remote gateway host name resolves
- to has changed; reload IPsec completely (we can't only change one
- specific tunnel at this time) */
-
/* make sure to wait until the boot scripts have finished */
while (file_exists("{$g['varrun_path']}/booting")) {
sleep(1);
}
+ log_error("IPSEC: One or more IPSEC tunnel endpoints has changed IP. Refreshing.");
+ /* We will walk the list of hostnames found in the ipsec tunnel
+ * configuration. Since we are already triggered by dnswatch
+ * that a hostname has changed we can proceed to compare the
+ * new IP address with the old address from the DNS cache.
+ */
+ vpn_ipsec_refresh_policies();
+
vpn_ipsec_configure();
?>
OpenPOWER on IntegriCloud