socat

Multipurpose relay for bidirectional data transfer between two independent data channels

brewmacoslinux
Try with needOr install directly
Source

About

SOcket CAT: netcat on steroids

Commands

socat

Examples

Create a simple TCP listener that echoes data back to clients$ socat TCP-LISTEN:8888,reuseaddr ECHO
Forward local port 8080 to a remote server$ socat TCP-LISTEN:8080,reuseaddr TCP:example.com:80
Create a Unix socket listener connected to a TCP service$ socat UNIX-LISTEN:/tmp/socket.sock,reuseaddr TCP:127.0.0.1:3306