summaryrefslogtreecommitdiffstats
path: root/perl-install/network/shorewall.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-26 11:10:26 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-26 11:10:26 +0000
commitf93a644e3d4d9cd81f6e377dc57fa46c906929ae (patch)
tree68f62f57ac65e929defd5e49748e763cad98f684 /perl-install/network/shorewall.pm
parent289cdfbdf988fb3b2f0f659c4dc95a67ef0335ba (diff)
downloaddrakx-f93a644e3d4d9cd81f6e377dc57fa46c906929ae.tar
drakx-f93a644e3d4d9cd81f6e377dc57fa46c906929ae.tar.gz
drakx-f93a644e3d4d9cd81f6e377dc57fa46c906929ae.tar.bz2
drakx-f93a644e3d4d9cd81f6e377dc57fa46c906929ae.tar.xz
drakx-f93a644e3d4d9cd81f6e377dc57fa46c906929ae.zip
don't write alias interfaces in shorewall interfaces file
Diffstat (limited to 'perl-install/network/shorewall.pm')
-rw-r--r--perl-install/network/shorewall.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm
index 2775f2e08..7e5d97363 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -79,7 +79,8 @@ sub read_default_interfaces {
sub set_net_interface {
my ($conf, $interface) = @_;
$conf->{net_interface} = $interface;
- $conf->{loc_interface} = [ grep { $_ ne $interface } detect_devices::getNet() ];
+ #- keep all other interfaces (but alias interfaces) in local zone
+ $conf->{loc_interface} = [ grep { !/:/ && $_ ne $interface } detect_devices::getNet() ];
}
sub read {