Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Linux and NT on home network
@ 1998-05-12 13:55 Matthew Woodworth
  1998-05-12 14:06 ` warp
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Matthew Woodworth @ 1998-05-12 13:55 UTC (permalink / raw)
  To: axp-list


Friends,

I have an NT machine using RRAS connecting to my ISP.  From it I can
ping, telnet, etc to any machine on the Internet.

I also have a Linux machine (UDB) connected to the NT machine via a hub.
The Linux machine can ping, telnet, etc to the NT machine but it can't seem
to get out of my home network.

I am new to routing but I have a few ideas.  (please excuse them if I am
on the wrong track)

1.  Because my home network has IP addresses in the 10.*.*.* network, any
router
will simply ignore/drop the packets on the way back.  In other words, my
packets
are making it out to the target machines but they can't get back.

2.  The NT machine doesn't forward the packets from the NIC to the modem.

I have IP forwarding turned on in the NT box but I can't tell if it is
actually forwarding the packets.  This is the output of the route command
on Linux.  (Jackson is the NT box)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.1.1.0        *               255.255.255.0   U     0      0        3
eth0
127.0.0.0       *               255.0.0.0       U     0      0       23 lo
default         jackson         0.0.0.0         UG    0      0       39
eth0

My questions are:

Can this be done (connecting a home network with 10.*.*.* addresses)?  Do I

need "real" IP addresses for my home network (I can get them for free).  If

I get them, will simply changing the IP addresses and routing tables fix
the
problem?

Thanks in advance,
Matthew S. Woodworth



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Linux and NT on home network
  1998-05-12 13:55 Linux and NT on home network Matthew Woodworth
@ 1998-05-12 14:06 ` warp
  1998-05-12 14:51 ` Christian Worley
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: warp @ 1998-05-12 14:06 UTC (permalink / raw)
  To: axp-list

Matthew Woodworth wrote:
> 
> Friends,
> 
> I have an NT machine using RRAS connecting to my ISP.  From it I can
> ping, telnet, etc to any machine on the Internet.
[...]

Better reverse your setup, make the Linux machine
the masquerading/forwarding/routing/dialup host
and hook the NT box to the Linux box, forwarding/
masquerading/routing plain s*cks on NT...

Kind regards,
Antoine


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Linux and NT on home network
  1998-05-12 13:55 Linux and NT on home network Matthew Woodworth
  1998-05-12 14:06 ` warp
@ 1998-05-12 14:51 ` Christian Worley
  1998-05-12 15:07 ` Jeff Sturm
  1998-05-13  4:05 ` Keith Baker
  3 siblings, 0 replies; 8+ messages in thread
From: Christian Worley @ 1998-05-12 14:51 UTC (permalink / raw)
  To: axp-list, Matthew Woodworth

Matthew Woodworth wrote:
> 
> Friends,
> 
> I have an NT machine using RRAS connecting to my ISP.  From it I can
> ping, telnet, etc to any machine on the Internet.
> 
> I also have a Linux machine (UDB) connected to the NT machine via a hub.
> The Linux machine can ping, telnet, etc to the NT machine but it can't seem
> to get out of my home network.

Your Linux machine needs to know the route (which you seem to have
setup correctly), as does your NT machine.  Other than turning on IP
forwarding on your NT machine, you have little recourse (beside
suicide).  Find some tcpdump like program that you can run from NT. 
Watch both interfaces to see who's dropping the packets.

> 
> I am new to routing but I have a few ideas.  (please excuse them if I am
> on the wrong track)
> 
> 1.  Because my home network has IP addresses in the 10.*.*.* network, any
> router
> will simply ignore/drop the packets on the way back.  In other words, my
> packets
> are making it out to the target machines but they can't get back.

Right.  If you're using a bogus (not-NIC assigned) network, then
you're correct: even if the linux box knows to route through the NT
box, and your NT box knows to route back, everthing in the internet
will mis route the packet.

If you're using a bogus internal network, then you need proxy
services:  the clients on the LAN only connect to the proxy on the
gateway, who (with a valid IP address) performs whatever action (i.e.
web request through port 80) for the client.

> 
> 2.  The NT machine doesn't forward the packets from the NIC to the modem.
> 
> I have IP forwarding turned on in the NT box but I can't tell if it is
> actually forwarding the packets.

Debugging is the hard part of NT.  Without any source, you're
blindfolded trying to solve problems.  You do all the work, Bill makes
all the money: it's in your contract!

Find a TCPDUMP like program for debugging.  That would be a good
start.  I doubt there's a free one for NT.

>  This is the output of the route command
> on Linux.  (Jackson is the NT box)
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 10.1.1.0        *               255.255.255.0   U     0      0        3
> eth0
> 127.0.0.0       *               255.0.0.0       U     0      0       23 lo
> default         jackson         0.0.0.0         UG    0      0       39
> eth0

Looks good.

> 
> My questions are:
> 
> Can this be done (connecting a home network with 10.*.*.* addresses)?

Yes, with proxy services.

>   Do I
> 
> need "real" IP addresses for my home network (I can get them for free).  If

Either that or proxies for all the ports you'll be using.

> 
> I get them, will simply changing the IP addresses and routing tables fix
> the
> problem?

Yes.  

Also, your ISP will probably charge you a higher rate if you request a
subnet, and you do have to request a subnet through them.

The best solution is to make the Linux box the gateway, and let the NT
machine collect dust somewhere where it can't cause any more
frustration.  Linux has the proxy servers you need to handle a bogus
internal network routing, and tcpdump for making sure the routing is
working, and diald for demand dialing, and eql for bonding multiple
modems, and the source code for figuring out what the problem is if
you run into one.

Chris
-- 
  When I die, please cast my ashes upon Bill Gates
   --for once, let him clean up after me!

  "Would you buy a car with the hood welded shut?" 
  --  George Bonser


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Linux and NT on home network
  1998-05-12 13:55 Linux and NT on home network Matthew Woodworth
  1998-05-12 14:06 ` warp
  1998-05-12 14:51 ` Christian Worley
@ 1998-05-12 15:07 ` Jeff Sturm
  1998-05-12 15:36   ` Mark Smith
  1998-05-13  4:05 ` Keith Baker
  3 siblings, 1 reply; 8+ messages in thread
