Skip to content

Instantly share code, notes, and snippets.

@jabedude
Created April 7, 2016 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jabedude/14fd20bcfdac9c98d9925c0b84a7b69c to your computer and use it in GitHub Desktop.
Save jabedude/14fd20bcfdac9c98d9925c0b84a7b69c to your computer and use it in GitHub Desktop.
nix port redirection
#!/bin/bash
mkfifo mypipe
nc -l 8885 0<mypipe | nc -p 42 10.80.32.1 111 1>mypipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment