Linux

Sergio Cipriano: Using socat to create a TCP Proxy

Using socat to create a TCP Proxy I wanted to set up a small TCP proxy so I could run a few tests, and I wasn't in the mood to run nginx or Envoy just for this. I stumbled upon socat (SOcket CAT) and found it pretty useful. Every time I discover a tool like this one that has been around for decades, I'm happy. Here's how I used it: socat TCP-LISTEN:5001,fork,reuseaddr TCP:127.0.0.1:5000 It listens on port 5001 and forwards…

Quelle: Originalartikel öffnen

AI Assistant
Context loaded: Sergio Cipriano: Using socat to create a TCP Proxy