Click to See Complete Forum and Search --> : Linux Box - Network (Routing & Forwarding & Masquerading) Configuration


Dave_Linux
01-15-2001, 07:16 AM
Hi all,

I hope that someone can extend some assistance to me in some configuration that I need to do with my Linux machine. I am very gratefull for any advice or help that you can give me.

I would like to configure my machine for a project in this way :

Win98 (192.168.42.1) <---Hub---> Linux Machine (eth0 192.168.42.2) (eth1 192.168.10.2) <----> WinNT (192.168.10.1) <----> Internet (Modem)

Currently I have the following setup:

Linux Machine :
RedHat Linux 7.0
eth0 : 192.168.42.2
eth1 : 192.168.10.2

route add -net 192.168.42.0 netmask 255.255.255.0 eth0

route add -net 192.168.10.0 netmask 255.255.255.0 eth1

route add default gw 192.168.10.2 eth0

I am at a loss on how to proceed further. I understand that I have to do some ipchaining or ip_masquerading but I do not know how to proceed.

(are there any suggestions, I have all the HowTO's on Networking and IP Masquerading and IPChains. I need someone to point me in the right direction)


Currently I am trying to ping from each of the PC's but I cannot seem to ping the WinNT from the Win98 and vice-versa. The best I can get is a ping from 192.168.42.1 to 192.168.10.2 or from 192.168.10.1 to 192.168.42.2.

By the way, thanks for the help in advanced.

Thanks,
Dave

Helius
01-15-2001, 12:08 PM
You should take a look at this, http://www.linuxnewbie.org/nhf/intel/network/ipchains.html

I hope this will help you!

njcajun
01-15-2001, 04:34 PM
you got it a little backwards.

To do the forwarding/masquing, you need to have the Linux box connected either directly to the modem (if it's dsl) or to a hub that the modem is also connected to (if it's cable, which I'm not very experienced with).

The problem you're going to have with your current config is that the Windows box is the closest box to the modem, and so must pass packets to the modem. It doesn't have masquing capabilities, and proxy software is generally about $350, in addition to the added cost of ipaddresses leased to you by the ISP (which is why you do masquing in the first place).

Let me know what kind of connection it is, and the name of the isp, and I'll help out with the setup.

------------------
Build a system that even a fool can use, and only a fool will use it.

Dave_Linux
01-16-2001, 08:26 PM
Thanks for the reply,

I've got the machines running, feel rather dumb.... I didn't set the gateway settings on both the WinNT machines and Win98 machines.

Thanks for the reply anyway. I'm still gonna have to try the modem configuration.. hopefully that will work.

Thanks again,
Dave