LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connection sharing to W2K Server (https://www.linuxquestions.org/questions/linux-networking-3/connection-sharing-to-w2k-server-24708/)

dwynter 07-01-2002 04:07 AM

Connection sharing to W2K Server
 
Hi,

I have a MDK 8.2 install with a Speedtouch ADSL USB connected modem which is working on ppp0. I am using an IPTABLES script supplied by Griffon26 (often on this forum). I have a Win98 notebook from which I can ping the gateway IP. I have a W2K Server PC that has the same settings for gateway, DNS and subnet mask but fails to ping the gateway on the Linux box. The IP Masquerade is out of date with respect to setting up different clients, it only shows NT. But you can find the equivalent settings in the local area connection property sheet in W2K. So I don't get it? Any ideas

gateway is 10.0.0.1, subnet mask is 255.0.0.0. DNS on the Linux box is 10.0.0.2 and for the ISP the DNS is 213.120.62.103 and 213.120.62.104. W2k box is on 10.0.0.6, Win98 is on 10.0.0.5 both with the same subnet mask as the linux box.

The other things about the W2K setup are that it has disabled IPSEC. packet filtering is disabled. WINS is set on 10.0.0.6. NetBIOS is enabled over TCP/IP and LMHOSTS lookup is disabled. Append primary and connection specific DNS suffixes is enabled. "Register this connection's address is DNS" is selected. Finally the Interface metric is set to 1.

The key settings in my iptables.sh are

LOOPBack=127.0.0.0/8
LAN_IF="eth0"
EXT_IF="ppp0"
LAN_IF_ADDR="10.0.0.1"
EXT_IF_ADDR="213.yyy.zz.qq"
LAN_SUBNET="10.0.0.0/8"

Last thing is that even though I can ping from my Win98 notebook I cannot get it to resolve a page in it's web browser, what extra steps do I need to achieve this?

Thanks

David

dwynter 07-01-2002 04:20 AM

One thing I discovered. I had set 10.0.0.2 to be the top DNS in Win98, this is as I setup in Linux in the resolver configuration panel of netconf tool. I changed the DNS in the Win98 configuration to just use th eDNS supplied by the ISP and it now resolves www.yahoo.com, woohoo!

So now it is just the whole configuration of the W2K box that needs to be sorted out.

David

Griffon26 07-01-2002 04:48 AM

Re: Connection sharing to W2K Server
 
Quote:

I have a W2K Server PC that has the same settings for gateway, DNS and subnet mask but fails to ping the gateway on the Linux box.
If you want to rule out the possibility of the linux box blocking traffic from 10.0.0.6, then turn off the win98 machine and set up the 2K machine to use 10.0.0.5. This is a quick way to see if the error is in the 2K configuration or the linux configuration.

Quote:

gateway is 10.0.0.1, subnet mask is 255.0.0.0. DNS on the Linux box is 10.0.0.2
I'm not sure what you mean with DNS being 10.0.0.2, but in /etc/resolv.conf should be the two DNS server IP's you got from your ISP.
example resolv.conf:
Quote:

nameserver 192.109.6.66
nameserver 192.109.7.77
Quote:

WINS is set on 10.0.0.6.
I always have WINS disabled. Don't know exactly how it works.

Tonight I'll be able to check my 2K settings. That'll be in an hour or 6.

dwynter 07-01-2002 11:41 AM

Hi,

I must have put the 10.0.0.2 for the DNS in the netconf tool. I thought the DNS was used by the other PCs on the LAN to resolve something. I have removed it. It was in the resolv.conf and I have removed it from there.

I tried the 10.0.0.5 IP address for the w2k box with the Win98 notebook off with no change.

I disabled the WINS although W2K always warns me about it being blank in the property sheet when I dismiss it.

The Microsoft Loopback adapter had the wrong subnet mask. What is this used for anyway? I now have it set with the same DNS and gateway settings as the actual netwrok card and it is on 10.0.0.4 IP address.

GAVollink 07-01-2002 11:55 AM

From W2K, post output of
C:\> ipconfig /all

This will show the DNS config/IP config and Wins config (if you use WINS).

Griffon26 07-01-2002 12:01 PM

This is what my 2K configuration used to look like.

Code:

Windows 2000 IP Configuration

        Host Name . . . . . . . . . . . . : dinges
        Primary DNS Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Broadcast
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Realtek RTL8029(AS) PCI Ethernet Adapter
        Physical Address. . . . . . . . . : 00-00-XX-XX-XX-XX
        DHCP Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 10.0.0.6
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.0.0.17
        DNS Servers . . . . . . . . . . . : 131.174.60.21
                                            131.174.64.5


Griffon26 07-01-2002 12:06 PM

Quote:

Originally posted by dwynter
The Microsoft Loopback adapter had the wrong subnet mask. What is this used for anyway?
Where can I find that? I never heard of it. Is it one of your network and dial-up connections?

If so, I highly doubt you need it, but if you don't want to delete it, try netstat -ar to see if it isn't routing traffic to the loopback adapter while it should be going to the internet.

dwynter 07-01-2002 12:14 PM

My config looks like this:

Windows 2000 IP Configuration

Host Name . . . . . . . . . . . . : roamware-2eg62k
Primary DNS Suffix . . . . . . . : development.roamware.com
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : development.roamware.com

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : CNet PRO200 PCI Fast Ethernet Adapter #2
Physical Address. . . . . . . . . : 00-80-XX-YY-XX-YY
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.0.0.6
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 10.0.0.1
DNS Servers . . . . . . . . . . . : 213.120.62.103
213.120.62.104

Ethernet adapter Local Area Loopback:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Loopback Adapter
Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.0.0.4
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 10.0.0.1
DNS Servers . . . . . . . . . . . : 213.120.62.103
213.129.62.104


The fact that it is the server addition of W2K that uses SMB to provide file and printer sharing (although the Win98 notebook can no longer find the Domain server since I setup the Linux box?) have something to do with it?

David

dwynter 07-01-2002 12:20 PM

Hey this netstat -ar looks pretty meaningful. Wish I knew what it all meant!

C:\>netstat -ar

Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...02 00 4c 4f 4f 50 ...... MS LoopBack Driver
0x1000004 ...00 80 XX YY XX YY ...... CNet PRO200 PCI Fast Ethernet Adapter
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.0.1 10.0.0.6 1
0.0.0.0 0.0.0.0 10.0.0.1 10.0.0.4 1
10.0.0.0 255.0.0.0 10.0.0.4 10.0.0.4 1
10.0.0.0 255.0.0.0 10.0.0.6 10.0.0.6 1
10.0.0.4 255.255.255.255 127.0.0.1 127.0.0.1 1
10.0.0.6 255.255.255.255 127.0.0.1 127.0.0.1 1
10.255.255.255 255.255.255.255 10.0.0.4 10.0.0.4 1
10.255.255.255 255.255.255.255 10.0.0.6 10.0.0.6 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
224.0.0.0 224.0.0.0 10.0.0.4 10.0.0.4 1
224.0.0.0 224.0.0.0 10.0.0.6 10.0.0.6 1
255.255.255.255 255.255.255.255 10.0.0.4 10.0.0.4 1
Default Gateway: 10.0.0.1
===========================================================================
Persistent Routes:
None

Griffon26 07-01-2002 12:21 PM

could you edit that post and add a [code] block around it? Makes it way more readable =]

