mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-17 20:01:09 +01:00
Formalize zone dynamic chain naming
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8417 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
5d459daa75
commit
b46bcd39a1
@ -95,6 +95,7 @@ our %EXPORT_TAGS = (
|
|||||||
dynamic_in
|
dynamic_in
|
||||||
dynamic_out
|
dynamic_out
|
||||||
dynamic_chains
|
dynamic_chains
|
||||||
|
zone_dynamic_chain
|
||||||
dnat_chain
|
dnat_chain
|
||||||
snat_chain
|
snat_chain
|
||||||
ecn_chain
|
ecn_chain
|
||||||
@ -665,7 +666,7 @@ sub use_input_chain($) {
|
|||||||
#
|
#
|
||||||
sub output_chain($)
|
sub output_chain($)
|
||||||
{
|
{
|
||||||
chain_base_cond($_[0]) . '_out';
|
chain_base_cond($_[0]) . '_out';
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -757,6 +758,11 @@ sub dynamic_chains( $ ) #$1 = interface
|
|||||||
( $c . '_dyni' , $c . '_dynf' , $c . '_dyno' );
|
( $c . '_dyni' , $c . '_dynf' , $c . '_dyno' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub zone_dynamic_chain( $ ) # $1 = zone
|
||||||
|
{
|
||||||
|
$_[0] . '_dyn';
|
||||||
|
|
||||||
|
}
|
||||||
#
|
#
|
||||||
# DNAT Chain from a zone
|
# DNAT Chain from a zone
|
||||||
#
|
#
|
||||||
|
@ -1496,7 +1496,7 @@ sub generate_matrix() {
|
|||||||
#
|
#
|
||||||
sub create_zone_dyn_chain( $$ ) {
|
sub create_zone_dyn_chain( $$ ) {
|
||||||
my ( $zone , $chainref ) = @_;
|
my ( $zone , $chainref ) = @_;
|
||||||
add_jump $chainref, "${zone}_dyn";
|
add_jump $chainref, zone_dynamic_chain $zone;
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user