Fix 'Yes' in 'ALL INTERFACES' nat column

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8204 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-02-18 18:26:35 +00:00
parent 433e4a6f51
commit d1c9d21074

View File

@ -1917,7 +1917,8 @@ sub generate_matrix() {
addnatjump 'POSTROUTING' , snat_chain( $interface ), match_dest_dev( $interface );
}
addnatjump 'PREROUTING', 'dnat', '';
addnatjump 'PREROUTING' , 'nat_in' , '';
addnatjump 'POSTROUTING' , 'nat_out' , '';
if ( $config{DYNAMIC_ZONES} ) {
for my $interface ( @interfaces ) {
@ -1925,6 +1926,8 @@ sub generate_matrix() {
}
}
addnatjump 'PREROUTING', 'dnat', '';
for my $interface ( @interfaces ) {
addnatjump 'PREROUTING' , input_chain( $interface ) , match_source_dev( $interface );
addnatjump 'POSTROUTING' , output_chain( $interface ) , match_dest_dev( $interface );