Posted: Sun Jun 15, 2025 2:25 Post subject: IPv6 Relay or Passthrough
I recently had to set up a router at a site that uses T-Mobile Home Internet as the ISP. T-Mobile provides a gateway device and doesn't expect customers to use their own router, so they only allocate a single /64 IPv6 prefix to their gateway. If I put my own router behind their gateway and use the normal DHCPv6 with Prefix Delegation, it fails to obtain a prefix and cannot provide any IPv6 addresses to its devices.
I found that OpenWRT supports IPv6 relay (aka passthrough) and ended up going that route. It uses NDP to relay or bridge IPv6 from the T-Mobile gateway to the router's network. It has been working well so far and is straightforward to set up. https://openwrt.org/docs/guide-user/network/ipv6/configuration#ipv6_relay
I would prefer to use DD-WRT in the future, as customizing and configuring OpenWRT is time-consuming in comparison. It seems that stock firmware from Linksys and ASUS also supports IPv6 passthrough. Are there any plans to add this functionality to DD-WRT?
As a side note, I wanted to get IPv6 working because T-Mobile's IPv4 implementation uses 464XLAT CGNAT, where customers share a public address with many other customers. If another customer on your shared address does something to get the address banned, you will also be affected.
Joined: 11 Jan 2025 Posts: 144 Location: New Jersey, USA
Posted: Sat Jun 28, 2025 13:15 Post subject:
I wonder if this would work - or if you would need to rely. using dnsmasq, which I got help here on this forum. Maybe you already have this specific settings - if you do sorry. I figured this is worth a try with your prefix delegation. (obviously you would not use my /60 but your /64)
Setup > Basic setup
Automatic Configuration - DHCP
DHCP server Enable
Use dnsmasq for DNS - checked
Setup>IPv6
Enable IPv6
Type DHCPv6 with Prefix Delegation
Prefix 60
No Release on Reconnect enabled
custom configuration Dnsmasq IPv6 Settings
DHCP6 with prefix delegation doesn't work at all in my situation. Only T-Mobile's own gateway receives a /64. My cascaded router (router's WAN port connected to T-Mobile's LAN port) doesn't receive any prefix at all, so any devices connected to the LAN ports of my router do not receive any IPv6 addresses or connectivity.
My situation can be simulated by having two routers connected in cascade and having the first router only request a /64 prefix. The second router behind it will not be able to provide IPv6 connectivity to its clients because it can't obtain its own prefix.
The repeater function is the right concept but doesn't work in my case because my router needs to serve as an actual router/gateway for IPv4 and runs an OpenVPN client to provide VPN routes to other sites for devices connected to its LAN.
So I need a mode where IPv4 works as a normal gateway/router (double-NAT is okay) but IPv6 functions as a repeater over wired ethernet. OpenWRT supports this mode with their IPv6 relay function and allows me to run IPv4 in standard gateway/router mode alongside it.
And as an aside, T-Mobile's gateway device is extremely limited in functionality. It doesn't have a web interface for configuration and requires using an app. There are no IPv4 or IPv6 configuration options, and for IPv4, it is hard-coded to 192.168.12.1/24 for its LAN. The only things configurable are the wifi SSID names, passwords, WPA2/3 settings, and the wifi bands they are enabled on.
OpenWRT is working fine for me; I just think DD-WRT could benefit from having this functionality. I'd imagine similar setups needing it for IPv6 where the ISP is a cellular network via a hotspot, and a router is connected to it. Cellular providers seem to only provide a single /64 prefix.
Connect the wan cable into the wan port of your dd-wrt router, bypassing the isp router.
T-Mobile Home Internet is a fixed-wireless ISP, so there isn't any WAN cable. They provide a gateway device that includes the 5G cellular modem, so there isn't any way to bypass it.
As I stated in my previous post, it is extremely limited:
Quote:
And as an aside, T-Mobile's gateway device is extremely limited in functionality. It doesn't have a web interface for configuration and requires using an app. There are no IPv4 or IPv6 configuration options, and for IPv4, it is hard-coded to 192.168.12.1/24 for its LAN. The only things configurable are the wifi SSID names, passwords, WPA2/3 settings, and the wifi bands they are enabled on.