Unix Technical Forum

Small patch to start ipsecctl on boot

This is a discussion on Small patch to start ipsecctl on boot within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Here's a patch that should start ipsecctl in the appropriate place in /etc/rc during boot. I know this would ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:16 AM
Jason Crawford
 
Posts: n/a
Default Small patch to start ipsecctl on boot

Here's a patch that should start ipsecctl in the appropriate place in
/etc/rc during boot. I know this would be very handy for me if it were
in /etc/rc

Jason

Index: rc
================================================== =================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.277
diff -u -r1.277 rc
--- rc 12 Jan 2006 21:54:15 -0000 1.277
+++ rc 13 Jan 2006 22:31:47 -0000
@@ -326,6 +326,12 @@
echo 'starting isakmpd'; isakmpd ${isakmpd_flags}
fi

+if [ X"${ipsec}" != X"NO" ]; then
+ if [ -f ${ipsec_rules} ]; then
+ ipsecctl -f ${ipsec_rules}
+ fi
+fi
+
echo -n 'starting initial daemons:'

# $portmap is imported from /etc/rc.conf;
Index: rc.conf
================================================== =================
RCS file: /cvs/src/etc/rc.conf,v
retrieving revision 1.109
diff -u -r1.109 rc.conf
--- rc.conf 16 Nov 2005 09:19:36 -0000 1.109
+++ rc.conf 13 Jan 2006 22:31:47 -0000
@@ -61,6 +61,7 @@
lockd=NO
amd=NO
pf=NO # Packet filter / NAT
+ipsec=NO # IPsec
portmap=NO # Note: inetd(8) rpc services need portmap too
inetd=YES # almost always needed
check_quotas=YES # NO may be desirable in some YP environments
@@ -85,6 +86,7 @@
syslogd_flags= # add more flags, ie. "-u -a /chroot/dev/log"
pf_rules=/etc/pf.conf # Packet filter rules file
pflogd_flags= # add more flags, ie. "-s 256"
+ipsec_rules=/etc/ipsec.conf # IPsec rules file
afsd_flags= # Flags passed to afsd
shlib_dirs= # extra directories for ldconfig, separated
# by space

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com