Proxy technology has been around for 25+ years and is very mature on the web. I'm not sure how reliable SOCKS5 will be for you; that will be interesting to see. I've used SOCKS5 extensively, and it can cause bursty network problems. I prefer solutions like HAProxy with a small Lua script, which can be easily generated from a GPT-type session these days. You could also use an Express or PHP server, which is common. It all depends on the exact use case.
Discussion
None of the 25+ years of proxy technology achieves the goal of piping TCP data over nostr. It needs to be built and that's what I just presented.