Unix Technical Forum

/etc/rc doesn't create pflog0 unless pflogd is used

This is a discussion on /etc/rc doesn't create pflog0 unless pflogd is used within the mailing.openbsd.tech forums, part of the OpenBSD category; --> If pflogd is disabled, pflog0 doesn't get created, so this happens: starting network daemons: dhcpd sendmail ftp-proxy identd inetd ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 10:35 AM
Stuart Henderson
 
Posts: n/a
Default /etc/rc doesn't create pflog0 unless pflogd is used

If pflogd is disabled, pflog0 doesn't get created, so this happens:

starting network daemons: dhcpd sendmail ftp-proxy identd inetd sshd
spamd spamlogdspamlogd: couldn't initialize pcap: Device not configured
..

I think this is better:

Index: rc
================================================== =================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.309
diff -u -p -r1.309 rc
--- etc/rc 9 Jan 2008 21:38:19 -0000 1.309
+++ etc/rc 16 Jan 2008 00:51:29 -0000
@@ -298,11 +298,13 @@ if [ -d /var/empty ]; then
fi
syslogd ${syslogd_flags}

-if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then
+if [ X"${pf}" != X"NO" ]; then
ifconfig pflog0 create >/dev/null 2>&1
if ifconfig pflog0 >/dev/null 2>&1; then
ifconfig pflog0 up
- pflogd ${pflogd_flags}
+ if [ X"${pflogd_flags}" != X"NO" ]; then
+ pflogd ${pflogd_flags}
+ fi
fi
fi

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 10:14 AM.


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