• April 25, 2024, 06:05:19 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: [1] 2

Author Topic: Virtual Server address keeps changing to 127.0.1.1  (Read 8056 times)

zzzyzygy

  • Level 1 Member
  • *
  • Posts: 7
Virtual Server address keeps changing to 127.0.1.1
« 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?
« Last Edit: April 30, 2011, 10:35:57 AM by zzzyzygy »
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #1 on: April 29, 2011, 07:51:41 AM »

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.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

zzzyzygy

  • Level 1 Member
  • *
  • Posts: 7
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #2 on: April 29, 2011, 08:23:45 AM »

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.
Logged

LookIntoMyEyees

  • Level 5 Member
  • *****
  • Posts: 619
  • Let me lend you a hand & solutions shall follow.
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #3 on: April 29, 2011, 08:28:25 AM »

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
Logged
Did I Help? If So, Say So! ShHHhh!, Just LookIntoMyEyees! No one is perfect, we all make mistakes.

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #4 on: April 29, 2011, 08:52:24 AM »

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.
« Last Edit: April 29, 2011, 09:03:16 AM by FurryNutz »
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

Hard Harry

  • Guest
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #5 on: April 29, 2011, 11:48:14 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?

I would check your firewall on that PC. 127.0.0.1 is the loopback.
Logged

zzzyzygy

  • Level 1 Member
  • *
  • Posts: 7
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #6 on: April 29, 2011, 05:49:18 PM »

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.
Logged

zzzyzygy

  • Level 1 Member
  • *
  • Posts: 7
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #7 on: April 29, 2011, 05:52:09 PM »

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.  ???
Logged

Hard Harry

  • Guest
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #8 on: April 29, 2011, 11:04:49 PM »

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.
Logged

zzzyzygy

  • Level 1 Member
  • *
  • Posts: 7
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #9 on: April 30, 2011, 09:50:41 AM »

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...>
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Virtual Server address keeps changing to 127.0.0.1
« Reply #10 on: April 30, 2011, 10:21:53 AM »

 ::)
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

zzzyzygy

  • Level 1 Member
  • *
  • Posts: 7
Re: Virtual Server address keeps changing to 127.0.1.1
« Reply #11 on: May 01, 2011, 09:20:24 AM »

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.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Virtual Server address keeps changing to 127.0.1.1 (RESOLVED)
« Reply #12 on: May 01, 2011, 09:30:18 AM »

Glad you found the fix man. Good info to know.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

Hard Harry

  • Guest
Re: Virtual Server address keeps changing to 127.0.1.1
« Reply #13 on: May 01, 2011, 10:33:14 AM »

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.
Logged

zzzyzygy

  • Level 1 Member
  • *
  • Posts: 7
Re: Virtual Server address keeps changing to 127.0.1.1
« Reply #14 on: May 01, 2011, 10:36:58 AM »

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.
« Last Edit: May 01, 2011, 10:40:26 AM by zzzyzygy »
Logged
Pages: [1] 2