IPv6 Relay or Passthrough

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
BumRap
DD-WRT Novice


Joined: 18 May 2025
Posts: 14

PostPosted: Sun Jun 15, 2025 2:25    Post subject: IPv6 Relay or Passthrough Reply with quote
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.
Sponsor
spearmint
DD-WRT User


Joined: 11 Jan 2025
Posts: 144
Location: New Jersey, USA

PostPosted: Sat Jun 28, 2025 13:15    Post subject: Reply with quote
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

Serviced tab
Enable dnsmasq, enabled

Dnsmasq IPv6 Settings
IPV6 Router Advertisement (RA), enable
DHCP6 RA mode, stateful DHCP6



2025-06-28_setup-ipv6.png
 Description:
 Filesize:  69.67 KB
 Viewed:  10046 Time(s)

2025-06-28_setup-ipv6.png



2025-06-28_ddwrt-dnsmasq-services.png
 Description:
 Filesize:  46.54 KB
 Viewed:  10046 Time(s)

2025-06-28_ddwrt-dnsmasq-services.png



_________________
GL-iNet GL-MT6000 (main gateway) - openwrt 25.12.5, currently
(2) Linksys MR7350 (DD-WRT & openwrt)
retired - (2) Linksys MR5500 (openwrt & DDWRT - gave up for now?)
retired - Asus RT-AX58U Merlin / sitting
Devuan 6 and LMDE 7 Linux primary OS's
spearmint
DD-WRT User


Joined: 11 Jan 2025
Posts: 144
Location: New Jersey, USA

PostPosted: Sat Jun 28, 2025 13:43    Post subject: Reply with quote
repeater
https://wiki.dd-wrt.com/wiki/index.php/Wireless_access_point

_________________
GL-iNet GL-MT6000 (main gateway) - openwrt 25.12.5, currently
(2) Linksys MR7350 (DD-WRT & openwrt)
retired - (2) Linksys MR5500 (openwrt & DDWRT - gave up for now?)
retired - Asus RT-AX58U Merlin / sitting
Devuan 6 and LMDE 7 Linux primary OS's
BumRap
DD-WRT Novice


Joined: 18 May 2025
Posts: 14

PostPosted: Sat Jun 28, 2025 21:26    Post subject: Reply with quote
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.

Thanks for the suggestions.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 17514
Location: Texas, USA

PostPosted: Sat Jun 28, 2025 22:53    Post subject: Reply with quote
I was bored enough and had some spoons handy. Maybe something in this snapshot will be relevant.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
MacInTheNet
DD-WRT Novice


Joined: 18 Nov 2014
Posts: 39

PostPosted: Fri Aug 01, 2025 9:29    Post subject: Reply with quote
Hi, did you find a solution?
Thanks : )
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 7199
Location: Romerike, Norway

PostPosted: Fri Aug 01, 2025 14:34    Post subject: Reply with quote
Connect the wan cable into the wan port of your dd-wrt router, bypassing the isp router.
BumRap
DD-WRT Novice


Joined: 18 May 2025
Posts: 14

PostPosted: Thu Aug 07, 2025 0:25    Post subject: Reply with quote
MacInTheNet wrote:
Hi, did you find a solution?
Thanks : )


As I stated in my previous posts, my solution was to install OpenWrt and use their IPv6 relay functionality. DD-WRT doesn't support it.
BumRap
DD-WRT Novice


Joined: 18 May 2025
Posts: 14

PostPosted: Thu Aug 07, 2025 0:26    Post subject: Reply with quote
Per Yngve Berg wrote:
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.
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 7199
Location: Romerike, Norway

PostPosted: Fri Aug 08, 2025 15:59    Post subject: Reply with quote
Doesn't this Router have any Setup?
BumRap
DD-WRT Novice


Joined: 18 May 2025
Posts: 14

PostPosted: Sat Aug 09, 2025 1:10    Post subject: Reply with quote
Per Yngve Berg wrote:
Doesn't this Router have any Setup?


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.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum