Welcome Guest ( Log In | Register )

3 Pages  1 2 3 >Bottom

Outline · [ Standard ] · Linear+

 D-Link DPN-FX3060V GPON WiFi Router, (Nijika) Firmware Community Modding

views
     
TSAnime4000
post May 22 2024, 12:41 PM, updated 9 months ago

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


D-Link DPN-FX3060V GPON Router
A GPON WiFi Router (All in One) based on Realtek SoC Processor that given by TM for Unifi Ultra Subscriber,
it share same Realtek LUNA SDK as my PON Stick Project. So I quite familiar with the layout.

Official Warranty
1. 1-Year Limited Warranty: Provided by TM, ensuring coverage for manufacturing defects.
2. Free Replacement: Available for customers who are currently under contract with TM.
3. Contractual Implications: For customers not under contract, a replacement will automatically initiate a new 2-year contract with TM.

Avoiding Contract
If you want to avoid committing to a 2-year contract, you can opt for a custom-built GPON Stick or a managed GPON device compatible with TM's OMCI, available for purchase.

Specification
SoC: RTL9607DQ (Cortex A55), 4 Core @ 1GHz, AArch64, ARMv8
RAM: 512MB DDR3L @ 1866MT/s
MEM: 256MB SPI Flash Winbond
OS: Realtek ASDK64, Linux Kernel 5.10.70 (glibc v2.30)
MB: Realtek Taurus ENG Board

A1 (White)
WiFi6: RTL8852CE (2.4GHz & 5GHz)

B1 (Black)
WiFi6: RTL8192XBR (2.4GHz) + RTL8832CR (5GHz)
LAN1: RTL8221B Switch Chip (HiSGMII to 2500Base-T)

Internal
Image of A1 Hardware a gift by chong601
Image of B1 Hardware

Block Diagram
A1 (White)
user posted image

B1 (Black)
user posted image

Discovery 10G
I found stock firmware has 10G PON (XGPON, XGSPON). Maybe TM have planning to migrating hmm.gif
user posted image

Known Issue
1. Prior to B1 Hardware @ V2.0.2 have issue to set bridge mode on certain OLT, temporary fix is by accessing UART at change FwdOp to 0x02
2. Prior to B1 Hardware @ V2.0.2 when in bridge mode, LAN side management such as WebGUI, SSH, Telnet being killed by deep ME 171 (ex: Alcatel-Lucent/Nokia OLT)
3. Both Hardware has so called "Cloud IoT" for D-Link Air, it always running and always watching, other considered this as Backdoor

Vulnerability ⚠️
Two user has been verified there several CVE or more.
If you are concern about security and want to minimise risk of attack, DON'T USE THIS DEVICE

Use of Dumb ONT Bridge to avoid backdoor, can re-use this D-Link as ATA Device, I recommend get own ATA or Desktop SIP Phone

It appear that Firmware V2.0.3 as same vulnerability as previous version

VoIP User Agent
CODE

DPN-FX3060V_V2.0.2 (SIP-std-R11448)


Management Entities Issue
OMCI ME can be very complex and total control of your ONT even without TR069! This mean TM can disallow Bridging and Force creation of PPPoE inside the Router!

Example of Simple OMCI Stack
user posted image
* based on Alcatel-Lucent/Nokia OLT

ME Point
The RLT9607DQ has HiSGMII which can be paired with RLT8221B for 2.5GbE Access, but it use wrong ME Point, this can be fix by adjusting the OLT or Hack
user posted image

Nijika Firmware A port form PON Stick Project
user posted image

I have ported my PON Stick Project to both hardware, In my spare time, I manage to add OLT Info page and bug fix!

OLT Info
ZTEG/5a544547 (ZTE)
user posted image

ALCL/414c434c (Alcatel-Lucent/Nokia)
user posted image

ALCL/414c434c (Alcatel-Lucent/Nokia) by jonathanwhm
user posted image

As you can see, even on same OLT, the way VLAN is being push, set and manage is different, for example my fiber VLAN400 (VoIP) doesn't exist on LAN1 UNI but only exist on VEIP UNI
This discrepancy among OLT's make many user unable to bridge!

OLT Vendor Id
ASCII HEX
ALCL 414c434c
FHTT 46485454
FHTT 0x00*
HWTC 48575443
UBNT 55424e54
ZTEG 5a544547
- 0x00**
* FHTT send 0x00 to ONT as allowing other ONT work on FHTT OLT
** Sometime TM use off-brand OLT on Kampung/under-develop area

