Commit e62fbab8 authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

bugfix: missing NAT settings

parent 66abaed4
{% 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 %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment