mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-02 19:03:04 +02:00
Change ACCEPT to RETURN
This commit is contained in:
parent
97de49daa3
commit
72ecee553e
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ COMMIT
|
||||||
{% if wireguard_enabled and wireguard_port|int == wireguard_port_avoid|int %}
|
{% if wireguard_enabled and wireguard_port|int == wireguard_port_avoid|int %}
|
||||||
# Handle the special case of allowing access to WireGuard over an already used
|
# Handle the special case of allowing access to WireGuard over an already used
|
||||||
# port like 53
|
# port like 53
|
||||||
-A PREROUTING -s {{ subnets|join(',') }} -p udp --dport {{ wireguard_port_avoid }} -j ACCEPT
|
-A PREROUTING -s {{ subnets|join(',') }} -p udp --dport {{ wireguard_port_avoid }} -j RETURN
|
||||||
-A PREROUTING --in-interface {{ ansible_default_ipv4['interface'] }} -p udp --dport {{ wireguard_port_avoid }} -j REDIRECT --to-port {{ wireguard_port_actual }}
|
-A PREROUTING --in-interface {{ ansible_default_ipv4['interface'] }} -p udp --dport {{ wireguard_port_avoid }} -j REDIRECT --to-port {{ wireguard_port_actual }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# Allow traffic from the VPN network to the outside world, and replies
|
# Allow traffic from the VPN network to the outside world, and replies
|
||||||
|
|
|
@ -31,7 +31,7 @@ COMMIT
|
||||||
{% if wireguard_enabled and wireguard_port|int == wireguard_port_avoid|int %}
|
{% if wireguard_enabled and wireguard_port|int == wireguard_port_avoid|int %}
|
||||||
# Handle the special case of allowing access to WireGuard over an already used
|
# Handle the special case of allowing access to WireGuard over an already used
|
||||||
# port like 53
|
# port like 53
|
||||||
-A PREROUTING -s {{ subnets|join(',') }} -p udp --dport {{ wireguard_port_avoid }} -j ACCEPT
|
-A PREROUTING -s {{ subnets|join(',') }} -p udp --dport {{ wireguard_port_avoid }} -j RETURN
|
||||||
-A PREROUTING --in-interface {{ ansible_default_ipv6['interface'] }} -p udp --dport {{ wireguard_port_avoid }} -j REDIRECT --to-port {{ wireguard_port_actual }}
|
-A PREROUTING --in-interface {{ ansible_default_ipv6['interface'] }} -p udp --dport {{ wireguard_port_avoid }} -j REDIRECT --to-port {{ wireguard_port_actual }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# Allow traffic from the VPN network to the outside world, and replies
|
# Allow traffic from the VPN network to the outside world, and replies
|
||||||
|
|
Loading…
Add table
Reference in a new issue