LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2003, 11:28 AM   #1
Bughin
LQ Newbie
 
Registered: Jul 2003
Location: USA
Distribution: RedHat8
Posts: 3

Rep: Reputation: 0
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).
 
Old 07-19-2003, 12:11 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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
 
Old 07-19-2003, 12:44 PM   #3
Bughin
LQ Newbie
 
Registered: Jul 2003
Location: USA
Distribution: RedHat8
Posts: 3

Original Poster
Rep: Reputation: 0
reading now...thank you

I'll go read those now...thank you very much!
 
Old 07-19-2003, 02:20 PM   #4
Bughin
LQ Newbie
 
Registered: Jul 2003
Location: USA
Distribution: RedHat8
Posts: 3

Original Poster
Rep: Reputation: 0
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?

Last edited by Bughin; 07-19-2003 at 02:28 PM.
 
Old 07-19-2003, 03:51 PM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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 ).

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables configuration Salihou Linux - Networking 2 09-24-2003 03:26 PM
Iptables NAT and Win98 exalik Linux - Networking 2 04-04-2003 01:20 AM
configuration dual boot win98 and RH linux 7.1 vichet Linux - Newbie 2 01-20-2003 09:35 AM
Issues: NFS and Samba, XPh & Win98 to Redhat8.0 mutantjazz Linux - Networking 8 12-30-2002 11:39 PM
Gnome desktop on Win98 - configuration help please LionKing Linux - Newbie 5 11-23-2002 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration