- |
|
|
|
|
|
{% trans 'all' %} |
|
{% trans 'Related' %}
{% trans 'Established' %}
|
{% trans 'ACCEPT' %} |
|
{% for rule in port_forward_list %}
{% if rule.add_forward_rule and current_chain == 'forward' %}
- |
|
{{ firewall_settings.wan_interface }} |
wg{{ rule.wireguard_instance.instance_id }} |
|
{% if rule.ip_address %}
{{ rule.ip_address }}
{% elif rule.peer %}
{{ rule.peer }}
{% endif %}
|
{{ rule.get_protocol_display }} |
{% if rule.port_forward %}
{{ rule.port_forward }}
{% else %}
{{ rule.port }}
{% endif %}
|
|
{% trans 'ACCEPT' %} |
|
{% elif rule.masquerade_source and current_chain == 'postrouting' %}
- |
|
|
wg{{ rule.wireguard_instance.instance_id }} |
|
{% if rule.ip_address %}
{{ rule.ip_address }}
{% elif rule.peer %}
{{ rule.peer }}
{% endif %}
|
{{ rule.get_protocol_display }} |
{% if rule.port_forward %}
{{ rule.port_forward }}
{% else %}
{{ rule.port }}
{% endif %}
|
|
MASQUERADE |
|
{% endif %}
{% endfor %}
{% for rule in firewall_rule_list %}
{{ rule.sort_order }} |
{% if rule.description %}{% endif %} |
{{ rule.in_interface|default_if_none:'' }} |
{{ rule.out_interface|default_if_none:'' }} |
{% if rule.source_ip %}{% if rule.not_source %}! {% endif %}{{ rule.source_ip }}/{{ rule.source_netmask }} {% endif%}
{% for peer in rule.source_peer.all %}{% if rule.not_source %}! {% endif %}{{ peer }}{% if rule.source_peer_include_networks %} +{% endif %} {% endfor %}
|
{% if rule.destination_ip %}{% if rule.not_destination %}! {% endif %}{{ rule.destination_ip }}/{{ rule.destination_netmask }} {% endif%}
{% for peer in rule.destination_peer.all %}{% if rule.not_destination %}! {% endif %}{{ peer }}{% if rule.destination_peer_include_networks %} +{% endif %} {% endfor %}
|
{% if rule.protocol %}{{ rule.get_protocol_display }}{% else %}{% trans 'all' %}{% endif %} |
{{ rule.destination_port|default_if_none:'' }} |
{% if rule.state_new %}{% if rule.not_state %}! {% endif %}{% trans 'New' %} {% endif %}
{% if rule.state_related %}{% if rule.not_state %}! {% endif %}{% trans 'Related' %} {% endif %}
{% if rule.state_established %}{% if rule.not_state %}! {% endif %}{% trans 'Established' %} {% endif %}
{% if rule.state_invalid %}{% if rule.not_state %}! {% endif %}{% trans 'Invalid' %} {% endif %}
{% if rule.state_untracked %}{% if rule.not_state %}! {% endif %}{% trans 'Untracked' %} {% endif %}
|
{{ rule.get_rule_action_display }} |
|
{% endfor %}
{% if current_chain == 'forward' %}
{% for wireguard_instance in wireguard_instances %}
- |
|
wg{{ wireguard_instance.instance_id }} |
wg{{ wireguard_instance.instance_id }} |
|
|
|
|
|
{% if firewall_settings.allow_peer_to_peer %}
{% trans 'ACCEPT' %}
{% else %}
{% trans 'REJECT' %}
{% endif %}
|
|
{% endfor %}
- |
|
wg+ |
wg+ |
|
|
|
|
|
{% if firewall_settings.allow_instance_to_instance %}{% trans 'ACCEPT' %}{% else %}{% trans 'REJECT' %}{% endif %} |
|
{% endif %}