On 01/20/2012 08:36 AM, J. Randall Owens wrote: > On 01/20/2012 08:28 AM, Tom Eastep wrote: >> Troy, >> >> Please try this patch. You will need to apply it as follows: >> >> patch /etc/network/if-up.d/shorewall < INIT.patch >> patch /etc/network/if-post-down.d/shorewall < INIT.patch >> >> Please let me know if this solves the issue. > > Psst. It seems you forgot to actually attach the patch (or link to it > or otherwise make it available). The only attachment I see is the > signature.asc. >
-Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
diff --git a/Shorewall-init/ifupdown.sh b/Shorewall-init/ifupdown.sh
index af94292..5fd7a4f 100644
--- a/Shorewall-init/ifupdown.sh
+++ b/Shorewall-init/ifupdown.sh
@@ -184,8 +184,52 @@ fi
for PRODUCT in $PRODUCTS; do
VARDIR=/var/lib/$PRODUCT
[ -f /etc/$PRODUCT/vardir ] && . /etc/$PRODUCT/vardir
+
if [ -x $VARDIR/firewall ]; then
- ( . /usr/share/$PRODUCT/lib.base
+ g_program=$PRODUCT
+
+ case $PRODUCT in
+ shorewall)
+ SHAREDIR=/usr/share/shorewall
+ CONFDIR=/etc/shorewall
+ g_product="Shorewall"
+ g_family=4
+ g_tool=
+ g_basedir=/usr/share/shorewall
+ g_lite=
+ ;;
+ shorewall6)
+ SHAREDIR=/usr/share/shorewall6
+ CONFDIR=/etc/shorewall6
+ g_product="Shorewall6"
+ g_family=6
+ g_tool=
+ g_basedir=/usr/share/shorewall
+ g_lite=
+ ;;
+ shorewall-lite)
+ SHAREDIR=/usr/share/shorewall-lite
+ CONFDIR=/etc/shorewall-lite
+ g_product="Shorewall Lite"
+ g_family=4
+ g_base=shorewall
+ g_tool=iptables
+ g_basedir=/usr/share/shorewall-lite
+ g_lite=Yes
+ ;;
+ shorewall6-lite)
+ SHAREDIR=/usr/share/shorewall6-lite
+ CONFDIR=/etc/shorewall6-lite
+ g_product="Shorewall6 Lite"
+ g_family=6
+ g_base=shorewall6
+ g_tool=ip6tables
+ g_basedir=/usr/share/shorewall6-lite
+ g_lite=Yes
+ ;;
+ esac
+
+ ( . /usr/share/$PRODUCT/lib.base
mutex_on
${VARDIR}/firewall -V0 $COMMAND $INTERFACE || echo_notdone
mutex_off
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
