I am using OpenResty as a TCP (stream) proxy. I have been capable to read TCP packets using reqsock:peek
and preread_by_lua_block
directives.
However, would like to change certain bytes of the TCP packet as it flows though the proxy, so that the service behind gets a changed packet.
Is this possible to achieve with ngx_stream_lua_module
and how?
Best regards,
Drasko