OLT Issue
On my experience during PON Stick deployment, there are many ME 171 to map. Rank from top (most troublesome)

1. Fiberhome (FHTT) (most troublesome)
QUOTE
A. FHTT doesn't show it's OLT Vendor Id when in Universal Mode, it cause to display as 0x00.
B. Also FHTT push ME 171 varies from customer to customer, mostly are able to bridge until ME 171 become Router Mode which is need a special IGD hack to fool OLT and quietly bridge VLAN 500 to SFP Interface
C. Speed issue are very common on FHTT, It's has lack proper QoS and doesn't have DSCP, wrong ME 277 (Priority Queue) cause speed drop or even worst: 2000Mbps Download, 67Mbps Upload ranting.gif
2. Alcatel-Lucent/Nokia (ALCL)
QUOTE
A. ALCL has very deep ME 171, even it can kill WebGUI, disable LAN Ports even crash the ONT by sending same VLAN on PPTP and VEIP!
B. Bridging VoIP from VEIP to LAN/SFP side can very tricky, but possible to override!
C. First time activation, only one ME 171 profile for you for all ONT you have!
D. ALCL has proper QoS and DSCP, this give user more speed especially upload speed can be max as 1100Mbps! rclxm9.gif
3. Huawei (HWTC)
QUOTE
A. HWTC have different Forwarding Operation (FwdOp) depend on legal TM ONT, mostly HWTC would use 0x04 or 0x10 for other ONT
B. Bridging VoIP from VEIP to LAN/SFP side can very tricky, but possible to override!
C. Plugging different ONT cause HWTC set different ME 171 profile to match that ONT, as simple fix!
4. ZTE (ZTEG) (least troublesome)
QUOTE
A. ZTEG in Universal is very easy to handle, ME 171 also simple
B. ZTEG has very highest speed performance! Download speed can be max as 2129Mbps! overtake ALCL for Download performance!
C. ZTEG also has proper QoS despite lack DSCP feature!
If you ask me, FHTT is crap to work with! I hate FHTT Priority Queue so much!

Share OLT Status Page
Please update the firmware to correct Hardware A1 or B1, and share your OLT Info just like screenshot above,
This way we here can know which OLT are you on, either troublesome FHTT or awesome ZTEG

Firmware download can be found on next post

This post has been edited by Anime4000: Oct 27 2024, 03:49 AM
TSAnime4000
post May 22 2024, 12:42 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


user posted image


Firmware Download
D-Link DPN-FX3060V, Hardware A1 (White):
DPN-FX3060V_V1.1.2_20231108_rel241118.njk

D-Link DPN-FX3060V, Hardware B1 (Black):
DPN-FX3060V_V2.0.3_20240802_rel241118.njk

WARNING!
By flashing this custom firmware, your device warranty will be invalid!

Change Log
CODE

Revision 241118
1. Add Proprietary Huawei OMCI/ME (support TIME & Maxis own infra)
2. Add Hardware Information
3. Add current image partition info
4. Base Firmware B1 2.0.3
5. Base Firmware A1 1.1.2 (no change)
6. Updated login page :3
7. Vulnerable still exist because I didn't patch yet, welp.
8. Build-in Web Speedtest @ http://192.168.0.1/speedtest (only can test download, buggy)

Revision 240521
1. Add OLT Status page at Status Menu
2. Add fix WebGUI being killed, at least it works on me (ALCL)


Revert Firmware
To roll back, just enable SSH/Telnet in the WebGUI and do this:

CODE
nv getenv sw_active


If value return 0:
CODE

nv setenv sw_active 1
nv setenv sw_commit 1
reboot


If value return 1:
CODE

nv setenv sw_active 0
nv setenv sw_commit 0
reboot


This post has been edited by Anime4000: Nov 28 2024, 10:00 AM
TSAnime4000
post May 23 2024, 08:26 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(jiaen0509 @ May 23 2024, 05:51 PM)
I have 3 questions:

1. Does your firmware provide a fix for the issue where bridge mode is unavailable on certain OLTs?
2. Do we have the original firewall configuration to roll back to in case anything happens before the TM team arrives?
3. Could you share the steps or method for updating the firmware, so we avoid any mistakes that might cause issues?
*
1. Not yet, I believe this fixable via changing FwdOp, at least works on me under Nokia OLT

