D-Link Forums
The Graveyard - Products No Longer Supported => Routers / COVR => DGL-4500 => Topic started by: zzzyzygy on April 29, 2011, 07:50:03 AM
-
I have a virtual server set up to redirect an external port to a specific PC on my network. It works fine but it periodically resets to 127.0.0.1, so the service dissappears to the outside world. I have to check it about once a week and set it back to the correct address.
Is anyone else having this problem? If so, do you know why it happens and have you figured out how to prevent it?
-
What FW is currently loaded?
What HW version is the router? A1 or A2?
It's possible that the configuration on the router could be corrupt.
I know it's pain however sometime you might have to start over from scratch and re-configure everything after doing a factory reset.
-
HW = A2
FW = 1.14 (old, I know)
Does Save Settings record everything I have set up? I've got a lot of MAC address reservations and game servers set up on this thing.
-
I personally would recommend you to get the latest firmware upgrade, the past few firmware had issues that may have been resolved on the newer version.
--
Chris
-
Ya it saves everything.
I would do this, since your at 1.14, I might graduate to the next version, v1.15. Then test. 1.15 is a good version however I can't atest to the abilities of Virtual Server. See if this version helps.
If you do something I recommend the following:
Write down all of your settings or take screen captures if you need to.
Do a factory reset of the router.
Update to next version of FW.
Factory reset once more.
Set up a few settings, not all if you can help it. Test. If it seems good, finish configuration and test. Save off the new config to file.
Let us know.
-
I have a virtual server set up to redirect an external port to a specific PC on my network. It works fine but it periodically resets to 127.0.0.1, so the service dissappears to the outside world. I have to check it about once a week and set it back to the correct address.
Is anyone else having this problem? If so, do you know why it happens and have you figured out how to prevent it?
I would check your firewall on that PC. 127.0.0.1 is the loopback.
-
I saved the configuration and upgraded the firmware. When I tried to upload the old configuration it wouldn't take it, so I set everything up again. :-\
Sadly, it looks like the problem remains the same. It's happened twice today.
-
I would check your firewall on that PC. 127.0.0.1 is the loopback.
The service is running on an Ubuntu box. I have not installed a firewall on it as I am relying on the one in the DGL-4500. Unfortunately, my knowledge of Ubuntu is pretty rudimentary, so I don't even know where to look for OS-level firewall settings if there are any. ???
-
Heh, yeaaaa. I am going to assume the issue isn't the router then. There is no reason for the router to redirect to a 127. Where would you even see that it was being redirected? I think you might want to try the Ubuntu forums first.
-
Oops, major typo on my part. It periodically resets to 127.0.1.1, not 127.0.0.1. Sorry about that.
It is possible that the router is overwriting the address with the one in the hosts file on the server. So I just modified the hosts file. I replaced 127.0.1.1 with the internal network address of the server 192.168.0.200.
<queue Jeopardy music...>
-
::)
-
That seems to have done the trick.
Lesson: If you define a Linux server as a virtual server on a DGL-4500, edit the hosts file and replace 127.0.1.1 with the internal LAN address of the server. It appears that the router reads the hosts file and overwrites the virtual server address that you entered when you first set it up. If you don't edit the hosts file it changes it to 127.0.1.1 and the server cannot be accessed from the WAN.
-
Glad you found the fix man. Good info to know.
-
Good info, but it doesn't make sense to me. How can the router read host files on your computer? I think rather your PC's route table points the host name to 127.0.1.1 (which some do from a patch) then your host files won't override DNS query and other such requests from applications. Those query will go to the router, and be possibly misdirected by the virtual server rules. I mean either way, it doesn't matter. You gave us a solution people can just copy incase they run into it.
-
Good info, but it doesn't make sense to me. How can the router read host files on your computer?
That is a darn good question. It doesn't seem possible, but editing the file fixed the problem. It seemes very weird to me, too.
Thanks for the help, everyone.
-
Glad you found a good work around and fix. Hope it works well.