## -*- mode: shell-script; -*- 
##
## To be able to make changes to the part of configuration created
## from this configlet you need to copy this file to the directory
## fwbuilder/configlets/ipf/ in your home directory and modify it.
## Double "##" comments are removed during processing but single "#"
## comments are be retained and appear in the generated script. Empty
## lines are removed as well.  
##
## Configlets support simple macro language with these constructs:
## {{$var}} is variable expansion
## {{if var}} is conditional operator.
##
{{if dyn_addr}}
{{if filter}}
cat {{$remote_file}} | grep -v '#' | {{$interface_name_substitution_commands}} | $IPF {{$ipf_debug}} -I -f -
{{endif}}

{{if nat}}
cat {{$remote_file}} | grep -v '#' | {{$interface_name_substitution_commands}} | $IPNAT {{$ipf_debug}} -f -
{{endif}}
{{endif}}

{{if not_dyn_addr}}
{{if filter}}
$IPF {{$ipf_debug}} -I -f {{$remote_file}}
{{endif}}

{{if nat}}
$IPNAT {{$ipf_debug}} -f {{$remote_file}}
{{endif}}
{{endif}}
