Iptables - Redirect outbound traffic on a port to inbound traffic on

view story

http://serverfault.com – I will be awarding a +100 bounty to the correct answer once it is available in 48 hours Is there a way to redirect traffic set to go out of the server to another IP, back to the server on localhost (preferably as if it was coming from the original destination)? I'd basically like to be able to set up my own software that listens on say, port 80, and receives traffic that was sent to say, So as an example with some code. Here would be the server: my $server = IO::Socket::INET->new( LocalAddr => '', LocalPort => '80', Listen => 128, ); And that w (HowTos)