summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2003-11-28 17:28:42 +0000
committerbms <bms@FreeBSD.org>2003-11-28 17:28:42 +0000
commitb39c505bb04eadb8ed1e0f8d48c84ef9b4154686 (patch)
treec3cad479395b5e3340abd65103e4610fb7b75e8c /etc
parentc06e5a954d0823e6eb2685d8b4d9072568909bcd (diff)
downloadFreeBSD-src-b39c505bb04eadb8ed1e0f8d48c84ef9b4154686.zip
FreeBSD-src-b39c505bb04eadb8ed1e0f8d48c84ef9b4154686.tar.gz
Add a means of starting an IKE daemon from the rc system at an appropriate
time during the boot process. This is needed in the case where NFS mounts from servers reachable only via IPSEC are in /etc/fstab. PR: conf/42497 Submitted by: Volker Stolz Approved by: re (rwatson)
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf3
-rw-r--r--etc/rc.d/ike18
2 files changed, 21 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 49e037f..bf013d4 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -71,6 +71,9 @@ firewall_logging="NO" # Set to YES to enable events logging
firewall_flags="" # Flags passed to ipfw when type is a file
ip_portrange_first="NO" # Set first dynamically allocated port
ip_portrange_last="NO" # Set last dynamically allocated port
+ike_enable="NO" # Enable IKE daemon (usually racoon or isakmpd)
+ike_program="/usr/local/sbin/isakmpd" # Path to IKE daemon
+ike_flags="" # Additional flags for IKE daemon
ipsec_enable="NO" # Set to YES to run setkey on ipsec_file
ipsec_file="/etc/ipsec.conf" # Name of config file for setkey
natd_program="/sbin/natd" # path to natd, if you want a different one.
diff --git a/etc/rc.d/ike b/etc/rc.d/ike
new file mode 100644
index 0000000..37422b6
--- /dev/null
+++ b/etc/rc.d/ike
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ike
+# REQUIRE: root beforenetlkm mountcritlocal
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD
+
+. /etc/rc.subr
+
+name="ike"
+rcvar=`set_rcvar`
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud