Skip to content

Instantly share code, notes, and snippets.

@Gentoli
Last active March 7, 2025 02:00
Show Gist options
  • Select an option

  • Save Gentoli/c40cf01a78bfdcd678223f9c86561c5f to your computer and use it in GitHub Desktop.

Select an option

Save Gentoli/c40cf01a78bfdcd678223f9c86561c5f to your computer and use it in GitHub Desktop.
Unifi NAT66
#!/bin/bash
# eth4 is the gateway
# br0 is a PD enabled subnet without ULA
ip6tables -t nat -A POSTROUTING -o eth4 -m set --match-set UBIOS6CUSTOM1_subnets src -m set \! --match-set UBIOS_ALL_NETv6_br0 dst -j MASQUERADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment