mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-02-20 03:36:16 +00:00
update route policy RETURN to firewall instead of accepting and skipping other rules.
This commit is contained in:
@@ -200,7 +200,7 @@ def generate_route_policy_rules():
|
|||||||
for source in sources:
|
for source in sources:
|
||||||
for destination in destinations:
|
for destination in destinations:
|
||||||
route_policy_rules += (
|
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 += (
|
route_policy_rules += (
|
||||||
|
|||||||
@@ -64,6 +64,20 @@
|
|||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</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 %}
|
{% for rule in port_forward_list %}
|
||||||
{% if rule.add_forward_rule and current_chain == 'forward' %}
|
{% if rule.add_forward_rule and current_chain == 'forward' %}
|
||||||
<tr class="fw_automatic_rule">
|
<tr class="fw_automatic_rule">
|
||||||
|
|||||||
Reference in New Issue
Block a user