2. The firmware is pulled from the SPI Flash, I only modify to add only OLT Info page, this help to troubleshooting how OLT set your VLAN and TM doesn't care, I show this to them, they liked OLT Info page as this very useful information

3. Just update as usual at Maintenance ▶️ Firmware Upgrade.
To roll back, just enable SSH/Telnet and do this:

CODE
nv getenv sw_active


If value return 0:
CODE

nv setenv sw_active 1
nv setenv sw_commit 1
reboot


If value return 1:
CODE

nv setenv sw_active 0
nv setenv sw_commit 0
reboot


This Router has two different OS, can set which partition need to boot
TSAnime4000
post May 25 2024, 10:02 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(jonathanwhm @ May 25 2024, 03:45 PM)
I requested TM to switch the ONU model from A1 to B1. The next morning, three technicians from TM came to my house to inspect the ONU. They decided not to make the change because the ONU was still functioning perfectly. They also questioned me about how I obtained Nijiki's firmware over the call. Unfortunately, I wasn't home at that time to answer their questions and paksa them to change the model  sad.gif
P/S: My dad saw them taking a photo of the ONU login screen at that time.
*
You can just switch Boot Partition back to Stock Partition, first, do this:

Roll Back Previous Boot Partition
Enable SSH/Telnet
user posted image

Login SSH
user posted image
Type tmadmin@192.168.0.1 at Windows Console or Linux/Mac Terminal

Enter Busybox
user posted image
Type "sh" after saw >

Now in Busybox
user posted image
You will see # when in busybox

Get Current Boot Partition
user posted image

Set Boot Partition
user posted image

NOTE:
When return sw_active=1, type this:
CODE

nv setenv sw_active 0
nv setenv sw_commit 0
reboot


When return sw_active=0, type this:
CODE

nv setenv sw_active 1
nv setenv sw_commit 1
reboot


This will switch boot, it's recommend boot into 0 first and let Nijika at 1

before you flash Nijika, make sure check sw_active=0, then you can update firmware, this will flash Nijika at Partition 1 and automatically reboot to Partition 1

This time, you have:
Stock at sw_active=0 Partition 0
Nijika at sw_active=1 Partition 1

This post has been edited by Anime4000: May 25 2024, 10:07 PM
TSAnime4000
post May 29 2024, 01:27 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


I have send mtd14 (ubi_apps) and IoT Module (D-Link Air) to PON Hacking

There is several vulnerabilities:
1. IoT not suppose to run as Root Privilege
2. IoT bind on all Interface (ppp, nas0, nas1, ethX, wlanX) including t-cont

user posted image
CODE

2227     1 root     S    99512 21.6   1  0.0 /bin/ccom_linkkit [redacted] cloudProductSecret [redacted] [redacted] Shanghai
1690     1 root     S     8872  1.9   2  0.0 /bin/tr142_app



ubi_apps, tr142 and /bin/ccom_linkkit always run as root no matter what, cannot be disable in WebGUI

they found many vulnerability such as common overflow, it can be attack even in Bridge Mode.

I trying to remove from the firmware, it caught on boot loop 😭
It has been suggested that to replace to ability to reply in boot process, this will take time, might more time eradicate any IoT
TSAnime4000
post Jun 5 2024, 12:20 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(jiaen0509 @ Jun 5 2024, 10:33 AM)
Today I plugged back the A1 (White) ONR and bridge mode to my ASUS router. Noticed one issue with my speed where my upload was capped around 150mbps.

While full speed on my ZTE ONU

user posted image
*
can you flash my custom firmware and screenshot OLT Info
TSAnime4000
post Jul 24 2024, 12:36 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(kwss @ Jul 24 2024, 09:12 AM)
I just take a look at the firmware. Can you provide the content of ubi0:ubi_Config (/var/config)?
ubi cannot be disabled because it is used to mount the config partition.

tr142 (kernel module + tr142_app) is loaded via the following path:
insdrv.sh -> rtk_tr142.sh

However I am not sure if it can be easily disabled because it is referenced in the following binary: axel, boa, monitord, omci_app, smuxctl, startup.
You can try nuking it in insdrv.sh and see if the device still boots.

ccom_linkkit is linked inside /bin/startup. Theoretically building a new statically linked ccom_linkkit should work.
CODE

int main()
{
   return 0;
}

