On 5/12/12 10:12 AM, John McMonagle wrote: > On Saturday 12 May 2012 09:47:50 Tom Eastep wrote: >> On 05/11/2012 02:04 PM, Tom Eastep wrote: >>> On 05/11/2012 11:52 AM, John McMonagle wrote: >>>> eth2.status did not change. >>>> Got up email from lsm. >>>> >>>> Obviously missed something :-( >>>> >>>> Do you see anything or have suggestions on how to debug? >>> >>> - Set STARTUP_LOG=/var/log/shorewall-init.log >>> - Set LOG_VERBOSITY=1 >>> >>> Look at the log while testing to see what is going on. >> >> I've discovered that the 'disable' command is not altering the .status >> file. Patch attached. >> >> patch /usr/share/shorewall/Shorewall/Providers < STATUS.patch >> >> -Tom > > Thanks Tom > > It may be a week before I can try it. > It's not the sort of thing I want to try remotely.
You'll want this patch also.
patch /usr/share/shorewall/lib.core < ISUSABLE.patch
-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/lib.core b/Shorewall/lib.core
index 77d00ca..660143c 100644
--- a/Shorewall/lib.core
+++ b/Shorewall/lib.core
@@ -176,8 +176,24 @@ interface_is_up() {
#
interface_is_usable() # $1 = interface
{
- [ "$1" = lo ] && return 0
- interface_is_up $1 && [ "$(find_first_interface_address_if_any $1)" != ::
] && run_isusable_exit $1
+ local status;
+ status=0
+
+ if [ "$1" != lo ]; then
+ if [ $g_family -eq 4 ]; then
+ if interface_is_up $1 && [ "$(find_first_interface_address_if_any
$1)" != 0.0.0.0 -a "$COMMAND" != enable ]; then
+ run_isusable_exit $1
+ status=$?
+ fi
+ else
+ if interface_is_up $1 && [ "$(find_first_interface_address_if_any
$1)" != :: -a "$COMMAND" != enable ]; then
+ run_isusable_exit $1
+ status=$?
+ fi
+ fi
+ fi
+
+ return $status
}
#
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
