WRT120N Latest firmware BUG & PATCH

Hello,
I just bought a WRT120N Wireless Access Point. I upgraded its firmware to the latest available (v1.0.04) but there is a BUG in the "Applications & Gaming" section. In particular, in the "Single Port Forwarding": two applications with the same internal port, even with different IP addresses, can be added and the error message is "Port Number is duplicate.".
This behavior is incorrect and can be explained with an example: let us assume we have two web server behind the NAT. Both are listening on the default port 80/tcp and have address 192.168.1.2 and 192.168.1.3. It is possible to forward the data received by the router on port 80/tcp to the web server 192.168.1.2 and the data received by the router on port 8080/tcp to the web server 192.168.1.3. This is allowed because everything is unique: if the router receive a packet on port 80/tcp it have to rewrite the destination IP address and insert 192.168.1.2 while if it receive a packet on port 8080/tcp it have to rewrite the destination IP address and tcp port (192.168.1.3 and 80). It is irrelevant that final port destination is the same. Of course, it is important that the two rules have a different external port: otherwise the router could not distinguish between them but the internal port is irrelevant (as long as two rules are not identical).
The BUG is circumscribed in the JavaScript since I tried to "nop" the wrong check with Firefox/Firebug and the rules are correctly memorized in the configuration and they works without issues.
I Fixed the JavaScript and, in the following, there is the patch. Actually, this patch does not solve another minor BUG: theoretically it is possible to redirect two different external ports to the same couple internal IP/port. The solution is trivial too, but this would require rewrite a larger portion of code, so I decided to not fix this minor BUG because it is less severe and the scenario is less common.
This BUG seems tightly related to http://forums.linksysbycisco.com/linksys/board/message?board.id=Wireless_Routers&message.id=85768&query.id=245618#M85768 but that one is on another router/firmware (that I do not own) so I do not know if this patch apply to that BUG too.
Please let me know if you need further informations
Marco Papa Manzillo
----------- Patch -------------
 diff -ur 192.168.167.1 2/index.htm 192.168.167.1/index.htm
--- 192.168.167.1 2/index.htm   2010-01-05 13:39:59.000000000 +0100
+++ 192.168.167.1/index.htm     2010-01-05 14:32:00.000000000 +0100
@@ -535,9 +535,10 @@
 var fNameHead = "gport_external";
 var fNameTail = "gport_internal";
+var fNameIP   = "private_ip4_";
 var applicationName = "application";
 var appname = "";
-var i, rs, rs2, j, index, numProtocol, temp;
+var i, rs, rs2, j, index, numProtocol, ipv4_private, temp, temp2;
  for (i = 0; i < F.elements.length; i++) {
 f = F.elements[i];
@@ -548,11 +549,15 @@
 continue;
        }else {
 temp = "protocol" + f.name.substring (fNameTail.length, fNameTail.length + 2);
+temp2 = fNameIP + f.name.substring (fNameTail.length, fNameTail.length + 2);
 }else {
 temp = "protocol" + f.name.substring (fNameHead.length, fNameHead.length + 2);
+temp2 = fNameIP + f.name.substring (fNameHead.length, fNameHead.length + 2);
 numProtocol = document.getElementsByName(temp)[0].value;
+ipv4_private = document.getElementsByName(temp2)[0].value;
+
 if (f.value.length == 0)continue;
@@ -584,7 +589,7 @@
 if(rs2=="1") break;}
