summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-01 09:47:45 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-01 09:47:45 +0000
commitea3f7f40f973df8fc8a2ddc75a0e5ae43efd1ff8 (patch)
tree4056575aeb2b3dc6bae8b4f6cf819a76184aceb5 /perl-install
parentb932f4b257875b3f30950f6ddc5760ac2f5be975 (diff)
downloaddrakx-ea3f7f40f973df8fc8a2ddc75a0e5ae43efd1ff8.tar
drakx-ea3f7f40f973df8fc8a2ddc75a0e5ae43efd1ff8.tar.gz
drakx-ea3f7f40f973df8fc8a2ddc75a0e5ae43efd1ff8.tar.bz2
drakx-ea3f7f40f973df8fc8a2ddc75a0e5ae43efd1ff8.tar.xz
drakx-ea3f7f40f973df8fc8a2ddc75a0e5ae43efd1ff8.zip
don't write loc to fw ACCEPT rules, we always reset the policy to accept
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/shorewall.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm
index 11ee3c70f..aeb951d78 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -133,9 +133,7 @@ sub write {
set_config_file('rules',
if_($use_pptp, [ 'ACCEPT', 'fw', 'loc:10.0.0.138', 'tcp', '1723' ]),
if_($use_pptp, [ 'ACCEPT', 'fw', 'loc:10.0.0.138', 'gre' ]),
- (map {
- map_each { [ 'ACCEPT', $_, 'fw', $::a, join(',', @$::b), '-' ] } %ports_by_proto;
- } ('net', if_($conf->{loc_interface}[0], 'loc'))),
+ (map_each { [ 'ACCEPT', 'net', 'fw', $::a, join(',', @$::b), '-' ] } %ports_by_proto),
(map {
map_each { [ 'REDIRECT', 'loc', $::a, $_, $::b, '-' ] } %{$conf->{redirects}{$_}};
} keys %{$conf->{redirects}}),