On Saturday 2010-09-25 16:24, rhn wrote: >Hello, > >I'd like to forward TCP connections coming from intranet to my gateway >to userspace programs on the gateway. > >For example, host A on the intranet tries to connect to host B on the >Internet using gateway G. Upon receiving the connection, gateway G >sends the original connection destination (B and port) to a userspace >program, and sends the network data to/from the program. > >Is it possible to achieve that using netfilter? > >So far, I've only found ipqueue, which operates on the packet level - a >little too low for me. The other solution would be to use VPN, but I >don't get the flexibility of writing my own program then. xt_TPROXY comes to mind. Then you just do the usual socket(2) things in userspace. -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html