mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-18 15:17:07 +02:00
ipv6 nat fix (#1775)
This commit is contained in:
parent
4f1b9270be
commit
27de76048c
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ COMMIT
|
|||
-A PREROUTING --in-interface {{ ansible_default_ipv6['interface'] }} -p udp --dport {{ wireguard_port_avoid }} -j REDIRECT --to-port {{ wireguard_port_actual }}
|
||||
{% endif %}
|
||||
# Allow traffic from the VPN network to the outside world, and replies
|
||||
-A POSTROUTING -s {{ subnets|join(',') }} -m policy --pol none --dir out -j SNAT --to {{ ipv6_egress_ip | ipaddr('address') }}
|
||||
-A POSTROUTING -s {{ subnets|join(',') }} -m policy --pol none --dir out {{ '-j SNAT --to ' + ipv6_egress_ip | ipaddr('address') if alternative_ingress_ip else '-j MASQUERADE' }}
|
||||
|
||||
COMMIT
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue