LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   RedHat8 - IPTables - Win98 - configuration help please (https://www.linuxquestions.org/questions/linux-networking-3/redhat8-iptables-win98-configuration-help-please-74078/)

Bughin 07-19-2003 10:28 AM

RedHat8 - IPTables - Win98 - configuration help please
 
My objective is to add a Win98 box to my already existing home network This is what my network currently looks like. The purpose for this is to run some softwware on a new Win98 box and use my packet sniffer on the RedHat8 box to monitor incoming network traffic to the Win98 system.
Cable Modem
|
CPU_ONE
|
HUB-------RedHat8
|
CPU_TWO

This is what I would like the network to look like:

Cable Modem
|
CPU_ONE
|
HUB-------RedHat8-------Win98
|
CPU_TWO

CPU_ONE is a Win98 box It has 2 NICs. One NIC is set to auto-obtain IP address and goes to Cable Modem. The other NIC is manually set to 192.168.0.1 and goes to my HUB. CPU_ONE is running Internet Connection Sharing to the rest of the network. CPU_TWO is manually set to an IP address of 192.168.0.2. My RedHat8 box is currently working, and I am writing this message from it right now. My RedHat8 currently has only one NIC inside and I manually set its IP Address to 192.168.0.101 the subnet mask to 255.255.255.0 and the default gateway to 192.168.0.1.

I have read about IP-Masquerade and IPTABLES, and I believe that I understand how to get that part configured and working.

These are the parts I think I need help understanding...

On the new Win98 machine that I want to add behind the RedHat8 box, what network settings do I use? Do I use the same network setting that I used for CPU_TWO and RedHat8, or does it need to be something else? I would prefer to be able to assign an IP address (192.168.0.200) to the Win98 box. I'm confused on what the default gateway should be for the new Win98 box. (do I set it to 192.168.0.1??)

Here is the other thing that is happening to me. My RedHat8 box is running fine on my current network with its single NIC. I shut down the box, pop in the 2nd NIC and boot. Kudzu comes up during boot and recognizes the new NIC. I answer Yes to configure it. I answer yes to configure the network. I have been entering the following settings (and this is probably where I am screwing up...but my knowledge of networking is minimal...so I have just been guessing and I'm all out of ideas and very frustrated). I have been entering
IP Address 192.168.0.102
netmask 255.255.255.0
default gateway 192.168.0.1
primary nameserver 192.168.0.1.

Any help or guidance is much appreciated...I've been struggling with this on my own for two days. (Yeah...I'm an idiot).

Mathieu 07-19-2003 11:11 AM

The gateway for your new Win98 box should be the IP of the new NIC in the RedHat 8.0 box.


I posted Network Configuration commands in this thread.
http://www.linuxquestions.org/questi...544#post381544

In your RedHat 8.0 box, you will need to setup IP forwarding and masquerading. Take a look at my post in this thread.
http://www.linuxquestions.org/questi...712#post381712

Bughin 07-19-2003 11:44 AM

reading now...thank you
 
I'll go read those now...thank you very much!

Bughin 07-19-2003 01:20 PM

followup questions...
 
Ok. I understand about using the Network Configuration part of RedHat8.
The part that I am not clear about is, do I use the Kudzu portion of the network configuration after I insert the 2nd NIC (eth1) or do I bypass the kudzu portion...and handle it with the Network Configuation, or do I do both?

Secondly...I read your post about the changes that are necessary in iptables for the Masquerading. It looks like that the other guy that you gave that iptables intormation to had

eth0 local lan access
eth1 internet distribution

Mine is the reverse of that. Since mine is the reverse, should I reverse eth0 and eth1 in the iptables commands that you had given to him in that thread?

Mathieu 07-19-2003 02:51 PM

kudzu
You can let kudzu detect the card, but when it asks you "would you like to configure it", just answer no.

Then use Network Configuration, it is much simpler to use (and pretty :D).

iptables
Yes, if you have the opposite, then reverse eth0 and eth1 in the iptables.


All times are GMT -5. The time now is 02:08 AM.