Depending if they actually check for error code, you might get away with replacing ccom_linkkit with inert binary like id:
CODE

# cp id ccom_linkkit


Also looks like iot-auth-global.aliyuncs.com is actually dead. Depending on which server you hit, you get a 302 to different location. I did not have the hardware to test this, but it seems hardcoded to lookup using the following DNS server: 223.5.5.5, 223.6.6.6, 8.8.8.8.

Completely untested, all based on static analysis and non expert understanding.
*
I have ARM64 build root, all sus binary replaced with "int main::return 0;" as you mention it, luckily it still boot but usable not tried yet.

all the rucks happen lately, I stop Reverse Engineering on this D-Link DPN series, and remove the firmware download links sweat.gif

I have been told in discord discussion that D-Link DPN-FX3060V has vulnerable, they still didn't tell me how to exploit it, as for this I now didn't care to nuke sus IoT binary out of D-Link, just let them hack the D-Link

This post has been edited by Anime4000: Jul 24 2024, 12:39 PM
TSAnime4000
post Jul 27 2024, 01:13 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(kwss @ Jul 27 2024, 07:01 AM)
I reverse engineer ccom_linkkit.
It is basically built on top of AliOS Things, which can be found here:
https://github.com/alibaba/AliOS-Things

The vulnerabilities seems to be many of the components are old and never updated.
After looking at some of the CVE, potentially exploitable in the real world are:
CVE-2024-2466
CVE-2024-23775
CVE-2024-6197

I am limiting my CVE search to within these 2 years based on the state of AliOS Things repo.
No doubt there are other known CVE but I feel they are a bit "hard" to exploit.
If I am the attacker I would just focus on the above CVEs.

I only check for curl, cjson and mbedtls. I did not go look at the other long list of components.
This is really some intense time consuming work.

As for boa, I let this article do the talking:
https://www.theregister.com/2022/11/23/micr...boa_web_server/
*
Your finding is same CVE as other guy found, but he found more apparently.
he said firmware is easily override with infected firmware and can prevent bridging,

so, forcing user to use as router so the device can become zombie/botnet
⬆️ it is possible some user reportingg can't bridge and slow speed? might device already infected
TSAnime4000
post Jul 27 2024, 07:19 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(kwss @ Jul 27 2024, 05:53 PM)
This whole speed drop thing is still a mystery.
It might be malware, might be something else, might be a lot of things.

I don't think I will spend that kind of time to finally prove what caused it. Or maybe I get lucky.

I don't even know where to look right now.
*
Well, not worth of time to clean-up the D-Link or even de-compile ARM64 driver for OpenWRT on D-Link ONR

unlike PON Stick use very specific modified MIPS R3000 SoC, so far no one can compile simple hello beside obtain official Realtek Luna SDK

ARM64? Quite easy to make own binary laugh.gif
TSAnime4000
post Jul 31 2024, 12:52 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(MelancholicAnubis @ Jul 30 2024, 10:35 PM)
I'm trying to revert to the old Huawei ONU, but for now seems like the PPPoE cannot dial, not sure if the old modem already blacklist or what.. will keep trying.

All the setting still intact, installer didn't reset it so not sure why it's not working.
*
Same issue I facing before when change DP Fiberhome to DP Nokia.
Their system has bind your ONU/PLOAM Password with S/N (Reason: prevent stolen PLOAM Password) hmm.gif

I believe Huawei HG8240H (and H5 variant) can change S/N in Full Hex,
So, Try this example:
CODE

Printed S/N: DLKI34101F1F
Vendor Id: DLKI
Serial: 34101F1F

Vendor Id in HEX: 44 4C 4B 49
Serial: 34101F1F
Concat: 444C4B49 + 34101F1F

S/N in Full HEX: 444C4B4934101F1F


Then, backup your Huawei SN then replace like this 444C4B4934101F1F

user posted image

It said can put "DLKI34101F1F", try that too

QUOTE(kwss @ Jul 31 2024, 02:43 AM)
You should make a fuss out of it to MCMC. I hope the pressure will stop TM from giving ONR to people.
*
With recent my IPv6 case has been closed, I think TM still giving AIO / ONR for make internet cheaper...

at least TM didn't prevent use of PON Stick,

