1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Easy way to "remember" a configuration

Discussion in 'Tomato Firmware' started by fyellin, Apr 30, 2009.

  1. fyellin

    fyellin LI Guru Member

    I'm tempted to try out thor2002ro's Tomato port, which combines both Viktek's Qos enhancements and SgtPepperKSU's enhancements. However one of the warnings is "be sure to clear the NVRAM and restore everything by hand."

    This is a big pain. Both trying to remember everything I've tweaked over the last few months and having to re-copy big ugly stuff like certificates and public keys.

    Has anyone come up with a good way of simplifying the process, or at least making it a little bit less painful?

    A script that downloads every page of /www and saves the whole shebang as a pdf?
     
  2. i1135t

    i1135t Network Guru Member

    If you use firefox, add this plugin called Scrapbook:

    Code:
    https://addons.mozilla.org/en-US/firefox/addon/427
    At least with this, you can get most of the settings. Beware that if you have anything in the scripts, it will not be saved. Double-check all the scrap, before you finally flash. Have fun!
     
  3. mstombs

    mstombs Network Guru Member

    On the web administration debugging page there is an option to "Download NVRAM dump" this is a text file containing everything that is saved - somethings a bit cryptic I guess.
     
  4. bogderpirat

    bogderpirat Network Guru Member

    then again, QoS and port forwards are each saved in a single variable. were it not for the character maximum in the shell, these values would be easily rolled back to - as they're the most work. idk about certificates though.
     
  5. fyellin

    fyellin LI Guru Member

    Yeah. The last time I did this, I ran from my Linux box
    ssh root@router nvram show > /tmp/1​
    reset the nvram, set all the options in the GUI
    ssh root@router nvram show > /tmp/2
    diff -y /tmp/1 /tmp/2
    and then iterated until I didn't care about the differences. I was hoping for something easier to parse.
     
  6. fyellin

    fyellin LI Guru Member

    Very nice. This seems perfect.

    How very strange that it remembers everything, even SSH keys and VPN certificates, but it won't remember scripts. Thanks for warning me.
     
  7. Toastman

    Toastman Super Moderator Staff Member Member

    Guys, a lot of people would find it useful if you can post a quick guide as to how to use this software (and perhaps others like evernote / aardvaark) to reinstate a grabbed page on the same or another router. If it can be done that is? Otherwise, it looks the same as just saving a page with any web browser, and copying details over manually or cut-and-paste. Am I missing something here ? :confused::confused:
     
  8. fyellin

    fyellin LI Guru Member

    Nothing fancy.

    Most programs I'd seen made an image of a web page. This firefox extension seemed to make a local copy of the web page. So I just had two browser windows and would cut and paste from the cached copy in one window to the actual router in the other.

    By going page by page, I could make sure that everything was set identically. I could cut-and-paste MAC addresses, public keys, and certificates from one window to the other. I wished there were something easier.
     
  9. baldrickturnip

    baldrickturnip LI Guru Member

    just a quick question on a nvram clear etc

    is the wifi admin access on by default ?

    I have a remote 54Gl I want to wipe and flash - but onsite I only have a laptop on UTMS modem whose LAN is unfortunately connected to a different 54GL. I can access the 54GL I want to redo via wifi , so if I nvram clear it will I be able to connect via wifi to its admin pages when it restarts ?
     
  10. Toastman

    Toastman Super Moderator Staff Member Member

    Thanks fyellin. Pity! I was thinking along the lines of - call a config from router A from my hard disk, edit, and then upload to router B. I wish .... !

    baldrickturnip -I regularly erase NVRAM on my AP's after upgrades/trials of new software etc. and then access them on 192.168.1.1 locally by LAN or WLAN on port 80 to reconfigure them. The only thing to watch is if you already have a router using that number of course. Remote access IS disabled, however, which is what you need. I've accidentally screwed up a few times when I forgot this. Some of my sites have 2 routers so I can SSH to the 2nd router and then telnet to the one I need to reconfigure. Don't think this helps you...
     
  11. baldrickturnip

    baldrickturnip LI Guru Member

    Hi Toastman.

    I just want to know if wifi access to admin is on by default.

    I have a laptop there onsite I can VNC to via a UTMS modem , so I want to flash the unit and then connect to it with the laptops wifi so I can set it up again - there is a checkbox in the admin,admin access page - allow wireless access
     
  12. Toastman

    Toastman Super Moderator Staff Member Member

    Yes, sorry, I though you wanted remote access from the WAN. So yes, it'll work, that is what I do all the time. My main router is not set to 192.168.1.1 - so if I want to reconfig an AP I just upload new firmware, then erase NVRAM. The AP then reappears as 192.168.1.1 and is accessible by both wireless (via it's default SSID) and LAN cable. The "allow wireless access" box has a tick in it as default.
     
  13. fyellin

    fyellin LI Guru Member

    So continuing my question. . . .

    I'd like to automate my process of "scrapbooking" all the web pages, so that I can re-create them all after clearing the nvram.

    I note with a little bit of dismay that the scrapbook plugin doesn't actually save the original source code, but instead saves what the page currently looks like. So for the VPN tunneling page, I only get the information currently visible, and not the information hidden under the tabs. So a couple of quick questions:

    #1) Is there anyway to get scrapbook to save all of the information, so that the tabs will still work?

    #2) If the answer to #1 is no, is there a URL I can type to bring up, for example, the Scripts>>Shutdown page or the VPN>>Client1>>Keys page? The initial tab seems to be controlled by a cookie.

    #3) Why do some scripts show up and others don't in scrapbook? :frown:
     

Share This Page