Skip to content

Commit

Permalink
Merge pull request #217 from SUNET/patlu-dockerhost2-ipv6-nat
Browse files Browse the repository at this point in the history
Make IPv6 SNAT rules match more of ULA range
  • Loading branch information
eest authored Nov 13, 2024
2 parents d54188f + e64fdc7 commit f565faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/dockerhost/200-dockerhost2_nftables.nft.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ table ip6 nat {
#
add rule ip nat postrouting ip saddr { 172.16.0.0/12 } iifname docker0 counter masquerade comment "SNAT traffic from Docker"
add rule ip nat postrouting ip saddr { 172.16.0.0/12 } iifname br-* counter masquerade comment "SNAT traffic from Docker"
add rule ip6 nat postrouting ip6 saddr { fd0c::/16 } iifname docker0 counter masquerade comment "SNAT traffic from Docker"
add rule ip6 nat postrouting ip6 saddr { fd0c::/16 } iifname br-* counter masquerade comment "SNAT traffic from Docker"
add rule ip6 nat postrouting ip6 saddr { fd00::/8 } iifname docker0 counter masquerade comment "SNAT traffic from Docker"
add rule ip6 nat postrouting ip6 saddr { fd00::/8 } iifname br-* counter masquerade comment "SNAT traffic from Docker"

#
# Allow forwarding packages from docker
Expand Down

0 comments on commit f565faf

Please sign in to comment.