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 05-12-2013, 11:07 AM   #1
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Rep: Reputation: 15
setting up linux router


Hello All

i want to setup a linux router which is having 3 NIC as shown in picture


the requirement i am having is if some system from network 10.10.2.0 wants to talk to system on 10.10.3.0 then packets should go to firewall and then come back. it should now get routed from within the router. I was trying with different routing table but not able to achieve it. Any help would be good.

Some of you might ask that same router can work as firewall then what it the need of firewall, but i cant expain now but its the requirenment.
thanks in advance
Attached Images
File Type: png Untitled.png (9.3 KB, 25 views)
 
Old 05-12-2013, 08:52 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,091

Rep: Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535
This sounds awfully like a homework assignment.

The Arch wiki has about as good a reference as you can find without us providing more details, such as hardware specs, what distro are using/want to use, what you have tried so far, and so on.

If you do a websearch for "linux as router," you will find a bunch of howtos on the first page of your search results. Ditto for "[distro name] as router."
 
Old 05-13-2013, 07:14 AM   #3
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Hello
the problem here is that the linux router is doing routing between both the different networks connected at eth1 and eth2 but i m not able to route it to eth0,

I am using RHEL 5.2
thanks
 
Old 05-13-2013, 11:00 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,958

Rep: Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672
Quote:
Originally Posted by jindalarpan View Post
Hello All
i want to setup a linux router which is having 3 NIC as shown in picture

the requirement i am having is if some system from network 10.10.2.0 wants to talk to system on 10.10.3.0 then packets should go to firewall and then come back. it should now get routed from within the router. I was trying with different routing table but not able to achieve it. Any help would be good.
If you want network traffic to go from one subnet to another, you route it there with the "route"command. What you mean by "go to firewall and then come back". Do you mean you want the traffic REJECTED, or routed forward?
Quote:
Some of you might ask that same router can work as firewall then what it the need of firewall, but i cant expain now but its the requirenment.
If you don't want to provide details, then you're on your own to figure it out. We can't guess. You've been registered here since 2008, and seem to post questions with little detail often. If you want the traffic destined for network 10.10.3.0 to go to the firewall at 10.10.1.1, then route it there. From there, the firewall has to take over, and route the packets along accordingly, depending on the firewall rules.
Quote:
Originally Posted by jindalarpan
the problem here is that the linux router is doing routing between both the different networks connected at eth1 and eth2 but i m not able to route it to eth0, I am using RHEL 5.2
Then you have an easy fix: CALL RED HAT SUPPORT, since you're using RHEL. You are paying for it, right?

Last edited by TB0ne; 05-13-2013 at 11:02 AM.
 
  


Reply

Tags
configuration, linux, router


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
Setting up Linux box as IPv6 router to replace Netgear WNR1000 wireless router samcan Linux - Networking 1 06-19-2011 06:30 AM
setting up linux router rcmonroig Linux - Networking 2 01-27-2010 01:56 AM
Setting up a router under Linux shodekiagari Linux - Networking 8 01-16-2005 03:45 AM
Setting linux as Router puniti Linux - Networking 2 07-26-2003 10:01 AM
Setting up a linux router? overide2k Linux - Networking 3 11-12-2001 10:46 PM


All times are GMT -5. The time now is 11:31 PM.

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