Skip to content

Instantly share code, notes, and snippets.

@xardit
Created May 25, 2016 21:03
Show Gist options
  • Save xardit/4e9bdb5f42b602cc4a7ccc59e6eba7f4 to your computer and use it in GitHub Desktop.
Save xardit/4e9bdb5f42b602cc4a7ccc59e6eba7f4 to your computer and use it in GitHub Desktop.
#create a loop device “lo0”
ifconfig lo0 10.0.0.1 alias
# forward input data at 10.0.0.1:80 to real server 127.0.0.1:9090
ipfw add fwd 127.0.0.1,9090 tcp from me to 10.0.0.1 dst-port 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment