File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change 3232{% if wireguard_enabled and wireguard_port |int == wireguard_port_avoid |int %}
3333# Handle the special case of allowing access to WireGuard over an already used
3434# port like 53
35+ -A PREROUTING -s {{ subnets|join(',') }} -p udp --dport {{ wireguard_port_avoid }} -j RETURN
3536-A PREROUTING --in-interface {{ ansible_default_ipv4['interface'] }} -p udp --dport {{ wireguard_port_avoid }} -j REDIRECT --to-port {{ wireguard_port_actual }}
3637{% endif %}
3738# Allow traffic from the VPN network to the outside world, and replies
Original file line number Diff line number Diff line change 3131{% if wireguard_enabled and wireguard_port |int == wireguard_port_avoid |int %}
3232# Handle the special case of allowing access to WireGuard over an already used
3333# port like 53
34+ -A PREROUTING -s {{ subnets|join(',') }} -p udp --dport {{ wireguard_port_avoid }} -j RETURN
3435-A PREROUTING --in-interface {{ ansible_default_ipv6['interface'] }} -p udp --dport {{ wireguard_port_avoid }} -j REDIRECT --to-port {{ wireguard_port_actual }}
3536{% endif %}
3637# Allow traffic from the VPN network to the outside world, and replies
You can’t perform that action at this time.
0 commit comments