FC Routing Help

Ok I am trying to setup some routing on my squid server using iproute2 basically I would like to setup 2 tables

Table 1 "Wireless"
Table 2 "Office"

Vlan1   |<--------->Eth0 Squid<---->Eth1 Squid| network
Vlan2 |                                                        | network

Squid Server

What I would like is for all traffic in network, that goes through Eth1 be routed out through Eth0 and vice versa.  This way both networks can use the server on the same nic.  My problem is I can't get a proper start on this because the examples I have found all seem to refur to load balancing 2 ISP's.  Any input on how to accomplish this would be great.

I would also like ot note that this is going to be setup as a transparent quid server so I will have port forward nat redirect for port 80 to 3128

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It's not clear is a link between Router and Squid is a trunk with 2 VLANs or just not tagged ethernet?

'I would like is for all traffic in network, that goes through Eth1 be routed out through Eth0' - you don't need iproute2 functionality for that, just old style routing.

If you need to route to
and to
then you need iproute2.

Very good book about policy based routing is here: http://www.policyrouting.org/PolicyRoutingBook/ONLINE/TOC.html
Also look here:  http://lartc.org/howto/lartc.rpdb.multiple-links.html#AEN268

What about transparent squid, I've never used it because squid failure leads to unavailability of http:// access (even if it's possible to access internet directly)
Gabriel OrozcoSolution ArchitectCommented:
Hello sam

you cannot route when you have the same network address space on both sides. this will not work.

fortunately, for what you want to do, you can setup a bridge using eth0 and eth1. That way your box become a layer 2 device and all networks can pass freely.

But having a linux box that way without filtering makes no sense. so here some links to help you to setup linux as a bridge AND as a firewall:


hope this helps

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hexfusionAuthor Commented:
In the end I decided to keep the squid box using only onenic achieving basically the same thing.  Nopius as with anything critical making sure you have proper redundancy is the only solution to that.  The plus side of using a proxy in a large network can make a big difference with performance.  We because of physical constraints must pipe all bandwidth via high end VSAT which is expensive bandwidth.  In a decent sized network I found a caching proxy to be the only solution to minimizing bandwidth while improving performance.  But everyones situation is diffent of course.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.