Skip to content

Instantly share code, notes, and snippets.

@fernyb
Last active September 25, 2015 18:18
Show Gist options
  • Save fernyb/963929 to your computer and use it in GitHub Desktop.
Save fernyb/963929 to your computer and use it in GitHub Desktop.
Port forward request from port 3000 to port 80
# View rules
sudo ipfw show
# Add rule
sudo ipfw add 100 fwd 127.0.0.1,3000 tcp from any to me dst-port 80
# Remove rules
sudo ipfw flush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment