Another one from the Debian BTS - good to see a few folks getting into
Shorewall on Debian!  :-)

-- 
Paul
<http://paulgear.webhop.net>
--
Did you know?  Some on-line music services encourage you to share your
music with your friends legally.  Find out more about ethical digital
music distribution: http://magnatune.com/info/whynotevil
--- Begin Message ---
Package: shorewall
Version: 3.4.2-1
Priority: wishlist
Tags: patch

Currently shorewall's init script does not log start/stop/refresh/restart
times in the log file (/var/log/shorewall-init.log). A log file without any
date information is, IMHO, not that much useful.

Please consider using the attached patch to log the date.

Thanks

Javier
--- shorewall.orig	2007-06-26 12:18:59.000000000 +0200
+++ shorewall	2007-06-26 12:27:09.000000000 +0200
@@ -80,6 +80,8 @@
 # start the firewall
 shorewall_start () {
   echo -n "Starting \"Shorewall firewall\": "
+  echo "Starting \"Shorewall firewall\": " >> $INITLOG
+  date -R >> $INITLOG
   wait_for_pppd
   $SRWL start >> $INITLOG 2>&1 && echo "done." || echo_notdone
   return 0
@@ -88,6 +90,8 @@
 # stop the firewall
 shorewall_stop () {
   echo -n "Stopping \"Shorewall firewall\": "
+  echo "Stopping \"Shorewall firewall\": " >> $INITLOG
+  date -R >> $INITLOG
   $SRWL clear >> $INITLOG 2>&1 && echo "done." || echo_notdone
   return 0
 }
@@ -95,6 +99,8 @@
 # restart the firewall
 shorewall_restart () {
   echo -n "Restarting \"Shorewall firewall\": "
+  echo "Restarting \"Shorewall firewall\": " >> $INITLOG
+  date -R >> $INITLOG
   $SRWL restart >> $INITLOG 2>&1 && echo "done." || echo_notdone
   return 0
 }
@@ -102,6 +108,8 @@
 # refresh the firewall
 shorewall_refresh () {
   echo -n "Refreshing \"Shorewall firewall\": "
+  echo "Refreshing \"Shorewall firewall\": " >> $INITLOG
+  date -R >> $INITLOG
   $SRWL refresh >> $INITLOG 2>&1 && echo "done." || echo_notdone
   return 0
 }

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to