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


  Search this Thread
Old 06-13-2003, 04:02 AM   #1
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 (
| | |
| | Win Box (
| |
| Win Box (
Linux Box eth0(
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 ( 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
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 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 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
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.


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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:11 AM.

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