Instant reverse HTTP proxy from a Linux command-line

socat?

# socat TCP-LISTEN:80,reuseaddr,fork,su=nobody TCP:www.dmz.mydomain.org:80

(from lorgor.blogspot and MIT)

# socat -vv OPENSSL-LISTEN:443,cert=cert.pem,cafile=cacert.pem, \
cert=cert.key,reuseaddr,fork TCP4:192.168.34.65:80

(from https://www.buntschu.net/blog/?p=242)


I was faced with the exact same problem and became frustrated with the software that was around (and still am) and so I made proxyboi. Its purpose is to be an instant command-line only proxy without a configuration file. Give it a spin. Hopefully it helps you and others looking for a simple instant reverse proxy.