[tproxy] UDP transparent proxying

KOVACS Krisztian hidden@balabit.hu
Wed, 29 Oct 2003 14:41:34 +0100


KOVACS Krisztian wrote:
>> I then call the IP_TPROXY_FLAGS socket option using the ITP_CONNECT flag.
>> Finally,  I connect this socket with the original remote machine (same 
>> IP and same port as in the incoming packet).
>   Oh, one possible problem: you _have_to_ connect() the socket to the 
> original remote end _before_ setting the tproxy flags.

   And you have to specify ITP_ESTABLISHED instead of ITP_CONNECT...

     Krisztian KOVACS