mirror of
https://github.com/trailofbits/algo
synced 2024-11-18 09:25:38 +00:00
ipv6 nat fix (#1775)
This commit is contained in:
parent
4f1b9270be
commit
27de76048c
@ -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…
Reference in New Issue
Block a user