LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2009, 12:48 AM   #1
Jim Miller
Member
 
Registered: Sep 2001
Posts: 35

Rep: Reputation: 15
Local machines showing up with external addresses??


I've got one of those problems that suddenly makes me realize how little I understand about the gory details of networking. Any help about the following would be greatly appreciated.

I'm running a "relatively standard" home network environment. That is, I've got a DSL connection to my ISP, and am running a router/NAT environment that connects a number of machines -- Mac, Windows, and Linux -- to the external network. Internally, all the machines have addresses in the range of 192.168.0.x. However, because of the static/NAT address mapping, the machines whose internal addresses are mapped to external static addresses show up at external hosts as 216.xxx.yyy.zzz (the address range assigned to me by my ISP). The other machines, which are on the network via NAT, show up as 66.xxx.yyy.zzz, the address assigned by my ISP. Finally, I'm running a local DNS server that handles addressing issues for my domains and sub-domains that are hosted on local machines. All the machines use this local server for their DNS, with my ISP's DNS server as secondary. All of this is to say that it's more or less a pretty typical configuration, and, in general, everything is working fine.

Here's where it gets tricky:

* Machine A is a Fedora 10 linux box, which hosts an externally visible domain and runs, among other things, a web server. It's assigned to one of the addresses that's mapped to a static IP address.

* Machine B is a MacBook Pro, running Snow Leopard (10.6). It typically runs at 192.168.0.6, which is NOT one of the addresses mapped to a static address, but "just" a NAT address.

Now, suppose Machine B hits the web browser run by Machine A: the log files should show the traffic arriving from the local address, 192.168.0.6. However, it instead shows up as coming from 66.xxx.yyy.zzz, the external NAT-affiliated address. This seems wrong, especially since all the other machines on my network show 192.168-type addresses when hitting the web server.
.

I now change Machine B's address to 192.168.0.5 -- one of the statically-mapped addresses. Browsing traffic is now arriving from 192.168.0.5, which is (I think) as it should be.

I now change Machine B's address back to 192.168.0.6. The web traffic on Machine B is now reported to be arriving from 192.168.0.6 -- NOT 66.xxx.yyy.zzz.

Thus my confusion. It's complicated by the fact that I don't know where to look for the problem. All the log files on all the machines seem relatively normal; there are least no glaring problems screaming out from them. I'm tempted to blame the MacBook, since it's the only one showing the problem, but I'd feel better if I knew what to do and how to fix it.

Any advice out there? This is driving me kinda nuts. Thanks!
 
Old 11-09-2009, 01:13 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
In answer to your question: Machine B, the macbook, can get to the machine A web server either internally, or by going out to the internet and coming back in. Your internal DNS server may have something to do with this. Routers are DNS servers, but you also have another internal DNS server. The other internal DNS server may be sending machine B to the internet, and then back to your web server. There could also be a conflict with the 192.168.0.6 address.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unknown IP addresses showing up in nmap Gortex Linux - Security 19 02-27-2009 08:29 AM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM
local addresses LQtor Linux - Networking 1 03-15-2004 03:05 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 11:03 AM
5 DHCP addresses and 7 machines GAVollink Linux - Networking 2 01-25-2003 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration