source legacy config after macros but before DROP policy

This commit is contained in:
Jérémy Lecour 2022-04-28 18:55:53 +02:00 committed by Jérémy Lecour
parent def7813d71
commit 80b0d35e2f
2 changed files with 5 additions and 4 deletions

View file

@ -15,6 +15,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
* use long options in some places * use long options in some places
* output is normalized * output is normalized
* source legacy config after macros but before DROP policy
### Deprecated ### Deprecated

View file

@ -842,6 +842,10 @@ start() {
${IPT6} -A INPUT -p icmpv6 -j ACCEPT ${IPT6} -A INPUT -p icmpv6 -j ACCEPT
fi fi
# source config file for remaining commands
if is_legacy_config; then
source_file_or_error "${config_file}"
fi
# IPTables policy # IPTables policy
################# #################
@ -878,10 +882,6 @@ start() {
${IPT6} -A OUTPUT -p udp -j DROP ${IPT6} -A OUTPUT -p udp -j DROP
fi fi
if is_legacy_config; then
source_file_or_error "${config_file}"
fi
# Finish # Finish
######################## ########################