Skip to content

Instantly share code, notes, and snippets.

@DanielG
Created March 21, 2024 10:23
Show Gist options
  • Save DanielG/c9ffeefbf50bfe4925aa204f9dc4c40a to your computer and use it in GitHub Desktop.
Save DanielG/c9ffeefbf50bfe4925aa204f9dc4c40a to your computer and use it in GitHub Desktop.
chain postrouting {
type nat hook postrouting priority 110; policy accept;
oifgroup wan (ip6 saddr & ::ff:ff00:0) == ::ff:fe00:0 counter \
ip6 saddr vmap { \
2001:678:4d8::/64 : jump postrouting-debby-snat-privacy, \
2001:678:4d8:2d00::/64 : jump postrouting-ruddy-snat-privacy, \
}
}
chain postrouting-debby-snat-privacy {
counter
snat ip6 to 2001:678:4d8::00ff:fe00:0/104 fully-random persistent
}
chain postrouting-ruddy-snat-privacy {
counter
snat ip6 to 2001:678:4d8:2d00::00ff:fe00:0/104 fully-random persistent
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment