{% extends "base.html" %}
{% block title %}NAT - Vacuum Wall{% endblock %}
{% block content %}
Masquerade (Source NAT)
| Zone |
Masquerade |
{% for zone in (zones or []) %}
| {{ zone.get('name', 'unnamed') }} |
|
{% endfor %}
{% if not (zones or []) %}
| No zones configured |
{% endif %}
Port Forwarding (DNAT)
| Zone |
Proto |
Port |
Target |
Tgt Port |
Action |
{% set all_forwards = [] %}
{% for zone in (zones or []) %}
{% for fwd in zone.get('forward_ports', []) %}
{% set _ = all_forwards.append({'zone': zone.get('name'), 'proto': fwd.get('proto'), 'port': fwd.get('port'), 'toaddr': fwd.get('toaddr'), 'toport': fwd.get('toport')}) %}
{% endfor %}
{% endfor %}
{% for fwd in all_forwards %}
| {{ fwd.zone }} |
{{ fwd.proto }} |
{{ fwd.port }} |
{{ fwd.toaddr }} |
{{ fwd.toport }} |
|
{% endfor %}
{% if not all_forwards %}
| No port forwarding rules configured |
{% endif %}
{% endblock %}