Prevent 127.0.0.1 from redirecting to myhome.westell.com?

Hello,

I recently signed up to use a new ISP (and thus having to use a new Westell router), and I have Personal Web Sharing enabled so I can view sites on my local network. Before using this ISP and router, I could navigate to 127.0.0.1 with no troubles at all. But now, every time I access it, it redirects to tekku.myhome.westell.com (tekku is my computer name).

I do not like this because when I'm not connected to the internet, I cannot view my websites on my computer! Whereas before, I could view them with no trouble when I'm not connected. After all, they are on my own computer's hard drive.

Is there any way to prevent this from happening? Thank you for your help.

iBook G4 14", Mac OS X (10.4.9)

Posted on May 15, 2007 10:48 PM

Reply
14 replies

May 16, 2007 8:59 AM in response to philsmith_

Kryten, yes it works but still redirects to myhome.westell.com

philsmith, here is the output of netstat -rn:

Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGSc 1312 9 en0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 10 17681 lo0
169.254 link#4 UCS 0 0 en0
192.168.1 link#4 UCS 1 0 en0
192.168.1.1 0:18:3a:2f:df:98 UHLW 1313 272 en0 807
192.168.1.47 127.0.0.1 UHS 2 57 lo0

Internet6:
Destination Gateway Flags Netif Expire
::1 link#1 UHL lo0
fe80::%lo0/64 fe80::1%lo0 Uc lo0
fe80::1%lo0 link#1 UHL lo0
fe80::%en0/64 link#4 UC en0
fe80::214:51ff:fe09:30c4%en0 0:14:51:9:30:c4 UHL lo0
ff01::/32 ::1 U lo0
ff02::/32 ::1 UC lo0
ff02::/32 link#4 UC en0

May 16, 2007 9:53 AM in response to Orzei

Okay, it's not a routing problem. Or rather, your routing tables look fine. There's one more thing I'd like to see:

$ route get 127.0.0.1

before I start to think this is a browser problem. There's no reason for the browser to invoke any sort of name lookup. Perhaps clearing the cache, and failing that, resetting the browser entirely will do the trick. I will try to think of other reasons, other than lo0 being down, for a connection not to go though the loopback interface.

May 16, 2007 11:01 AM in response to philsmith_

Here's the output for route get 127.0.0.1:

route to: localhost
destination: localhost
interface: lo0
flags: <UP,HOST,DONE,LOCAL>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
49152 49152 0 109 94 0 16384 0

(Note that typing in localhost in the address bar does the same thing as 127.0.0.1.)

I don't think this is a browser problem, because I've reset Safari and cleared the cache many times before. I also have used Firefox and Opera, and they behave no different. Do you think this is something I can change the router settings by going to 192.168.1.1? Thank you so much for your ongoing help!

May 16, 2007 11:27 AM in response to Orzei

I love bizarre problems. Your router is already set to 192.168.1.1, we saw that in the netstat output. We also see that your loopback interface appears to be fine. There is absolutely no reason I know of for a simple request along the loopback interface to go out to a router if the interface is up, and yours is. So this is getting to be interesting, and a chance to learn something new.

If you wouldn't mind, could we check if the requests are even hitting the loopback interface? Could you:

$sudo tcpdump -ilo0

and then enter http://127.0.0.1/ in your browser. We ought to see something in the tcpdump output. What we see or don't see will tell us a lot.

May 16, 2007 12:14 PM in response to philsmith_

Wow, a lot of output here 0_0. I decided to take screenshots and upload them, since pasting the output here would jumble things up and look complicated.

After typing sudo tcpdump -ilo0 and navigating to 127.0.0.1: http://yekita.net/tcpdump.png

Above continued: http://yekita.net/tcpdump2.png

After typing ping -c2 127.0.0.1: http://yekita.net/ping.png

tcpdump after typing ping: http://yekita.net/tcpdumpafterping.png

I hope this helps hehe.

(Thanks for your help, Anthony, but that did not fix it.)

May 16, 2007 1:32 PM in response to Orzei

The ping looks normal, except for being surrounded by traffice to and from port 1010 (surf) and netinfo. I don't know anything about surf (other than it's implicated in the Doly trojan horse) and I suspect it's the cause of your troubles. The http dialog starts well, too, but there's only 827 bytes transferred before a torrent of traffic between surf and netinfo. I suspect it's netinfo which is calling for the lookup. Your DNS server is coming back with it's own domain and netinfo is prepending your hostname.

What I can't tell you is why your http traffic is being diverted. If I were a suspicious sort, I would suspect the Doly trojan horse. But in my experience people usually do these things to themselves in the name of protection. Perhaps it's some sort of web filtration service. What's happened is that you've changed DNS servers, and this one isn't coming back with a NO answer, it's returning it's own domain. I know of several that do - opendns for one, so they can post their own web page when a host can't be found.

If you want to find out who's doing this enter:

$lsof -i:1010

and you should get the process I suspect is diverting your traffic. (Then again, I may be way off, this is uncharted territory.)

May 16, 2007 1:46 PM in response to philsmith_

Hmm, I am using openDNS. But I just now removed the openDNS DNS address and restarted the router, but that didn't change anything. Also, entering that lsof command did not return any output, just went on to the next line waiting for my input.

I've never heard of the Doly trojan horse; how does one get it? Also, do you think there's any thing left to do to fix this? Or would I have to deal with it ...?

I appreciate all the time you've taken to help me.

May 16, 2007 2:15 PM in response to Orzei

No problem, this is interesting. To get deeper, the only way I know is to sniff the packets and see what's going on. What I'm saying is that the initial route is happening just as it should: a dialog is taking place on the lo0 interface. But somewhere in that dialog must be something which causes a redirect, which causes a lookup. The lookup (may be in your machine, check /etc/resolv.conf) is coming back valid, partial, and causing the failure.

Might be something really simple, maybe a configuration in apache. I wouldn't worry about Doly, it only affected Windows. I know this is more output, but I'd do:

$sudo tcpdump -ilo0 -A -s0 'port 80'

and examine the http that follows. That should lead to something interesting.

May 16, 2007 2:33 PM in response to philsmith_

I opened resolv.conf to find:

domain myhome.westell.com
nameserver 192.168.1.1
nameserver 192.168.1.1


Thinking this has to be it, I changed myhome.westell.com to 127.0.0.1, restarted Apache, and it works! I can now visit my websites offline, and the domain stays the same no matter what. Thank you so much for your help!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Prevent 127.0.0.1 from redirecting to myhome.westell.com?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.