Fix PATH handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6953 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-25 14:21:08 +00:00
parent 3dc7a3937a
commit 7302e1389a
3 changed files with 7 additions and 6 deletions

View File

@ -6,6 +6,8 @@ Changes in 4.0.1
3) Correct handling of 'ipsec' option in the hosts file. 3) Correct handling of 'ipsec' option in the hosts file.
4) Corrent handling of 'PATH' in Shorewall-perl.
Changes in 4.0.0 Final Changes in 4.0.0 Final
1) Fix lite install.sh manpage problem. 1) Fix lite install.sh manpage problem.

View File

@ -55,6 +55,9 @@ Problems corrected in 4.0.1.
Use of uninitialized value in string ne at /usr/share/shorewall-perl/Shorewall/Tc.pm line 285, <$currentfile> line 18. Use of uninitialized value in string ne at /usr/share/shorewall-perl/Shorewall/Tc.pm line 285, <$currentfile> line 18.
ERROR: Class Id 1:110 is not associated with device eth0 : /etc/shorewall/tcrules (line 18) ERROR: Class Id 1:110 is not associated with device eth0 : /etc/shorewall/tcrules (line 18)
6) If no PATH was available when Shorewall-perl is run, a Perl run-time
warning was issued.
Other changes in Shorewall 4.0.1. Other changes in Shorewall 4.0.1.
1) A new EXPAND_POLICIES option is added to shorewall.conf. The 1) A new EXPAND_POLICIES option is added to shorewall.conf. The

View File

@ -196,12 +196,8 @@ sub setup_ecn()
for my $interface ( @interfaces ) { for my $interface ( @interfaces ) {
my $chainref = ensure_chain 'mangle', ecn_chain( $interface ); my $chainref = ensure_chain 'mangle', ecn_chain( $interface );
if ( $capabilities{MANGLE_FORWARD} ) { add_rule $mangle_table->{PREROUTING}, "-p tcp -o $interface -j $chainref->{name}";
add_rule $mangle_table->{POSTROUTING}, "-p tcp -o $interface -j $chainref->{name}"; add_rule $mangle_table->{OUTPUT}, "-p tcp -o $interface -j $chainref->{name}";
} else {
add_rule $mangle_table->{PREROUTING}, "-p tcp -o $interface -j $chainref->{name}";
add_rule $mangle_table->{OUTPUT}, "-p tcp -o $interface -j $chainref->{name}";
}
} }
for my $host ( @hosts ) { for my $host ( @hosts ) {