LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   setting up linux router (https://www.linuxquestions.org/questions/linux-networking-3/setting-up-linux-router-4175461634/)

jindalarpan 05-12-2013 10:07 AM

setting up linux router
 
1 Attachment(s)
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

frankbell 05-12-2013 07:52 PM

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."

jindalarpan 05-13-2013 06:14 AM

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

TB0ne 05-13-2013 10:00 AM

Quote:

Originally Posted by jindalarpan (Post 4949540)
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?


All times are GMT -5. The time now is 04:29 AM.