Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
If the WAN IPv6 Configuration Type is set to SLAAC, /tmp/$if_routerv6 doesn't get created - unless a (stateless) DHCPv6 server exists upstream. Without /tmp/$if_routerv6, features like gateway monitoring, gateway groups and policy-based routing don't work.
This might have never worked and is probably not a recently introduced issue.
To Reproduce
Steps to reproduce the behavior:
- Set up two OPNsense instances. Connect the OPNsense2 WAN interface to the OPNsense1 LAN interface.
- OPNsense1 LAN interface: IPv6 Configuration Type 'Static IPv6', IPv6 address '2001:db8::1/64', Router Advertisements mode 'Unmanaged', DHCPv6 server disabled
- OPNsense2 WAN interface: IPv6 Configuration Type 'SLAAC'
- See error on OPNsense2: WAN interface gets an IPv6 address, but
/tmp/$if_routerv6 doesn't exist and 'System / Gateways / Single / WAN_SLAAC' doesn't show a gateway address.
- On OPNsense1, change the Router Advertisements mode to 'Stateless' and enable the DHCPv6 server (you don't have to specify an address range).
- See result on OPNsense2:
/tmp/$if_routerv6 exists and 'System / Gateways / Single / WAN_SLAAC' does show a gateway address.
Expected behavior
For SLAAC WAN interfaces, an upstream DHCPv6 server should not be required for proper functionality.
Describe alternatives you considered
Configure the gateway address statically, but this isn't always possible.
Additional context
SLAAC without DHCPv6 is common on mobile (4G / 5G) connections. I encountered this issue when trying to set up a dual WAN system where WAN2 is tethered to an Android phone.
Environment
OPNsense 22.1.10 (amd64, OpenSSL).
Hyper-V Gen2
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
If the WAN IPv6 Configuration Type is set to SLAAC,
/tmp/$if_routerv6doesn't get created - unless a (stateless) DHCPv6 server exists upstream. Without/tmp/$if_routerv6, features like gateway monitoring, gateway groups and policy-based routing don't work.This might have never worked and is probably not a recently introduced issue.
To Reproduce
Steps to reproduce the behavior:
/tmp/$if_routerv6doesn't exist and 'System / Gateways / Single / WAN_SLAAC' doesn't show a gateway address./tmp/$if_routerv6exists and 'System / Gateways / Single / WAN_SLAAC' does show a gateway address.Expected behavior
For SLAAC WAN interfaces, an upstream DHCPv6 server should not be required for proper functionality.
Describe alternatives you considered
Configure the gateway address statically, but this isn't always possible.
Additional context
SLAAC without DHCPv6 is common on mobile (4G / 5G) connections. I encountered this issue when trying to set up a dual WAN system where WAN2 is tethered to an Android phone.
Environment
OPNsense 22.1.10 (amd64, OpenSSL).
Hyper-V Gen2