Bookmark and Share

Author Topic: Port forwarding settings not saved - Linksys WRT54G v8.00.7  (Read 4623 times)

0 Members and 1 Guest are viewing this topic.

Offline diesel

  • PcWinTech Member
  • *
  • Join Date: Nov 2009
  • Posts: 8
  • Karma: +0/-0
Port forwarding settings not saved - Linksys WRT54G v8.00.7
« on: November 09, 2009, 11:14:09 AM »
The script for my router is failing when it tries to save the newly entered port forwarding settings. This isn't a showstopper since I can just click the "Save Settings" button in the browser window, but I though you'd like to know about the problem.

Simple Port Forwarding was running on a system with Windows XP Pro SP3. The problem persists even when I set my IE8 Security and Privacy settings to their lowest values. The firmware revision date is relatively recent (v8.00.7 build 011, Jul. 27, 2009) and the change in the look and feel of the interface was obvious after the update was applied.

Here's the log:

Code: [Select]
Router: Linksys - WRT54G (Linksys v8 Firmware)
Loading Commands...
Number Of Port Forwards To Send To Router (1)
Running Commands...

(Current -  1/1)
Adding DiMiBa01 (TCP) For Ports 32158-32158 To 192.168.1.201()

Running Script From Database For Selected Router
-----------------------------------------------------------------------
Step 01. nav_first_only("Forward.htm")
(Successful) (http://admin:admin@192.168.1.1/Forward.htm)
Step 02. check_if_name_exists("")
Step 03. set_name_array("0|1|2|3|4|5|6|7|8|9")
(Successful)
Step 04. set_name_to_check("name,0")
(Successful) (Current Name From Name Array name5)
Step 05. set_name("name,0")
(Successful)
Step 06. set_start_port("from,0")
(Successful)
Step 07. set_stop_port("to,0")
(Successful)
Step 08. set_type_choices("TCP|UDP|BOTH")
Step 09. set_combobox("pro,0")
(Successful)
Step 10. set_ip4("ip,0")
(Successful)
Step 11. set_checkbox("enable,0")
(Successful)
Step 12. click_button_last_only("Save Settings")
(Failed - Object Not Found)
-----------------------------------------------------------------------

Finished Adding DiMiBa01


-------------------DONE! (All Commands Finished)-------------------

Thanks for providing such a fantastic utility.

David
« Last Edit: November 10, 2009, 11:05:37 AM by diesel »

Offline Evan

  • Global Moderator
  • PcWinTech Guru
  • *****
  • Join Date: Feb 2009
  • Posts: 1,238
  • Karma: +45/-1
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #1 on: November 09, 2009, 11:25:08 AM »
Thanks for the great post.  You've pretty much covered all the bases and you are absolutely correct in that Shane will want to get the script fixed.

It looks like the name of the "Save Settings" button changed.  Can you mouse over the button and tell us what name it is using?  Just look in the lower left of your browswer window and tell us what comes up as the link for the button.

Thanks for trying out the app and I'm glad you enjoy it!  ;D

-Evan
About Evan:Site Admin, Tester, Editor


Offline diesel

  • PcWinTech Member
  • *
  • Join Date: Nov 2009
  • Posts: 8
  • Karma: +0/-0
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #2 on: November 09, 2009, 11:48:48 AM »
When I mouse over the "Save Settings" button, the address in the browser status bar is: javascript:to_submit(document.forms[0])

David

Offline Evan

  • Global Moderator
  • PcWinTech Guru
  • *****
  • Join Date: Feb 2009
  • Posts: 1,238
  • Karma: +45/-1
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #3 on: November 09, 2009, 01:30:50 PM »
Thanks for the reply.  I'll be sure Shane checks it out.  Hopefully everything will be working shortly!  :)

-Evan
About Evan:Site Admin, Tester, Editor

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 8,673
  • Location: USA
  • Karma: +288/-0
  • "Knowledge should be shared not hidden."
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #4 on: November 09, 2009, 01:37:03 PM »
ah easy fix!  ;D

Can you tell me the new firmware version you have by chance?
Just wondering if I need to change the current script or make a new one for the new firmware.

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 8,673
  • Location: USA
  • Karma: +288/-0
  • "Knowledge should be shared not hidden."
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #5 on: November 09, 2009, 01:45:19 PM »
never mind the firmware version is in the post title LOL

I will update the script later today  ;D

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 8,673
  • Location: USA
  • Karma: +288/-0
  • "Knowledge should be shared not hidden."
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #6 on: November 09, 2009, 01:50:38 PM »
Ok script is updated. I left the save settings button command for the old version of the firmware but added the new command for the yours. This way the script can still support both  ;D

Thanks again
Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline diesel

  • PcWinTech Member
  • *
  • Join Date: Nov 2009
  • Posts: 8
  • Karma: +0/-0
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #7 on: November 10, 2009, 11:24:28 AM »
Okay, I updated my router list and tried again. Now it reports success, but the entry still isn't saved.

Here's the log:


Code: [Select]
Router: Linksys - WRT54G (Linksys v8 Firmware)
Loading Commands...
Number Of Port Forwards To Send To Router (1)
Running Commands...

(Current -  1/1)
Adding DiMiBa01 (TCP) For Ports 32158-32158 To 192.168.1.201()

Running Script From Database For Selected Router
-----------------------------------------------------------------------
Step 01. nav_first_only("Forward.htm")
(Successful) (http://admin:admin@192.168.1.1/Forward.htm)
Step 02. check_if_name_exists("")
Step 03. set_name_array("0|1|2|3|4|5|6|7|8|9")
(Successful)
Step 04. set_name_to_check("name,0")
(Successful) (Current Name From Name Array name3)
Step 05. set_name("name,0")
(Successful)
Step 06. set_start_port("from,0")
(Successful)
Step 07. set_stop_port("to,0")
(Successful)
Step 08. set_type_choices("TCP|UDP|BOTH")
Step 09. set_combobox("pro,0")
(Successful)
Step 10. set_ip4("ip,0")
(Successful)
Step 11. set_checkbox("enable,0")
(Successful)
Step 12. click_button_last_only("Save Settings")
(Failed - Object Not Found)
Step 13. call_javascript_last_only("to_submit(document.forms[0])")
(Successful)
-----------------------------------------------------------------------

Finished Adding DiMiBa01


-------------------DONE! (All Commands Finished)-------------------

Is there any other information that I can provide that will help?

David

Offline Evan

  • Global Moderator
  • PcWinTech Guru
  • *****
  • Join Date: Feb 2009
  • Posts: 1,238
  • Karma: +45/-1
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #8 on: November 10, 2009, 11:31:40 AM »
Well I see where the old button command is getting called and failed but then the new one is called and is successful...but you say that it isn't actually saved?

You could try enabling Debugging Mode under the Advanced menu.  That will allow you to step through each step which might work.  Let me know if anything different happens with that.

Shane might need to just remove the old button command, but that wasn't expected to cause a problem...hence the Debug mode suggestion.  Lets see how that works.  :)

-Evan
About Evan:Site Admin, Tester, Editor

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 8,673
  • Location: USA
  • Karma: +288/-0
  • "Knowledge should be shared not hidden."
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #9 on: November 10, 2009, 11:38:10 AM »
The old command wont hurt since it isnt being called because it fails to find the button.

2 things, 1, make sure the page isnt loading out of cache, try right clicking on it and refresh, just to make sure.
2. Load the page, then right click and view source. save it as a text file and attach it and I can look at what it needs  ;D

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline diesel

  • PcWinTech Member
  • *
  • Join Date: Nov 2009
  • Posts: 8
  • Karma: +0/-0
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #10 on: November 10, 2009, 12:01:03 PM »
Stepping through the script in Debug Mode didn't help. Nor did refreshing the browser window.

FWIW, I tried running SPF on another machine (Windows Vista and IE7) and got the same result.

I've attached the page source.

David

[attachments over 25 days old deleted by admin]

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 8,673
  • Location: USA
  • Karma: +288/-0
  • "Knowledge should be shared not hidden."
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #11 on: November 10, 2009, 12:16:21 PM »
odd when I view it in my html editor the save settings commands are gone. DO me a fav and use the router screen capture program, you need min of 5 pages in the program so just grab the same page a few times lol. Upload that to me and see if it grabs more of the info I need.

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Evan

  • Global Moderator
  • PcWinTech Guru
  • *****
  • Join Date: Feb 2009
  • Posts: 1,238
  • Karma: +45/-1
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #12 on: November 10, 2009, 12:20:56 PM »
You can download that tool here (http://www.pcwintech.com/router-screen-capture;)

-Evan
About Evan:Site Admin, Tester, Editor

Offline diesel

  • PcWinTech Member
  • *
  • Join Date: Nov 2009
  • Posts: 8
  • Karma: +0/-0
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #13 on: November 10, 2009, 12:31:06 PM »
Zip file uploaded. Hope it helps.

Thanks again.

David

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 8,673
  • Location: USA
  • Karma: +288/-0
  • "Knowledge should be shared not hidden."
Re: Port forwarding settings not saved - Linksys WRT54G v8.00.7
« Reply #14 on: November 10, 2009, 12:35:57 PM »
Got it  ;D
Quick question, after the last step does the page come up saing settings successful? or does it just stay on the same page?

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com


 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1833 Views
Last post December 31, 2009, 09:01:16 AM
by Shane
1 Replies
697 Views
Last post May 06, 2010, 10:15:30 AM
by Shane
4 Replies
878 Views
Last post June 14, 2010, 06:35:48 PM
by Shane
20 Replies
1864 Views
Last post March 01, 2011, 08:20:14 PM
by Shane
29 Replies
1963 Views
Last post March 12, 2011, 09:38:10 AM
by Evan