When an ISP provides the HG8145v5, they flash their own custom firmware. This “customization” disables advanced features, restricts bridge mode, blocks DNS changes, and hides the full configuration menu. Consequently, you cannot replace the router, change certain firewall settings, or use your own ONT on the fiber line.

After this command, reboot:

However, there is a catch: Your ISP locked it down.

restorehwmode.sh It converts your HG8145v5 to a pure, generic Huawei ONT . All ISP customizations, TR-069, and hidden menus are removed.

su shell If shell returns "Permission denied," your ISP has locked the shell. You need to use the (Method 3). Step 3: Restore Huawei Factory Interface Once inside the shell, type: