Skip site navigation (1)Skip section navigation (2)
Date:      19 Aug 2002 22:02:53 -0000
From:      steve@zpfe.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/41801: Patch to rc.firewall to log missing firewall rules file
Message-ID:  <20020819220253.37699.qmail@magpie.zpfe.com>

next in thread | raw e-mail | index | archive | help

>Number:         41801
>Category:       conf
>Synopsis:       Patch to rc.firewall to log missing firewall rules file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 19 15:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     steve@zpfe.com
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
self
>Environment:
System: FreeBSD magpie.zpfe.com 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #4: Sat Aug 17 14:22:34 CDT 2002 root@magpie.zpfe.com:/usr/obj/usr/src/sys/MAGPIE i386


>Description:
In troubleshooting a firewall problem I had, there was a subtle typo in the 
name of the firewall rules file.  The proposed patch makes it clear that
the specified rules file does not exist.
>How-To-Repeat:
Specify firewall_type in rc.conf with an invalid file name.
>Fix:
This is a patch to /etc/rc.firewall version 1.30.2.15.

--- rc.firewall.patch begins here ---
*** /etc/rc.firewall	Wed Jul 10 15:55:54 2002
--- /etc/rc.firewall.new	Mon Aug 19 15:39:22 2002
***************
*** 296,301 ****
--- 296,303 ----
  *)
  	if [ -r "${firewall_type}" ]; then
  		${fwcmd} ${firewall_flags} ${firewall_type}
+ 	else
+ 		echo "Firewall rules file ${firewall_type} not found."
  	fi
  	;;
  esac
--- rc.firewall.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020819220253.37699.qmail>