Nicola Gatti <(E-Mail Removed)> wrote:
> I have a linux machine on which a software sends packet to an address,is
> there a way of configuring the port forwarding on that machine so that the
> packets are sent to an address different from the one that the software
> believes?
You could do this easily enough if it were a NAT boundary, with the
REDIRECT target. Otherwise, you would need to send an ICMP datagram with
message-type network-redirect or host-redirect. However, YMMV, as not
every OS will accept these redirects anymore.
Normally, you would send back icmp messages with the -j REJECT and
--reject-with statement, but the ICMP redirect messages are not
represented there.
You would need some small service that listens on the machine, and
responds with the ICMP message (and it would have to run as root, due to
root being the only one who can read and write icmp sockets). I imagine
there may be some software already written to do that, but there is none
packaged under Debian.
Perchance are you seeking something to do with IP mobility?
--
Cameron Kerr
(E-Mail Removed) :
http://nzgeeks.org/cameron/
Empowered by Perl!