From c06c616558d754e1d02e0645cc3c6e039a5e0bdc Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 28 Mar 2013 05:35:58 +0000 Subject: [PATCH] fix for bug 3446: for SLES, do not add FW_DEV_EXT if there is only nic git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/configfirewall | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/configfirewall b/xCAT/postscripts/configfirewall index 477614c1d..ddd864794 100755 --- a/xCAT/postscripts/configfirewall +++ b/xCAT/postscripts/configfirewall @@ -102,7 +102,12 @@ elsif (-f "/etc/SuSE-release") my $privintf = join(' ', @privates); # Configuration content - $conf .= "FW_DEV_EXT=\"$::opt_public\"\n"; + # if the public and private interface is the same, + # do not set FW_DEV_EXT + if ($::opt_public ne $privintf) + { + $conf .= "FW_DEV_EXT=\"$::opt_public\"\n"; + } $conf .= "FW_DEV_INT=\"$privintf\"\n"; $conf .= "FW_MASQUERADE=\"yes\"\n"; $conf .= "FW_PROTECT_FROM_INT=\"no\"\n";