A variety of software can be used
Anything from something like socat up to a large proxy server will work