Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-12-2013, 10:07 AM
|
#1
|
Member
Registered: Mar 2006
Posts: 94
Rep:
|
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
|
|
|
05-12-2013, 07:52 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,940
|
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."
|
|
|
05-13-2013, 06:14 AM
|
#3
|
Member
Registered: Mar 2006
Posts: 94
Original Poster
Rep:
|
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
|
|
|
05-13-2013, 10:00 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,721
|
Quote:
Originally Posted by jindalarpan
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.
|
|
|
All times are GMT -5. The time now is 03:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|