Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

2 complete networks  on one centos box

Posted on 2010-11-08
4
Medium Priority
?
304 Views
Last Modified: 2012-05-10
This is my third question to try to solve my issues, hope this one is clear and accurate.

I have 2 complete networks on my centos 5 box.

EX:

eth0 (192.168.1.0/24) -> ROUTER (192.168.1.1) -> INTERNET (PUBLIC IP)

eth1 (10.0.0.1/24) -> ROUTER (10.0.0.1) -> INTERNET (PUBLIC IP)


What I want is anything coming in on eth0 goes out on eth0 and the same for eth1.

I dont care if its static routes, iptables or whatever... I just want whatever coming in on eth0 goes out on eth0 and whatever comes in on eth1 goes out on eth1.

reason:
I have ssh/sftp users coming in on eth0 (192.168.1.2) and they need to go out that same link (higher speed connection)

I have internal people using eth1 (10.0.0.2) as their proxy server, and they need to go out on eth0 (so when people are downloading/uploading on eth1 internet is not slow for LAN users.

ANY HELP IS APPRECIATED!

0
Comment
Question by:savone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 29

Expert Comment

by:Michael Worsham
ID: 34086959
CentOS (and Linux for that matter) won't be able to do this by conventional means as for what you are asking for is considered a static NAT translation and routing table nightmare. Your best bet will be to look at using Shorewall Firewall/Router and deploying its Multiple Internet Connection Support.

Shorewall and Multiple Internet Connections
http://www.shorewall.net/MultiISP.html

I have not set up such a routing layout, so this is where my help ends on this type of configuration.
0
 
LVL 29

Expert Comment

by:Michael Worsham
ID: 34086986
This alternative configuration might work in a limited fashion.

How to setup multi-homing network
http://www.cyberciti.biz/tips/linux-how-to-setup-multi-homing-networking.html
0
 
LVL 29

Accepted Solution

by:
Michael Worsham earned 2000 total points
ID: 34087413
Source routing

Using advanced routing to control traffic across your interfaces
http://www.natecarlson.com/2005/11/21/using-advanced-routing-to-control-traffic-across-your-interfaces/
0
 
LVL 23

Author Closing Comment

by:savone
ID: 34098390
Actually found a better tutorial here:

http://www.itbuzzer.net/corner/2007/09/how-to-implement-source-routing-with.asp

but you lead me to the promise land, thanks!
0

Featured Post

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question