views:

46

answers:

1

I have been trying to find some way of redirecting outbound TCP packets under windows, but so far have not been successful. Does anyone know of any software/code bit that would do something like that? I am not even sure it is possible with the windows stack.

I am looking at doing something similar to what "-j REDIRECT" is to iptables.

EDIT: to be more precise, what needs to be done here, is to transparently(ie without the original application having to do anything) redirect outgoing tcp packet with a certain destination port to a specific ip.(alternatively redirecting them to a local port would be fine too since I can then just use something like rinetd or any port forwarder)

A: 

Port redirection in Windows

0A0D
Not really what I need since I need to be able to redirect outgoing packets to a new ip without the original application knowing. The issue at hand is that it's for outgoing packets. Not incoming ones.
FCPK