[clug] A Routing problem

Rob McAuliffe rob1 at mcauliffe.id.au
Wed Oct 20 23:21:26 GMT 2004

oops, OK, should have read your email more closely...


Could you use iptables to reject forwarding for that network coming from
that interface, and perhaps the routing would work itself out??


On Thu, 2004-10-21 at 09:01, Rob McAuliffe wrote:
> I can't say I'm anywhere near an expert (quite significantly closer to
> beginner :-), but I don't think this is possible (at least not with the
> 'route') command.  
> My question is why do you want to do it, (eg. is this just to reject
> routing from the eth2 connected network...).   If you give a bit more
> info about why you want to do this maybe someone will be able to think
> of another way to achieve it.
> Rob
> On Wed, 2004-10-20 at 19:38, Stephen Hodgman wrote:
> > I have a question regarding routing.  I have a linux system with three 
> > interfaces say eth0, eth1 & eth2
> > 
> > On eth0 is network (say)
> > I want traffic entering eth1, destined for to be routed 
> > to eth0 - always
> > I want traffic entering from eth2 destined for to be 
> > routed to eth2 - always
> > The reason is that there is a route either way but I only want one 
> > device to route directly.
> > 
> > Can this be done?  It seems to require routing tables based on source 
> > address/interface.
> > I would appreciate knowing how this can be done.
> > TIA.

More information about the linux mailing list