OPNsense in Azure with DHCP assigned IPv6 and IPv4 interfaces
Automatic outbound NAT rules created on the LAN interface
Disable the auto-created LAN gateways (Look under System => Gateways => Configuration) (Disable the LAN_DHCP and LAN_DHCP6 Gateways)
No automatic outbound NAT rules created on WAN interface
Change the WAN interface IPv4 and IPv6 configs to be static in both the Azure portal and configure static addresses in OPNSense WAN interface. Assign the same settings to the WAN interface as they were when using DHCP DHCPv6
Example settings:
| IPv4 | IPv6 | |
| WAN Subnet | 10.6.1.0/24 | fdc6:e269:0cbf:1:/64 |
| WAN IP | 10.6.1.4/24 | fdc6:e269:0cbf:1::4/64 |
| WAN Gateway | 10.6.1.1 | fe80::1234:5678:9abc ^ ^ Although this does NOT match the above IPv6 IP and subnet addresses, this is the IPv6 address for the local gateway in Azure. Use this special address as the gateway. |

0 Comments