From: Jeff Sturm @ 1998-05-12 15:07 UTC (permalink / raw)
  To: axp-list; +Cc: msw



On Tue, 12 May 1998, Matthew Woodworth wrote:
> The Linux machine can ping, telnet, etc to the NT machine but it can't seem
> to get out of my home network.
> 
> I am new to routing but I have a few ideas.  (please excuse them if I am
> on the wrong track)
> 
> 1.  Because my home network has IP addresses in the 10.*.*.* network, any
> router
> will simply ignore/drop the packets on the way back.  In other words, my
> packets
> are making it out to the target machines but they can't get back.

Correct.  The 10.* addresses are not routable on the Internet by 
convention.  This makes it easy for routers to distinguish external hosts 
from internal hosts.

> My questions are:
> 
> Can this be done (connecting a home network with 10.*.*.* addresses)?  Do I
> 
> need "real" IP addresses for my home network (I can get them for free).  If
> 
> I get them, will simply changing the IP addresses and routing tables fix
> the
> problem?

You can get a block of "legal" addresses for your network, and 
communicate with the Internet if your NT machine is designated as the 
gateway.  NT is operating as a router in this scenario.

However... I am doing sort of the opposite.  My Linux (164SX) box is the 
Internet gateway for my NT workstation.  NT has a private address and can 
access the Internet through IP masquerading.  This is easier to configure 
and does not require a block of routable addresses.

Linux is really much more capable than NT as an Internet gateway.  You 
might consider dialing out from your UDB with pppd rather than NT RAS.


> Thanks in advance,
> Matthew S. Woodworth
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Linux and NT on home network
@ 1998-05-12 15:15 Matthew Woodworth
  1998-05-12 16:31 ` Jeff Sturm
  0 siblings, 1 reply; 8+ messages in thread
From: Matthew Woodworth @ 1998-05-12 15:15 UTC (permalink / raw)
  To: axp-list





> Also, your ISP will probably charge you a higher rate if you request a
> subnet, and you do have to request a subnet through them.

This part of your letter is confusing me.  To tell the truth, I'm not using
a *real* ISP.  I can dial into work and access the net.  The reason I can
get
free IP addresses is that I am friends with our network admin.  However,
there is a limit to his kindness.  If I simply use a trio of IP addresses
on
his subnet do you think it will work?  He gave me three IP addresses on the
RAS subnet (the same subnet I dial into).  Are you saying that I'll need to
have my own subnet and that I can't just use addresses on his?


> The best solution is to make the Linux box the gateway, and let the NT
> machine collect dust somewhere where it can't cause any more
> frustration.  Linux has the proxy servers you need to handle a bogus
> internal network routing, and tcpdump for making sure the routing is
> working, and diald for demand dialing, and eql for bonding multiple
> modems, and the source code for figuring out what the problem is if
> you run into one.
I looked into this route but the modem I am using on my PC uses and ISA
slot.
My udb has only PCMCIA and PCI slots.  I am hoping to avoid buying
hardware.

Thanks in advance,
Matthew S. Woodworth





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Linux and NT on home network
  1998-05-12 15:07 ` Jeff Sturm
