Re: A weird routing question.
- From: Pascal Hambourg <boite-a-spam@xxxxxxxxxxxxxxx>
- Date: Fri, 28 Sep 2007 17:20:31 +0200
Hello,
Ken Sims a écrit :
On Thu, 27 Sep 2007 19:36:35 +0200, none <""testr\"@(none)"> wrote:
On a linux box 'A' which has interfaces eth0, eth1, eth2, eth3, I would
like to do a special treatment on packets incoming via eth0 and whose
source is <some-network>.
I would like these packets be unconditionaly redirected unmodified for
output via interface eth1.
That is:
- even if they were targeted (destination IP) at my box 'A', they will
be re-emitted through eth1.
- even if they would have been forwarded through eth2 or eth3, they
will be re-emitted through eth1 too.
If they would be forwarded anyway, advanced routing can be used to
force them out a specific interface.
Yes.
For packets whose destination is 'A', I think you would need to do
something with netfilter to get the packets on to the forwarding
chain, but I don't know how without changing the destination IP
address.
The highly controversial ROUTE target, which allows to override the routing decision, may help :
This option adds a `ROUTE' target, which enables you to setup unusual
routes. For example, the ROUTE lets you route a received packet through
an interface or towards a host, even if the regular destination of the
packet is the router itself.
.
- Follow-Ups:
- Re: A weird routing question.
- From: none
- Re: A weird routing question.
- References:
- A weird routing question.
- From: none
- Re: A weird routing question.
- From: Ken Sims
- A weird routing question.
- Prev by Date: Re: netfilter & SIP
- Next by Date: Re: netfilter & SIP
- Previous by thread: Re: A weird routing question.
- Next by thread: Re: A weird routing question.
- Index(es):
Relevant Pages
|