stream-lua-nginx-module icon indicating copy to clipboard operation
stream-lua-nginx-module copied to clipboard

Changing upstream TCP packets on the fly

Open drasko opened this issue 6 years ago • 7 comments

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?

drasko avatar Mar 22 '19 02:03 drasko

Any updates on this? Is something like this possible?

drasko avatar May 04 '19 23:05 drasko

@agentzh any ideas?

drasko avatar Feb 02 '20 14:02 drasko

Same here, couldn't find related APIs

cszuo avatar Oct 14 '20 21:10 cszuo

+1

dongbaibai avatar Sep 23 '21 15:09 dongbaibai

need to add body filter feature

zhuizhuhaomeng avatar Sep 24 '21 09:09 zhuizhuhaomeng

Can this be implemented now? @zhuizhuhaomeng

liujian883 avatar Oct 15 '21 16:10 liujian883

we do not have a plan for this feature. PR is welcome

zhuizhuhaomeng avatar Oct 17 '21 23:10 zhuizhuhaomeng