Based on my experiences, using static binary of proxy program will give more performance & more efficient memory usage rather than using interpreted program such as Python
it will be better using this proxy program in my opinion
https://github.com/lutfailham96/go-tcp-proxy-tunnel