title: Redirecting TCP-traffic to a UNIX domain socket under Linux
body: <p>Assume a legacy Linux application listening on a UNIX domain socket <code>/tmp/foo</code>.</p>
  
  <p>In addition to communicating with this legacy application over the UNIX domain socket mechanism I want to be able to connect to it via a TCP-connection on port say 1234.</p>
  
  <p>What is the easiest way to bind to TCP port 1234 and then redirect all incoming connections to the UNIX domain socket <code>/tmp/foo</code>?</p>