8 # BEFORE: DAEMON mountcritremote
14 desc="Internet Protocol Security protocol"
16 start_precmd="ipsec_prestart"
17 start_cmd="ipsec_start"
18 stop_precmd="test -f $ipsec_file"
20 reload_cmd="ipsec_reload"
21 extra_commands="reload"
22 ipsec_program="/sbin/setkey"
23 # ipsec_file is set by rc.conf
27 if [ ! -f "$ipsec_file" ]; then
28 warn "$ipsec_file not readable; ipsec start aborted."
37 echo "Installing ipsec manual keys/policies."
38 ${ipsec_program} -f $ipsec_file
43 echo "Clearing ipsec manual keys/policies."
45 # Still not 100% sure if we would like to do this.
46 # It is very questionable to do this during shutdown session
47 # since it can hang any of the remaining IPv4/v6 sessions.
55 echo "Reloading ipsec manual keys/policies."
56 ${ipsec_program} -f "$ipsec_file"