User space tproxy implementation

I am using the tcp / ip stack for user space for a specific application.

I saw Tproxy support as a kernel module in the Linux kernel stack.
But I need a similar implementation on the user space stack.
So that I can find out the current tproxy internal work. Someone help me implement it in User Space or please explain the internal work of tproxy material, I mean “packet labeling”, “twisting destination IP addresses in the incoming and outgoing stream”, “saving all this in the internal structure of the table ", etc..

Thanks in advance.

+4
source share
1 answer

The kernel documentation for TProxy is still the best source. Otherwise, google breaks out a bunch of results for tproxy documentation and tproxy example .

There are also projects supporting tproxy. For example, Squid Proxy supports it and a rather long wiki page about it.

0
source

Source: https://habr.com/ru/post/1489207/


All Articles