update route policy RETURN to firewall instead of accepting and skipping other rules.

This commit is contained in:
Eduardo Silva
2026-02-09 17:10:54 -03:00
parent a1c0eb8063
commit e742a3083b
2 changed files with 15 additions and 1 deletions

View File

@@ -200,7 +200,7 @@ def generate_route_policy_rules():
for source in sources:
for destination in destinations:
route_policy_rules += (
f"iptables -t filter -A WGWADM_ROUTE_POLICY -i wg+ -s {source} -d {destination} -j ACCEPT\n"
f"iptables -t filter -A WGWADM_ROUTE_POLICY -i wg+ -s {source} -d {destination} -j RETURN\n"
)
route_policy_rules += (

View File

@@ -64,6 +64,20 @@
<td></td>
</tr>
<tr class="fw_automatic_rule">
<td>-</td>
<td><i class="fas fa-info-circle" title="{% trans 'Automatic rule: Route Policy' %}"></i></td>
<td>wg+</td>
<td></td>
<td></td>
<td></td>
<td>{% trans 'all' %}</td>
<td></td>
<td></td>
<td>{% trans 'RETURN' %}</td>
<td></td>
</tr>
{% for rule in port_forward_list %}
{% if rule.add_forward_rule and current_chain == 'forward' %}
<tr class="fw_automatic_rule">