{% extends 'base.html' %} {% 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 %} {% comment%} {% endcomment %} {% endfor %} {% if current_chain == 'forward' %} {% for wireguard_instance in wireguard_instances %} {% endfor %} {% endif %}
# In Out Source Destination Protocol Port State Action
- all Related
Established
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 }} {{ rule.port }} ACCEPT
- wg{{ rule.wireguard_instance.instance_id }} {% if rule.ip_address %} {{ rule.ip_address }} {% elif rule.peer %} {{ rule.peer }} {% endif %} {{ rule.get_protocol_display }} {{ rule.port }} 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 %}
{{ rule.get_protocol_display|default_if_none:'all' }} {{ rule.destination_port|default_if_none:'' }} {% if rule.state_new %}{% if rule.not_state %}! {% endif %}New
{% endif %} {% if rule.state_related %}{% if rule.not_state %}! {% endif %}Related
{% endif %} {% if rule.state_established %}{% if rule.not_state %}! {% endif %}Established
{% endif %} {% if rule.state_invalid %}{% if rule.not_state %}! {% endif %}Invalid
{% endif %} {% if rule.state_untracked %}{% if rule.not_state %}! {% endif %}Untracked
{% endif %}
{{ rule.get_rule_action_display }}{{ rule. }}
- wg{{ wireguard_instance.instance_id }} wg{{ wireguard_instance.instance_id }} {% if firewall_settings.allow_peer_to_peer %} ACCEPT {% else %} REJECT {% endif %}
- wg+ wg+ {% if firewall_settings.allow_instance_to_instance %}ACCEPT{% else %}REJECT{% endif %}
Create Firewall Rule Firewall Settings Display automatic rules
{% endblock %} {% block custom_page_scripts %} {% endblock %}