Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simple Deploy- and Management
package.pf
Commits
e62fbab8
Commit
e62fbab8
authored
Nov 25, 2020
by
Pietsch, Martin
Browse files
bugfix: missing NAT settings
parent
66abaed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/pf.conf.j2
View file @
e62fbab8
{% if network.nat is defined %}
{% set natifs = [] %}
{% for nif in network.nat if not nif.intdevice in natifs %}
{% for nif in network.nat if not
("%s:%s" | format(nif.extdevice,
nif.intdevice
))
in natifs %}
{% if loop.index == 1 %}
scrub in all
{% endif %}
{% do natifs.append(nif.intdevice) %}
{% do natifs.append(
"%s:%s" | format(nif.extdevice,
nif.intdevice)
)
%}
{% if nif.ipv4 is defined %}
{{ 'nat on %s inet from %s:network to any -> (%s)' | format(nif.extdevice, nif.intdevice, nif.extdevice) }}
{% endif %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment