On 12/11/11 4:03 PM, Steven Jan Springl wrote:
>
> I have attached traces for both releases.
> From the traces it seems that 4.4.27 is using /sbin/iptables instead of
> /usr/local/sbin/iptables.
>
> I have also attached a copy of my shorewall.conf.
Thanks, Steven
The reason mine worked and yours didn't is that /usr/local/sbin/ appears
first in my PATH.
Patch is attached.
-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.cli b/Shorewall/lib.cli
index 196096d..4db0cb5 100644
--- a/Shorewall/lib.cli
+++ b/Shorewall/lib.cli
@@ -1818,13 +1818,15 @@ determine_capabilities() {
local chain
local chain1
- [ $g_family -eq 4 ] && tool=iptables || tool=ip6tables
+ if [ -z "$g_tool" ]; then
+ [ $g_family -eq 4 ] && tool=iptables || tool=ip6tables
- g_tool=$(mywhich $tool)
+ g_tool=$(mywhich $tool)
- if [ -z "$g_tool" ]; then
- echo " ERROR: No executable $tool binary can be found on your PATH"
>&2
- exit 1
+ if [ -z "$g_tool" ]; then
+ echo " ERROR: No executable $tool binary can be found on your
PATH" >&2
+ exit 1
+ fi
fi
qt $g_tool -t nat -L -n && NAT_ENABLED=Yes || NAT_ENABLED=
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel