summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2002-09-16 17:37:19 +0000
committerFlorin Grad <florin@mandriva.com>2002-09-16 17:37:19 +0000
commit23d2e6390f663b99b95745fa0828e43bddd8b5cd (patch)
tree60ece349c7558dc9ff6b8e6e9cd3842ccdcf73c4 /perl-install
parent5687964bff2de79cd44ca34b5873c654f34970c4 (diff)
downloaddrakx-23d2e6390f663b99b95745fa0828e43bddd8b5cd.tar
drakx-23d2e6390f663b99b95745fa0828e43bddd8b5cd.tar.gz
drakx-23d2e6390f663b99b95745fa0828e43bddd8b5cd.tar.bz2
drakx-23d2e6390f663b99b95745fa0828e43bddd8b5cd.tar.xz
drakx-23d2e6390f663b99b95745fa0828e43bddd8b5cd.zip
add internal_ports variable
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/shorewall.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm
index 055d1d95c..b48275ab3 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -10,6 +10,7 @@ use common;
use log;
my @drakgw_ports = qw(domain bootps http https 631 imap pop3 smtp nntp ntp);
+my @internal_ports = qw(631 137 138 139);
sub check_iptables {
my ($in) = @_;
@@ -117,6 +118,7 @@ sub write {
{ map_each { [ 'ACCEPT', $_, 'fw', $::a, join(',', @$::b), '-' ] } %ports_by_proto }
('net', if_($conf->{masquerade}, 'masq'), if_($conf->{loc_interface}, 'loc'))),
if_($conf->{masquerade}, map { [ 'ACCEPT', 'masq', 'fw', $_, join(',', @drakgw_ports), '-' ] } 'tcp', 'udp'),
+ if_($conf->{masquerade}, map { [ 'ACCEPT', 'fw', 'masq', $_, join(',', @internal_ports), '-' ] } 'tcp', 'udp'),
);
set_config_file('masq',
$conf->{masquerade} ? [ $conf->{net_interface}, $conf->{masquerade}{subnet} ]: (),