What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

nvram commit issue on RT-N66U

pmochocki

New Around Here
Hi,
I have some issues with my WAN connection.
What I have found out is, that it might be easily worked around by setting the web_redirect variable to 0.
See this blog:
https://moeffju.net/blog/disable-asus-rt-n66u-error-redirect.

The problem is that nvram commit seems not to be working.
I SSH to the router and execute:
Code:
nvram set web_redirect=0
nvram commit
The work around works only till a reboot. After the reboot web_redirect is again 3.

So my conclusion is the nvram commit is not working.

Router: RT-N66U (if a ver is needed please let me know how to check it.)
Firmware: 3.0.0.4.374.39 (Merlin build)

Any suggestions, comments and help is appreciated.

Best Regards
Piotr
 
Hi,
I have some issues with my WAN connection.
What I have found out is, that it might be easily worked around by setting the web_redirect variable to 0.
See this blog:
https://moeffju.net/blog/disable-asus-rt-n66u-error-redirect.

The problem is that nvram commit seems not to be working.
I SSH to the router and execute:
Code:
nvram set web_redirect=0
nvram commit
The work around works only till a reboot. After the reboot web_redirect is again 3.

So my conclusion is the nvram commit is not working.

Router: RT-N66U (if a ver is needed please let me know how to check it.)
Firmware: 3.0.0.4.374.39 (Merlin build)

Any suggestions, comments and help is appreciated.

Best Regards
Piotr


Put the command in say /jffs/scripts/init-start, so it will be automatically executed after every reboot.


Regards,
 
Thanks for the responses.
In that link he doesn't say to do nvram commit.
But he does not say the work around will work after reboot.

Put the command in say /jffs/scripts/init-start, so it will be automatically executed after every reboot.
Thank you. This works.

But I would like to keep this thread open.
Referring to:
https://github.com/RMerl/asuswrt-merlin/wiki/Scheduled-LED-control
or
http://wrt54ghacks.com/417_WRT54G_03_SAMPLE.pdf

Code:
nvram commit
should just work.

Best Regards
Piotr
 
Thanks for the responses.

But he does not say the work around will work after reboot.


Thank you. This works.

But I would like to keep this thread open.
Referring to:
https://github.com/RMerl/asuswrt-merlin/wiki/Scheduled-LED-control
or
http://wrt54ghacks.com/417_WRT54G_03_SAMPLE.pdf

Code:
nvram commit
should just work.

Best Regards
Piotr

There's always the possibility that the router firmware re-writes this particular variable on boot, but apparently before your bootup script runs. I've run into this before, where an nvram commit seems not to work, because the firmware is re-writing the variable at boot itself. Kind of eerie *smile*.
 
Last edited:
nvram set web_redirect=0 doesn't work on RT-N65

I have the RT-N65R, which is suppose to be the same as ASUS RT-N65U. I tried the nvram set web_redirect=0 command and the Commit command, but it didn't work. I still get the Wanduck redirection. (Tried before and after a reboot.)

Very annoying. It should be a rule that is software is going to redirect then there should be an option to turn it off. There should always be a "Do not touch or change anything" option.

I am trying to set up a media server in our van for our trip. I have this router and a hard drive connected to the router. Works great on some older Android phones that i have, but our current Android Phones have software that constantly tries to go out onto the internet. Every time one of the apps goes out, it the router pops up a browser with the error message. Ugh. A little hard to watch a movie when this comes up every couple minutes.

I tried on the Android side to fix. About the only solution would be to hunt down the specific apps doing this and removing them. (NOT an option.) So, turned to the router, but have not found a solution. Only one custom firmware available and it looks a little fishy, so I have not tried it yet. Unfortunately, this model does not have a lot of custom firmware choices (one).

I would L-O-V-E for ASUS to step up and put in an option to turn it off or answer the question of how to do it if currently possible.
 
How to set at startup?

I see the mention of putting it in /jffs/scripts... I have an RT-N65R. I have a jffs directory, but that is as deep as it goes. I could create the rest of the path, but then how do i put it in there? Does it need to be in a specify file or ???

what would be the suggested command to create the file?

I am not even sure if that would work, but willing to try. I do the command manually and it does not stop the page redirection. I was thinking maybe it has to be done as startup in case a program is reading it at startup and does not re-read. Note: even if i commit the change, it comes back as 3 after a reboot, that is why i'm thinking of setting it at power up.

thanks
 
I see the mention of putting it in /jffs/scripts... I have an RT-N65R. I have a jffs directory, but that is as deep as it goes. I could create the rest of the path, but then how do i put it in there? Does it need to be in a specify file or ???

what would be the suggested command to create the file?

I am not even sure if that would work, but willing to try. I do the command manually and it does not stop the page redirection. I was thinking maybe it has to be done as startup in case a program is reading it at startup and does not re-read. Note: even if i commit the change, it comes back as 3 after a reboot, that is why i'm thinking of setting it at power up.

thanks

Everything discussed here is related to Asuswrt-Merlin. Those scripts do not work on an RT-N65R as my firmware does not support this model.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top