diff options
author | dillon <dillon@FreeBSD.org> | 2000-05-16 06:52:11 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2000-05-16 06:52:11 +0000 |
commit | 78844f73606f87da0621ddf0817f927ccffc3cd3 (patch) | |
tree | 02f24b4cb56718136703bc40371df158c6020512 /etc/rc.network | |
parent | 5c271ae7a08daabeaa99751e6f352ca12798a9ae (diff) | |
download | FreeBSD-src-78844f73606f87da0621ddf0817f927ccffc3cd3.zip FreeBSD-src-78844f73606f87da0621ddf0817f927ccffc3cd3.tar.gz |
Add ipsec_enable and ipsec_file options to run IPSEC's setkey program
with the specified configuration file at the appropriate time.
Diffstat (limited to 'etc/rc.network')
-rw-r--r-- | etc/rc.network | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/rc.network b/etc/rc.network index e37d25f..fc7cdd0 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -352,6 +352,17 @@ network_pass1() { esac echo '.' + case ${ipsec_enable} in + [Yy][Ee][Ss]) + if [ -f ${ipsec_file} ]; then + echo ' ipsec: enabled' + setkey -f ${ipsec_file} + else + echo ' ipsec: file not found' + fi + ;; + esac + echo -n 'routing daemons:' case ${router_enable} in [Yy][Ee][Ss]) |