david wrote:

> My DSL modems's add is 192.168.1.254 so that is the default gateway.The
> server's add is eth0/192.168.1.96 and I enabled ip pass through in the
> modem to the server,works fine.Next I wanted to set up the server as a
> router with a crossover cable to home box.home box address is
> 192.168.1.97 eth1/192.168.1.1 is set up for home box in server.I
> followed this guide;

Here is what you have explained, if I understand correctly:

  (INTERNET)
       |
[   ?.?.?.?   ]
[  DSL MODEM  ]
[192.168.1.254]
       |
[192.168.1.96 ]
[LOCAL SERVER ]
[192.168.1.1  ]
       |
[192.168.1.97 ]
[  HOME BOX   ]

I'm assuming you are using 255.255.255.0 as your subnet mask.  If this is
the case, I don't know how to make it work -- but it's unnecessarily
difficult.  Try to set up this:

  (INTERNET)
       |
[   ?.?.?.?   ]
[  DSL MODEM  ]
[192.168.1.254]
       |
[192.168.1.96 ]
[LOCAL SERVER ]
[192.168.2.1  ]
       |
[192.168.2.97 ]
[  HOME BOX   ]

This puts the home box on a different sub-net.  Question:  Which one is
supposed to be the web server?

Notes:

1. The reason why they have to be on different subnets has to do with how
packages are routed.  Whenever a package is sent over the network the
computer has to route it -- like a post office.  The first the the router
looks at is the sub-net.  If your subnet is 255.255.255.0, it ignores the
last number.  If it's on the same subnet as the router, it just broadcasts
it to the network.  This is like a postmaster looking at the zip codes.  He
throws the local zip code in one pile, everything else goes to a different
pile to be sorted.  Using this analogy, you have DSL MODEM and HOME BOX in
two different zip codes and LOCAL SERVER is your postmaster.  However,
you're acting like everyone is in the same zip code, so LOCAL SERVER is
putting some of the letters in the wrong pile.

2. It appears to me odd that your DSL MODEM has an IP address, but you're
running a server behind it.  Usually, I see the DSL MODEM acting
transparently.  So the setup looks more like:

  (INTERNET)
       |
[(TRANSPARENT)]
[  DSL MODEM  ]
[(TRANSPARENT)]
       |
[ 68.23.54.12 ]
[   ROUTER    ]
[ 192.168.1.1 ]
       |
[192.168.1.97 ]
[ WORKSTATION ]

If you can set this up, it further simplifies your network arrangement.

3. If you're trying to give internet access to "HOME BOX," you will have to
set up "LOCAL SERVER" with NAT.  This is especially true if "HOME BOX" is
actually supposed to be the web server.

> and I had to swap eth0 for eth1 for me eth0 is the WAN and eth1 is the
> LAN.It worked but closed port 80 so I redid iptables and added this;

I got lost in all this.  Are you running Apache on one of the machines?

> Should I try another router? By me opening port 80 in the modem to serve
> web pages over the WAN keeping me from being able to do this?I think it
> can be done it's just over my head/experence.thanks

Well, if you're just trying to get a router for a LAN, the WAL-MART
off-the-shelf routers work great, with minimal setup.  They also allow you
to forward ports to specific computers on your network to act as servers.

HTH!


-- 
                     G a b r i e l   M .   B e d d i n g f i e l d

-- 
gentoo-user@gentoo.org mailing list

Reply via email to