LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-11-2004, 05:40 PM   #1
purikk
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Linux router as a passthrough for traffic between two machines


Hi All,
I have an isolated network consisting of 3 machines Router(running on Redhat 9, it had dhcp/router services),Server A(windows) and Server B(windows). I want all traffic passing through ServerA to serverB pass through the Router. I have Network emulating software on the router machine; for it to emulate, all the traffic should pass through the router machine.

Server A <-----------> Router <------------------>ServerB

Can somebody tell me how to configure my router(redhat 9) to handle this case? Thanks in advance
Regards,
Puru
 
Old 10-12-2004, 06:29 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The www.tldp.com (The Linux Documentation Project) has a linux-router howto as well as the Network Administrators' Guide.

More generally, I don't understand what you meant by network emulation software. Since you are on an isolated network, why not set up all of the machines on the same network and use a hub or switch. It doesn't seem that you even need a router or gateway in your case. You could use the linux box for network services.
 
Old 10-12-2004, 06:56 AM   #3
purikk
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for your reply. i couldn't find the required setup in that site.network emulate is used to emulate/simulate real time network conditions like congestions,delays ,bandwidth etc between those two servers .
puru
 
Old 10-12-2004, 05:37 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
if you add the line:
FORWARD_IPV4="yes"
to the /etc/sysconfig/file, packets will be able to be forwarded from one interface to the other. There may be 'route' commands you need setup somewhere also.

What you are doing sounds like the Redhat box needs to be set up to function as a gateway. I don't have Redhat, but I'm sure it has some sort of gateway setup wizard or dialog. Also, the NAG guide should have enough information to help you configure things manually.

Here is a how-to that might help a bit.
http://www.tldp.org/HOWTO/Home-Netwo...i-HOWTO-3.html
 
Old 10-12-2004, 06:09 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
On second thought, sounds more like a linux-switch. Embedded linux systems like the Linksys WRT54G cable router is one example. Besides being a wireless cable/DSL router, it is a 4-port switch and dhcp server. Studying this or other embedded systems might teach you a lot.
 
  


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
routing traffic from 2 machines on same network masand Linux - Networking 3 08-27-2005 10:34 PM
Accessing other machines on same router moonmoth Linux - Networking 9 07-22-2005 02:44 PM
two machines, one router, no connection blue.spark Linux - Networking 2 04-14-2005 03:26 AM
Linux router - How can i monitor traffic Rooboy Linux - Networking 3 02-13-2004 02:19 PM
sniffing network traffic, linux server between firewall and router, only want http sabah Linux - Networking 2 10-20-2003 12:47 PM

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

All times are GMT -5. The time now is 10:54 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
Open Source Consulting | Domain Registration