LinuxQuestions.org
Help answer threads with 0 replies.
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, 10: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 Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	41
Size:	9.3 KB
ID:	12499  
 
Old 05-12-2013, 07:52 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,257
Blog Entries: 28

Rep: Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119
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, 06: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, 10:00 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,520

Rep: Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944
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 10: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 05:30 AM
setting up linux router rcmonroig Linux - Networking 2 01-27-2010 12:56 AM
Setting up a router under Linux shodekiagari Linux - Networking 8 01-16-2005 02:45 AM
Setting linux as Router puniti Linux - Networking 2 07-26-2003 09:01 AM
Setting up a linux router? overide2k Linux - Networking 3 11-12-2001 09:46 PM

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

All times are GMT -5. The time now is 06:56 AM.

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