-rs = checkDuplication_PortRange3 (F, f, numProtocol, fNameHead, fNameTail, 0, 15);
+rs = checkDuplication_PortRange3 (F, f, numProtocol, ipv4_private, fNameHead, fNameTail, fNameIP, 0, 15);
 if (rs == true||rs2 == "1") {
 alert (msg_alert_0038);
 //f.value = f.defaultValue;
diff -ur 192.168.167.1 2/jslib.js 192.168.167.1/jslib.js
--- 192.168.167.1 2/jslib.js    2010-01-05 13:35:03.000000000 +0100
+++ 192.168.167.1/jslib.js      2010-01-05 15:27:11.000000000 +0100
@@ -549,19 +549,21 @@
        return false;
 //rob. 2009.0325 also check protocol type when submit form.
-function checkDuplication_PortRange3 (F, f, numProtocol, fNameHead, fNameTail, startCount, maxItem)
+// Marco Papa Manzillo 2009.0105 also check internal IPv4 for internal port when submit form
+function checkDuplication_PortRange3 (F, f, numProtocol, ipv4_private,fNameHead, fNameTail, fNameIP, startCount, maxItem)
        if (fNameHead.length == 0)      return false;
        if (fNameTail.length == 0)      return false;
        if (f.value.length   == 0)      return false;
        var fPort1 = new Array (null, null, null, null);
-       var tmpName1, tmpName2;
+       var tmpName1, tmpName2, tmpName3;
        var fProtocol = "protocol";
        var tmpProtocol;
-       var a, a2, b1, b2, ck=0,rs;
+       var a, a2, a3, b1, b2, b4, ck=0,rs;
        a= parseInt (f.value);
        a2=parseInt (numProtocol);
+       a3=parseInt (ipv4_private);
        tmpName1 = "";
        if (f.name.substring (0, fNameHead.length) == fNameHead)
@@ -575,19 +577,21 @@
                tmpName1 = fNameHead + i;
                tmpName2 = fNameTail + i;
                tmpProtocol = fProtocol + i;
+               tmpName3 = fNameIP + i;
                if (f.name == tmpName1 || f.name == tmpName2)   continue;
-               rs = DynamicGetField (F, 3, tmpName1, tmpName2, tmpProtocol, "", fPort1);
+               rs = DynamicGetField (F, 4, tmpName1, tmpName2, tmpProtocol, tmpName3, fPort1);
                if (rs == false)        continue;
                b1 = (fPort1[0].value.length == 0) ? 0: parseInt (fPort1[0].value);
                b2 = (fPort1[1].value.length == 0) ? 0: parseInt (fPort1[1].value);
                b3 = (fPort1[2].value.length == 0) ? 0: parseInt (fPort1[2].value);
+               b4 = (fPort1[3].value.length == 0) ? 0: parseInt (fPort1[3].value);
                if (ck==0)//check tail
-                       if (a == b2)
+                       if (a == b2 && a3==b4 ) // Internal IP must be checked only for internal ports.
                                if ((a2 == 99)||(a2 == b3)) return true;

First of all I would suggest you to reset the router for 45 seconds and reconfigure all the settings again as you have upgraded the router's firmware.
What is the IP address you are getting from the modem...?
What happen when you connect the computer directly to the Modem..?
Do not load the backup config file on the router.After resetting the router,reconfigure all the settings again.

Similar Messages

  • X6 - latest firmware BUG

    Hi, I'm running an X6 16 GB with the latest fimware V21.0.004
    and occaisionally while using my phone i will click the menu button and it will be totally blank.
    I click options and menu crashes? and it returns me back to the phone's main page.

    use the contact us link above and tell nokia about it.
    this is a user to user forum.
    Greece Nokia X6 RM-559 v40.0.002

  • Reproducible bug in iPod Classic latest firmware, crash after Contacts

    Reproducible bug:
    You can't enter the contacts item on the iPod Classic 120gb with latest firmware (possibly affects newer iPods too), when you haven't synced any contacts..
    However, if you put the contacts in the main menu (Settings -> Main Menu, then check 'Contacts'), you CAN enter it.. When exiting the Contacts menu (which says you have to sync contacts through itunes first) with the Menu button on the iPod, it instantly resets..
    Reproduced a number of times..
    Message was edited by: Stijn Spijker

    I'd suggest that you report this to apple by calling them or leaving them feedback at:
    http://www.apple.com/feedback/ipod.html
    As if it is a firmware issue there's nothing that can be done until they release an updated edition.

  • Nokia E65 latest firmware serious problem or bug !...

    Yesterday night I decided to update my mobile software using nokia software updater to solve a performance issue as mentioned in the website.
    I took a full back on my MMC then started the update.
    My mobile software version was 1.00.XXXXX and the new release is 4.XXXXXX
    The update completed successfully, but after I restarted the mobile I was shoked of the following issues :
    - The arabic language disappeared from the phone lagnauge selection.
    - MMC requested a passrowd to ulock it !!! while I dont remember that I set a password for it or I may set it once long time back but I forgot it now.
    I'm surprized for what happened as I had a discussion last night with my father regarding Nokia trust relation ship .
    Please advice how can I solve my issues ASAP.
    All my contacts are backed up on the memmory .

    please i really need to update my e65 because it's been performing very slow and it can only brows with MTN but not with etisalat network down here in nigeria. I have been trying to update my e65 to the latest firmware but can't any idear from friends out the contact me with this email; [email protected] or [email protected] better still, text me with these mobile nombers +2340866217689 and i will appreciate you thank you.

  • E71 Firmware Bug with USB Mass Storage.

    Hi,
    Just got a e71, it has the latest firmware, it's mostly good except for this bug.
    If you install a new theme on a memory card and then attempt to use the USB for mass storage it will always lock the card no matter how you disconnect from the USB, it always reports Memory card in use.
    What is supposed to happen is the phone is supposed to switch to a theme on the phone memory and unload the theme on the card, it does indeed switch themes, but does not unload the theme on the card, so the only way to free the card is to reboot the phone.
    If anyone from Nokia is looking at this forum, you guys need to fix these little bugs with the firmware.  A update to the OS the E71x is using would be nice by the way.  I paid a lot of money for this unlocked phone and expect it to be rock solid.

    I had this problem with the memory card. All you do is set the USB connection to PC suit and not Mass Storage. If it's in PC suit mode you don't loose the memory card and it always let you access it. I never bother with mass storage anymore. Also set to don't ask if you want. I ahve no issues since I di this and am using the 200 firmware.
    To transfer files to the card I go into my computer, double click the picture of the nokia E71 and then double click the memory card and access it that way. Hope this helps as it's a pain installing everything on the phone.
    Just another quick tip if you download the themes through your phone like me once installed and after a re-start something may try and install and fail once your phone starts up. It will do this everytime you re-start your phone. To fix the issue you have to browse the memory card with 'view hidden folders' selected in Windows and delete certain sis files from a certain folder. I can't remember off the top of my head but it explains it in another post in this forum. I can't take the credit for it.
    Ben 

  • XFi-2- Latest firmware (1.20.08) has caused some issues on 32GB model...

    HXFi-2- Latest firmware (.20.08) has caused some issues on 32GB model... When I started my PC last night, it notified me that new firmware was avaliable so it downloaded it and installed it on my Xfi-2 32GB
    According to the release notes, it was to add support for the 64 GB model as well as some general improvements.
    I can't determine what the latest improvements were (anyone have any clues ) and the UI seems the same.....the only things that have changed are that my applications no longer work (when I go into the applications shortcut, it says there is no valid content: I haven't touched these folders etc and they are still populated with the three standard apps as far as I can tell)
    The other thing (which may not be related to the firmware upgrade) is that my photos shortcut now pulls up some of my music folders that contain album art. Is this a feature or a bug (I don't want it to happen, I just want it to show photos within the 'photos' folder on the device).... I think it may have been caused by me simply dragging and dropping music folders onto the device using windows explorer rather than going through Centrale (slow!)
    Cheers

    Hi Timmo.
    What release notes are you reading? I have seen no reference to improvements other than adding support for the new 64 GB model on this firmware version. From the description of the problems you have, it seems that your player has some sort of file system corruption on the internal flash. I would suggest reinstalling the firmware on your device after formatting it (formatting the device only should be enough, I think).
    The size of the new firmware release, double than the size on the previous one, means that it probably has new features and applications that will be enabled on the future; however I doubt it means it has new features right now and hope it does not means we have two firmwares (on for the 64 GB model and other for the previous ones) as the SRM/AlphaBIOS pair on the Digital Alpha systems (an ugly hack on these superb computers, in my humble opinion) -- by the way, the new firmware does not require more space on the internal flash (I have 5077 MB available on mine with all firmware releases).
    The behavior you describe about album art being shown on the photos shortcut happens with older firmware releases too; I prefer album art embedded on the audio files instead of being available as another file. I agree with you, only pictures under the photos directory should be shown as images.
    Cheers.

  • E65 latest firmware supports sdhc (4gb and above) ...

    Hi everyone,
    My e65 runs firmware version 1.0633.18.01, product code is 0548014.
    Now I know I can't update to the latest software version probably because my phone is branded by the operator (3 Austria).
    Anyhow, I'd like to know if the latest firmware available from Nokia enables support for high capacity sd-memory cards (4 gb, 8gb...).
    If yes, maybe I should try bugging the operator about it. Or, I could get my phone unbranded and try to update? Could that work so that I can use an 8gb mem card with my E65?
    If not, does anynoe happen to have a clue whether IT IS POSSIBLE at all that future updates might enable sdhc support?
    This topic has been touched by previous posts, but the last one to be specific about it is a few months old, so I thought I'd ask you guys again
    Thanks, Ben

    thanks for the info,
    but that leaves my question unanswered as to the TECHNICAL POSSIBILITY of a firmware upgrade enabling sdhc support.
    Can sdhc support actually be enabled just by altering the phone's software?
    Ben

  • Latest firmware and updates!

    Hello, I am new and as far as I searched this forum, I still havent found any info about latest firmware and its updates
    Anyone can give me some link or something where I can see what is new in the latest update?
    I am sorry if I was blind, but at least I tried to find something
    Thanks
    EDIT: Thats meant to be for Nokia N80 Message Edited by ikey on 25-Apr-200701:34 AM

    25-Apr-200701:31 AM
    ikey wrote:
    Hello, I am new and as far as I searched this forum, I still havent found any info about latest firmware and its updates
    Anyone can give me some link or something where I can see what is new in the latest update?
    I am sorry if I was blind, but at least I tried to find something
    Thanks
    Well, the latest N80 Firm. is 4.0707.0.7 but it's craap. It contains a looooot of bugs u can find the bugs discussed here.
    Seriously, I do not recommend updating to this version trust me i have an N80 too..Message Edited by tekso on 25-Apr-200701:38 AM
    www.symbiano-tek.com

  • Linksys WRVS4400N Firmware Bug!

    i have problem whit my Firmware. I can not open all order of FTPs and i can`t Upload on a FTP and this of all Computers. Test: Cute FTP FileZilla Client SmartFTP Whats this for a bug? Its WDS coiming soon on WRVS4400N?

    since it seams like you are having an issue with your firmware , you can perform a factory reset by holding in the button in on back of the router for 30 seconds, wait about 2 minutes and try to upgrade to the latest firmware.
    Below is a link to help you with the firmware upgrade.
    http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=4030&p_created=11601...
    Good Luck,
    Ttech

  • Firmware bug in WRT330N

    I know alot of you may be already aware of this, the router has an error where when you go to single port forwarding and you set the ports protocol to both and you click save changes the protocol puts itself back on TCP. My question is when can I expect for their to be an upgraded version of firmware for this particular router so that this bug is fixed? Current firmware version 1.00.3 THANKS FOR THE HELP.

    Sorry i did not get your issue ......... however if you think that the router required upgrade .... you can upgrade to latest firmware ........
    After upgrade reset & reconfigure the router ........

  • IPod Firmware bug?

    Hi.
    I just bought an iPod Nano 2Gb Black about 1 month ago.
    But unfortunally it has started to "hang" at the star ratigng system. If i go to that option, i can't make i disappear. :S I keeps showing that screen even though i push the center button.
    Is this a Firmware bug, and how do I fix it? It's ******* me off that an only 1 month old iPod already screwed me like that.
    //CV-DK

    This is a known bug with some iPod models, including yours.
    You'll need to update your iPod to the newest firmware using the latest iPod Updater Utility to resolve this problem.
    Additionally, since you have a Nano, you may want to post future topics in the Nano forum instead of the 5th Generation iPod forum.

  • N78 fm radio transmitter firmware bug (firmware 20...

    Hi everyone, I just updated my N78 with the latest firmware (20.149). A few features of the FM transmitter stopped working (they worked with the older firmware).
     In particular:
    1. Now I cannot use the FM transmitter to listen to the streaming audio (e.g. from internet radio stations) to my FM radio. Instead of transmitting the signal to the FM radio, it just lowers the volume on my phone and no signal to the radio: just the intermittent beep that is transmitted when no audio is on the phone. (It used to work!)
    2. The FM transmitter only sends the signal coming from the Music Player, not from third party applications (or from the gps application)
    3. It seems the FM transmission power has decreased dramatically. With the older firmware I could listen to the radio keeping the phone a couple of meters from the receiver. Now I need to put it a few CENTIMETERS from the antenna, otherwise I hear mainly static!!
    These bugs have made the FM transmitter useless on my phone.
     I hope they'll be fixed soon.
    Thank you,
    Lor 

    Hi there, thankyou for your report on the bugs, here is my response (I too have updated to the latest v20.149 firmware):
    1.  this streaming internet radio feature has been removed since firmware 12.046 and has not appeared since. i believe, along with many other users here, that this is due to copyright issues, so by deactivating streaming of internet radio they are complying with appropriate copyright controls. it would be nice to stream internet radio through the FM transmitter but this probably will not come back
    2.  I found the same thing, i really do wish that it would stream all sounds from the phone, especially from the Maps application because the speaker is tinny. so maybe they can do something about this in subsequent firmware updates.
    3.  I find that the FM transmission power is variable, and not has increased/decreased with firmware updates. this is due to many factors, for example, it is summer here in Australia, and i have found that on really hot & hot and humid days that the FM transmitter struggles to send an adequate signal. hgowever, on cooler days the signal is strong and works well. I have tried this on both my car and standalone stereo in my home.
    I hope these help you shed  a bit more light on the issues, but I am as always holding out for the v30 firmware very soon

  • My macbook pro screen remains grey after latest firmware update

    i just had the update notification for the latest firmware, proceeded to do so, and the screen remains grey, its been more than one hour and still grey, since its a firmware update i don't want to disturb it, but could it be that is taking so long?

    Reboot it by pressing the power button down hard to force a shutdown.
    If your still having problems, take it to Apple. I hope you have AppleCare becuase if they can't fix it, it's a new logicboard.

  • HT3728 Does factory reset go back to latest firmware update.

    I have resently updated my airport express to latest firmware. The airport express is configured as an extension to my wifi with an Extreme as main device.
    Shortly after the firmware update (1-2 days) the express stopped working and status light turned yellow.
    I have since then tried to do factory reset several times without getting the device up and running again.
    When doing factory reset the status light turns yellow after releasing the button and stays amber with short interval with green (1 second every minute or so)
    I have not been able to discover the express from my iPad, iPone or iMac again.
    Could the reaons be latest firmware update?
    Any advice to get it back to normal?
    Thanks,
    Per

    Does factory reset go back to the latest firmware update.
    A Factory Default Reset will not affect the installed firmware.
    Shortly after the firmware update (1-2 days) the express stopped working and status light turned yellow.
    A solid amber light is unfortunately an indication that the internal power supply inside the AirPort Express is failing, or has failed.
    I have since then tried to do factory reset several times without getting the device up and running again.
    The AirPort Express has failed, and will need to be replaced.
    When doing factory reset the status light turns yellow after releasing the button and stays amber with short interval with green (1 second every minute or so)
    This is yet another confirmation that the Express has failed, and will need to be replaced.

  • Internet stopped working on MBA after latest firmware update. Help please!!!

    Internet stopped working after installing the latest firmware update. WiFi still connects to router, our other mac desktop still connects to internet as usual (same network). I can't even re-install the MBA OS since it needs an internet connection!!!
    Any ideas?

    FIXED.
    I swapped our wireless router for a newer one, internet seems to work fine again (we were sent a new one by our internet provider which we never set up until now).

Maybe you are looking for