GAVollink 07-01-2002 12:23 PM

To answer Griffon26:
Every machine has a loopback - check 'route print' under Win2k. (127.0.0.0). The interface 0x1 is "reserved" for TCP Loopback.

To answer dwynter:
The loopback is the address of localhost. Its a quick way to always be able to find your own services.

Griffon26 07-01-2002 12:29 PM

Quote:

Originally posted by GAVollink
To answer Griffon26:
Every machine has a loopback - check 'route print' under Win2k. (127.0.0.0). The interface 0x1 is "reserved" for TCP Loopback.

Sure every machine has a loopback interface, but not every machine has 2. =]
In addition to the standard loopback interface he also has a LoopBack Driver/Adapter.

Griffon26 07-01-2002 12:32 PM

Edited: I answered my own question, so I have another.

Looking at the routes in the table, I would say the matching line that is closest to the bottom of the list will be used.

This would mean that he should be able to ping his gateway right? As far as pinging hosts on the internet is concerned, it looks like the local loopback adapter is eating his packets because of a screwy order of routes.

Can you tell me if this local loopback adapter is present as a network/dial-up connection?

dwynter 07-01-2002 12:40 PM

I tried
<code>

the output from netstat and ipconfig here

</code>
and it did not work

David

Griffon26 07-01-2002 12:42 PM

That's why I said [code] =]


All times are GMT -5. The time now is 10:06 PM.