From 23d2e6390f663b99b95745fa0828e43bddd8b5cd Mon Sep 17 00:00:00 2001 From: Florin Grad Date: Mon, 16 Sep 2002 17:37:19 +0000 Subject: add internal_ports variable --- perl-install/network/shorewall.pm | 2 ++ 1 file changed, 2 insertions(+) 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} ]: (), -- cgit v1.2.1