@ 1998-05-12 15:36   ` Mark Smith
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Smith @ 1998-05-12 15:36 UTC (permalink / raw)
  To: axp-list; +Cc: msw

> Linux is really much more capable than NT as an Internet gateway.  You 
> might consider dialing out from your UDB with pppd rather than NT RAS.

I have an entire network of NT/WIN95 machines which all have hidden
addresses (non-routable) and one linux box which acts as a gateway.
The linux system handles all the translations from internal addresses
to the external address going both ways.  There is only one ip address
assigned dynmically from the ISP every time it establishes communication
using ppp.  It was easy to setup.

I've even setup squid (httpd cacheing) on it and the users of the
NT/WIN95 systems (semi-sophisticated users) are astounded at how fast
their browsers load up at start time.

I know the advertising calls NT the "network operating system," but
Linux is better suited for the task you describe.

As far as NT is concerned, you might want to check out the security
features and make sure you're set to pass packets.  I think you need
to click on network while in the settings->control panel.

mark


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Linux and NT on home network
  1998-05-12 15:15 Matthew Woodworth
@ 1998-05-12 16:31 ` Jeff Sturm
  0 siblings, 0 replies; 8+ messages in thread
From: Jeff Sturm @ 1998-05-12 16:31 UTC (permalink / raw)
  To: axp-list


On Tue, 12 May 1998, Matthew Woodworth wrote:
> > Also, your ISP will probably charge you a higher rate if you request a
> > subnet, and you do have to request a subnet through them.
> 
> This part of your letter is confusing me.  To tell the truth, I'm not using
> a *real* ISP.  I can dial into work and access the net.  The reason I can
> get
> free IP addresses is that I am friends with our network admin.  However,
> there is a limit to his kindness.  If I simply use a trio of IP addresses
> on
> his subnet do you think it will work?  He gave me three IP addresses on the
> RAS subnet (the same subnet I dial into).  Are you saying that I'll need to
> have my own subnet and that I can't just use addresses on his?

Generally remote networks need to operate on their own subnet.  Stealing 
a few addresses doesn't quite work, although NT RAS does for simple 
remote dialups with a trick known as proxy ARP.  I'm not sure NT will 
proxy/forward an entire remote network however.

To do it properly, you will need a static IP from the RAS server, a 
dedicated subnet of at least 8 addresses, and your network admin must add 
a route table entry for your subnet.  It *might* be possible with dynamic
routing such as RIP, but all this is more trouble than it's worth IMO.

Since what you are doing is common and not simple or economical with 
standard routing techniques, alternatives like NAT and IP masquerading
in particular are highly popular.  If you really don't want to use your 
UDB as a gateway, you can do NAT on NT too with the help of commercial 
software.  (But you might find a modem for your UDB is much more affordable.)

Jeff


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Linux and NT on home network
  1998-05-12 13:55 Linux and NT on home network Matthew Woodworth
                   ` (2 preceding siblings ...)
  1998-05-12 15:07 ` Jeff Sturm
@ 1998-05-13  4:05 ` Keith Baker
  3 siblings, 0 replies; 8+ messages in thread
From: Keith Baker @ 1998-05-13  4:05 UTC (permalink / raw)
  To: axp-list

look at ipmasking...  your gonna need more than nt's internal routing...
use linux as your internet router :)

On Tue, 12 May 1998, Matthew Woodworth wrote:

> 
> Friends,
> 
> I have an NT machine using RRAS connecting to my ISP.  From it I can
> ping, telnet, etc to any machine on the Internet.
> 
> I also have a Linux machine (UDB) connected to the NT machine via a hub.
> The Linux machine can ping, telnet, etc to the NT machine but it can't seem
> to get out of my home network.
> 
> I am new to routing but I have a few ideas.  (please excuse them if I am
> on the wrong track)
> 
> 1.  Because my home network has IP addresses in the 10.*.*.* network, any
> router
> will simply ignore/drop the packets on the way back.  In other words, my
> packets
> are making it out to the target machines but they can't get back.
> 
> 2.  The NT machine doesn't forward the packets from the NIC to the modem.
> 
> I have IP forwarding turned on in the NT box but I can't tell if it is
> actually forwarding the packets.  This is the output of the route command
> on Linux.  (Jackson is the NT box)
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 10.1.1.0        *               255.255.255.0   U     0      0        3
> eth0
> 127.0.0.0       *               255.0.0.0       U     0      0       23 lo
> default         jackson         0.0.0.0         UG    0      0       39
> eth0
> 
> My questions are:
> 
> Can this be done (connecting a home network with 10.*.*.* addresses)?  Do I
> 
> need "real" IP addresses for my home network (I can get them for free).  If
> 
> I get them, will simply changing the IP addresses and routing tables fix
> the
> problem?
> 
> Thanks in advance,
> Matthew S. Woodworth
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1998-05-13  4:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-12 13:55 Linux and NT on home network Matthew Woodworth
1998-05-12 14:06 ` warp
1998-05-12 14:51 ` Christian Worley
1998-05-12 15:07 ` Jeff Sturm
1998-05-12 15:36   ` Mark Smith
1998-05-13  4:05 ` Keith Baker
  -- strict thread matches above, loose matches on Subject: below --
1998-05-12 15:15 Matthew Woodworth
1998-05-12 16:31 ` Jeff Sturm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox