A weird routing question.



Hi all,


Generally speaking, in an IP network, any IP packet which reach a node
(workstation, gateway, router...), and whichever the incoming interface,
will either be caught and absorbed by this node if it is the intended
recipient, or redirected for output (IP forwarding) through [another]
interface in respect to the current routing policy.

But I have a weird goal to achieve:

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.


Any idea to help me reach this goal?


Sincerely,
Le Testeur
.



Relevant Pages

  • Re: A weird routing question.
    ... , and whichever the incoming interface, ... interface in respect to the current routing policy. ... like to do a special treatment on packets incoming via eth0 and whose ... be re-emitted through eth1. ...
    (comp.os.linux.networking)
  • Re: A weird routing question.
    ... interface in respect to the current routing policy. ... like to do a special treatment on packets incoming via eth0 and whose ... output via interface eth1. ...
    (comp.os.linux.networking)
  • Re: physical vs. logical network interfaces
    ... while on iptables level it is already "eth0". ... Both tcpdump and netfilter/iptables see the packets coming from the interface they actually come from, i.e. eth1. ...
    (comp.os.linux.networking)
  • Re: Port Mirroring in Linux
    ... looks at its table's entry and says that packets with the mac 'Mi' ... must be forwarding to interface X.Bridge does flooding,learning and ... interface X must be given to another interface Y. ... You mean having something like an interface "eth1" which has all the ...
    (comp.os.linux.networking)
  • Terminal Server Setup
    ... description GRE Tunnel Source Interface ... input packets with dribble condition detected ... output buffer failures, ... Serial1/0 is up, line protocol is up ...
    (comp.dcom.sys.cisco)