summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/shorewall.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm
index 90705ee41..07b791ed1 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -41,6 +41,11 @@ sub get_ifcfg_interface() {
}
sub get_shorewall_interface() {
+ #- read shorewall configuration first
+ foreach (get_config_file('interfaces')) {
+ $_->[0] eq 'net' and return $_->[1];
+ }
+ #- else try to find the best interface available
my $default_dev = get_ifcfg_interface();
$default_dev =~ /^ippp/ && "ippp+" ||
$default_dev =~ /^ppp/ && "ppp+" ||