This post has been edited by Anime4000: Jul 31 2024, 01:03 PM
TSAnime4000
post Jul 31 2024, 01:59 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(soonwai @ Jul 31 2024, 01:38 PM)
Joining the DPN-FX3060V Black club. Still in box though.
*
Welcome, we advice not to use this D-Link because have unpatched CVE rclxub.gif
TSAnime4000
post Aug 6 2024, 07:26 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(soonwai @ Aug 4 2024, 03:49 PM)
I read this thread. Now scared to even look at the DLink. sweat.gif

Later PM you for GPON stick.
*
feel free to whatsapp me
TSAnime4000
post Aug 27 2024, 01:33 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(Epic_winner091 @ Aug 27 2024, 01:07 AM)
Also joined the black ONR club.

Is it possible to change the default DNS to Google or Cloudflare on the router?

It isn't as straightforward as the DIR-X3060Z.
*
can, but Plain DNS, ISP can hijack the query
TSAnime4000
post Aug 28 2024, 09:25 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(Epic_winner091 @ Aug 28 2024, 12:54 AM)
Understood. Got any pointers on where to change it? Thanks!
*
via DHCP Server?
TSAnime4000
post Aug 29 2024, 07:31 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(Epic_winner091 @ Aug 29 2024, 05:57 PM)
Tried changing it. Either I did it wrong or the router is ignoring the settings.
*
welp, if that didn't work, I suggest you to use own Router with DoH Support
TSAnime4000
post Aug 30 2024, 01:25 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(Epic_winner091 @ Aug 30 2024, 12:50 AM)
I think ASUS models have the best DoT/DoH support? If i bridge the ONR will it break VoIP?
*
When in bridge mode, only bridge what ME 171 told to do, only VLAN500 get passed as tagged traffic and VoIP remain as is

Many reports D-Link speed would drop overtime

This post has been edited by Anime4000: Aug 30 2024, 01:28 PM
TSAnime4000
post Sep 2 2024, 12:38 PM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(emilyngsc @ Sep 1 2024, 05:53 PM)
Today I also reporting in.
*
Welcome, for safety...
There is known vulnerabilities and been proven hacker can override own firmware and turn as zombie/bot net, I suggest not using this D-Link, perhaps use stock ONU
TSAnime4000
post Sep 4 2024, 02:42 AM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(biatche @ Sep 3 2024, 11:09 PM)
o i'd actually be interested. what benefit from custom one?
*
all own devices, many big company I setup use my GPON stick, as they don't want ISP and Gov spying and/or take control, especially at ONU.

Who knows, now DNS has been hijacked as per MCMC requirement.

Future? all using ONR, ISP can override bridge mode into router mode and prevent user using own Router...
Or SNI intercepted (force using TLS1.2 and detect Domain Name in HTTPS header)
Or even worst ONR do the MITM attack.

Even you disable TR069, ISP can manage your ONU/ONR from OLT.

this what GPON Stick come... Ignore, Override and Reply fake OK to OLT and keep bridge mode.

ISP can say giving ONR is able to reduce cost, but I don't believe it!

Like Huawei EG8010Hv6 is just dumb one LAN port bridge that Allo in Penang using it.

But... One LAN port no longer allow customers use two ISP
TM no longer allow to subscribe multiple ISP for quite some time, EG8010Hv6 + AX3000/6000 router still cost effective and as usual user can use own router,

TM so big, can ask Huawei to make EG8010Hv6 with POTS variant for analogue telephone, and still cheap.

If you want avoid tampering by big boyz, don't use ONR, if you have old ONU, use it, or buy used Huawei ONU like HG8240H, HG8240H5
TSAnime4000
post Sep 4 2024, 08:13 AM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(biatche @ Sep 4 2024, 04:12 AM)
ill surely reject the dlink, i suppose i insist on keeping my old one then? or must i change
*
for >= 1Gbps plan, just use old ONU, technician won't take it after upgrade
TSAnime4000
post Sep 6 2024, 12:02 AM

Look at all my stars!!
*******
Senior Member
2,399 posts

Joined: Jul 2009
From: /dev/null


QUOTE(syahpian @ Sep 6 2024, 12:01 AM)
finally finish my FSU upgrade  biggrin.gif
user posted image
*
Nice, an ALCL (Nokia) OLT,

are you on Unifi Biz? saw VLAN400 exist on LAN1

3 Pages  1 2 3 >Top
 

Change to:
| Lo-Fi Version
0.0201sec    0.33    7 queries    GZIP Disabled
Time is now: 27th November 2025 - 01:00 PM