mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-25 23:59:01 +01:00
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:
parent
433e4a6f51
commit
d1c9d21074
@ -1917,7 +1917,8 @@ sub generate_matrix() {
|
|||||||
addnatjump 'POSTROUTING' , snat_chain( $interface ), match_dest_dev( $interface );
|
addnatjump 'POSTROUTING' , snat_chain( $interface ), match_dest_dev( $interface );
|
||||||
}
|
}
|
||||||
|
|
||||||
addnatjump 'PREROUTING', 'dnat', '';
|
addnatjump 'PREROUTING' , 'nat_in' , '';
|
||||||
|
addnatjump 'POSTROUTING' , 'nat_out' , '';
|
||||||
|
|
||||||
if ( $config{DYNAMIC_ZONES} ) {
|
if ( $config{DYNAMIC_ZONES} ) {
|
||||||
for my $interface ( @interfaces ) {
|
for my $interface ( @interfaces ) {
|
||||||
@ -1925,6 +1926,8 @@ sub generate_matrix() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addnatjump 'PREROUTING', 'dnat', '';
|
||||||
|
|
||||||
for my $interface ( @interfaces ) {
|
for my $interface ( @interfaces ) {
|
||||||
addnatjump 'PREROUTING' , input_chain( $interface ) , match_source_dev( $interface );
|
addnatjump 'PREROUTING' , input_chain( $interface ) , match_source_dev( $interface );
|
||||||
addnatjump 'POSTROUTING' , output_chain( $interface ) , match_dest_dev( $interface );
|
addnatjump 'POSTROUTING' , output_chain( $interface ) , match_dest_dev( $interface );
|
||||||
|
Loading…
Reference in New Issue
Block a user