{% extends 'base.html' %} {% load i18n %} {% block page_custom_head %} {% endblock%} {% block content %}
{% include "firewall/firewall_nav_tabs.html" %}
{% for rule in port_forward_list %} {% if rule.add_forward_rule and current_chain == 'forward' %} {% elif rule.masquerade_source and current_chain == 'postrouting' %} {% endif %} {% endfor %} {% for rule in firewall_rule_list %} {% endfor %} {% if current_chain == 'forward' %} {% for wireguard_instance in wireguard_instances %} {% endfor %} {% endif %}
# {% trans 'In' %} {% trans 'Out' %} {% trans 'Source' %} {% trans 'Destination' %} {% trans 'Protocol' %} {% trans 'Port' %} {% trans 'State' %} {% trans 'Action' %}
- {% trans 'all' %} {% trans 'Related' %}
{% trans 'Established' %}
{% trans 'ACCEPT' %}
- {{ 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' %}
- 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
{{ 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 }}
- wg{{ wireguard_instance.instance_id }} wg{{ wireguard_instance.instance_id }} {% if firewall_settings.allow_peer_to_peer %} {% trans 'ACCEPT' %} {% else %} {% trans 'REJECT' %} {% endif %}
- wg+ wg+ {% if firewall_settings.allow_instance_to_instance %}{% trans 'ACCEPT' %}{% else %}{% trans 'REJECT' %}{% endif %}
{% trans 'Create Firewall Rule' %} {% trans 'Firewall Settings' %} {% trans 'Display automatic rules' %}
{% endblock %} {% block custom_page_scripts %} {% endblock %}