LinuxQuestions.org
Review your favorite Linux distribution.
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 06-13-2003, 04:02 AM   #1
KellyH
LQ Newbie
 
Registered: Jun 2003
Posts: 1

Rep: Reputation: 0
Basic newbie networking question


Hello all,

I'm pretty much a complete noob when it comes to Linux and TCP/IP. I've searched around on google and in forums a fair amount to try to find how I should configure my network, but could find no answers geared enough towards what I'm trying to do.

I apologize in advance if what I'm asking is ridiculously easy, or If I neglected to provide enough information.

My hardware setup is as follows :

DSL Modem
|
Wireless Router (192.168.0.1)
| | |
| | Win Box (192.168.0.3)
| |
| Win Box (192.168.0.4)
|
Linux Box eth0(192.168.0.2)
|
Linux Box eth1(?)
|
Win Box(?)

Ok, so I'm trying to have my Linux box set up as gateway for a particular Win box.

I recompiled my kernel so I have Iptables instead of Ipchains (I know nothing about either but I needed Iptables apparently in order to run an application called Shorewall (www.shorewall.net) which is supposed to be a dumbed down way to set up a gateway). I am using a Debian distro w/ kernel version 2.4.20 (tho I'm not sure that matters since this is just a basic TCP/IP question)

My questions are what should the IP/gateway addresses of the eth1 device be, and what should the IP/gateway addresses of the ethernet device in the Win box be?

Also, if those are set to the correct values, will any other tweaking be required? Do I need shorewall? Do I need to figure out how to use Iptables?

As I said before, I apologize if these are dumb questions.

I will respond with any additional information needed. Thank you in advance for any assistance provided.
 
Old 06-13-2003, 07:10 AM   #2
justinlq.org
LQ Newbie
 
Registered: Jun 2003
Distribution: RedHat 9
Posts: 11

Rep: Reputation: 0
Hi KellyH.
I am completely new at Linux as well, even more so than you by the sounds of things, but I do know networking IP quite well.
In short, you can give the Linux Box eth1 and Windows Box any private address at all, provided they are on the same network as each other and on a different network from your 192.168.0.0/? network.
For example, you could give Linux Box eth1 192.168.x.1/24 and your Windows Box 192.168.x.2/24 provided x is not 0 (assuming your 192.168.0.0 network has a 24 bit mask).
Of course, the dg of the Windows Box should be eth1 of the Linux Box... and the Linux Box will have to have router funcionality (no idea how to enable this? complete noob) and your Linux Box's dg will have to be the private interface of your wireless router.
And don't forget DNS server addresses on the Windows Box.
This should work, provided I read your diagram correctly, and that the Linux Box eth0 and LB eth1 are the same machine with 2 network interfaces?
No idea what shorewall is, but I do know that iptables is a firewall. Use of it is probably recommended but absolutely not explicity required for ip connectivity. Besides, you probably have a firewall at your adsl router right? My adsl router is a router, modem and firewall all in one.
I do not know your level of competency in ip addressing, please feel free to ask if you want me to delve deeper or dumb it down a touch...
Hope I helped...
 
Old 06-13-2003, 07:21 AM   #3
justinlq.org
LQ Newbie
 
Registered: Jun 2003
Distribution: RedHat 9
Posts: 11

Rep: Reputation: 0
Oh, of course I just realised something else.
Whatever network you assign to your 2nd private network, your adsl router is going to have to have a route added either statically, probably the best way here, for that network added with the gateway eth0 of your Linux box, else packets will not be able to route back to your 2nd private network.
This will depend entirely upon whether your hardware (adsl router) can be setup like this.
 
  


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
Very basic newbie question regarding MySQL crispyleif Linux - Software 9 11-08-2005 12:13 AM
basic newbie question about fluxbox lmellen Linux - Newbie 4 06-24-2004 12:55 AM
basic networking topology question mehesque Linux - Networking 2 11-07-2003 03:17 PM
Your basic newbie question... rcarr Linux - Newbie 1 09-27-2003 03:46 PM
Basic networking question keysar_sozay Linux - Networking 6 08-08-2003 04:51 AM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration